Commit aa36be0a by zhengxj

finish 后台订单列表 on 20190305 by zhengxj

git-svn-id: svn://192.168.3.233/frms/code/car-service/trunk/car-service@18111 aeb6102e-e053-11e5-9fec-f9ebc45caf4b
1 parent d4e154f8
...@@ -180,6 +180,11 @@ public class OrderServiceImpl implements IOrderService { ...@@ -180,6 +180,11 @@ public class OrderServiceImpl implements IOrderService {
if (oueryOrderReq.getOrderSn() != null) { if (oueryOrderReq.getOrderSn() != null) {
criteria.andOrderSnLike( "%"+oueryOrderReq.getOrderSn() + "%"); criteria.andOrderSnLike( "%"+oueryOrderReq.getOrderSn() + "%");
} }
// 订单状态
if (oueryOrderReq.getOrderStatus()!=null) {
criteria.andActiveStatusEqualTo(oueryOrderReq.getOrderStatus());
}
// 订单渠道 如果当前用户是商户只能搜索当前商户的订单 // 订单渠道 如果当前用户是商户只能搜索当前商户的订单
if (oueryOrderReq.getOrderChannel() != null) { if (oueryOrderReq.getOrderChannel() != null) {
...@@ -236,13 +241,18 @@ public class OrderServiceImpl implements IOrderService { ...@@ -236,13 +241,18 @@ public class OrderServiceImpl implements IOrderService {
} }
PageHelper.startPage(page.getPageIndex(), page.getPageSize(), true);
List<SysOrder> orderList=new ArrayList<>(); List<SysOrder> orderList=new ArrayList<>();
// 传递的是技工名字,且搜索不到该技工 // 传递的是技工名字,且搜索不到该技工
if( !com.glsx.common.utils.StringUtils.isMobile(oueryOrderReq.getMachanicInfo())&& !(Ids.size() > 0)){
orderList= orderDao.selectByExample(example);
return orderList; if (oueryOrderReq.getMachanicInfo() != null
} && !com.glsx.common.utils.StringUtils.isMobile(oueryOrderReq.getMachanicInfo()) && !(Ids.size() > 0)) {
// Ids.add(Integer.MAX_VALUE);
criteria.andMechanicIdEqualTo(Integer.MAX_VALUE);
}
PageHelper.startPage(page.getPageIndex(), page.getPageSize(), true);
orderList = orderDao.selectByExample(example);
// orderList = orderDao.selectByExample(example); // orderList = orderDao.selectByExample(example);
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!