Commit 3167487c by duanhq

获取订单列表 v 1.1.2

git-svn-id: svn://192.168.3.233/frms/code/car-service/trunk/car-service@21398 aeb6102e-e053-11e5-9fec-f9ebc45caf4b
1 parent b4979fa7
...@@ -180,5 +180,5 @@ public interface IOrderService { ...@@ -180,5 +180,5 @@ public interface IOrderService {
ResultObject orderBindService(SysOrder sysOrder); ResultObject orderBindService(SysOrder sysOrder);
List<SysOrder> getOrderListByExample(int page, int pageSize, QueryOrderReq oueryOrderReq); List<SysOrder> getOrderListByExample(Integer page, Integer pageSize, QueryOrderReq oueryOrderReq);
} }
...@@ -2962,7 +2962,7 @@ public class OrderServiceImpl implements IOrderService { ...@@ -2962,7 +2962,7 @@ public class OrderServiceImpl implements IOrderService {
} }
@Override @Override
public List<SysOrder> getOrderListByExample(int page, int pageSize, QueryOrderReq oueryOrderReq) { public List<SysOrder> getOrderListByExample(Integer page, Integer pageSize, QueryOrderReq oueryOrderReq) {
List<SysOrder> orderList = new ArrayList<>(); List<SysOrder> orderList = new ArrayList<>();
JSONObject user = getUserInfo(oueryOrderReq.getUserId()); JSONObject user = getUserInfo(oueryOrderReq.getUserId());
int userType = user.getIntValue("userType"); int userType = user.getIntValue("userType");
...@@ -2978,7 +2978,9 @@ public class OrderServiceImpl implements IOrderService { ...@@ -2978,7 +2978,9 @@ public class OrderServiceImpl implements IOrderService {
oueryOrderReq.setDateEnd(DateUtil.formatDate(endDate)); oueryOrderReq.setDateEnd(DateUtil.formatDate(endDate));
} }
PageHelper.startPage(page, pageSize, true); if( page!=null && pageSize!=null){
PageHelper.startPage(page, pageSize, true);
}
orderList = orderDao.getOrderListByExample(oueryOrderReq); orderList = orderDao.getOrderListByExample(oueryOrderReq);
for (SysOrder order : orderList) { for (SysOrder order : orderList) {
// 渠道名称 // 渠道名称
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!