Commit 8691f8e6 by zhengxj

finish 修复订单列表中已取消单不展示 on 20190307 by zhengxj

git-svn-id: svn://192.168.3.233/frms/code/car-service/trunk/car-service@18237 aeb6102e-e053-11e5-9fec-f9ebc45caf4b
1 parent 48573494
...@@ -809,11 +809,10 @@ public class OrderServiceImpl implements IOrderService { ...@@ -809,11 +809,10 @@ public class OrderServiceImpl implements IOrderService {
SysOrderExample example, Page page) { SysOrderExample example, Page page) {
SysUser user = sysUserDao.selectByPrimaryKey(userId); SysUser user = sysUserDao.selectByPrimaryKey(userId);
int userType = user.getUserType(); int userType = user.getUserType();
// 用户类型(0:系统管理员,1:服务商,2:门店,3:技工) // 用户类型(0:系统管理员,1:服务商,2:门店,3:技工)
SysMerchantExample sysMerchantExample = new SysMerchantExample();
// SysMerchant sysMerchant = null; // SysMerchant sysMerchant = null;
com.glsx.ordercenter.pojo.user.SysMerchantExample.Criteria sysMerchantCriteria = sysMerchantExample // com.glsx.ordercenter.pojo.user.SysMerchantExample.Criteria sysMerchantCriteria = sysMerchantExample
.createCriteria(); // .createCriteria();
Criteria orderCriteria = example.createCriteria(); Criteria orderCriteria = example.createCriteria();
example.setOrderByClause(" create_time desc"); example.setOrderByClause(" create_time desc");
...@@ -823,12 +822,7 @@ public class OrderServiceImpl implements IOrderService { ...@@ -823,12 +822,7 @@ public class OrderServiceImpl implements IOrderService {
// 门店端 // 门店端
// 待接单(状态1、状态2、状态3、状态4、状态5)、 // 待接单(状态1、状态2、状态3、状态4、状态5)、
// 已接单(状态6、状态7)、 // 已接单(状态6、状态7)、
// 已完成(状态8) // 已完成(状态8)
// sysMerchantCriteria.andUserIdEqualTo(userId);
// sysMerchant =
// sysMerchantDao.selectByExample(sysMerchantExample).get(0);
// shopId = sysMerchant.getId();
orderCriteria.andShopIdEqualTo(userId); orderCriteria.andShopIdEqualTo(userId);
...@@ -864,7 +858,7 @@ public class OrderServiceImpl implements IOrderService { ...@@ -864,7 +858,7 @@ public class OrderServiceImpl implements IOrderService {
// SysMechanicExample sysMechanicExample = new SysMechanicExample(); // SysMechanicExample sysMechanicExample = new SysMechanicExample();
// sysMechanicExample.createCriteria().andUserIdEqualTo(userId); // sysMechanicExample.createCriteria().andUserIdEqualTo(userId);
// int mechanicId = sysMechanicDao.selectByExample(sysMechanicExample).get(0).getId(); // int mechanicId = sysMechanicDao.selectByExample(sysMechanicExample).get(0).getId();
orderCriteria.andMechanicIdEqualTo(userId).andCanceledNotEqualTo((byte) 0); orderCriteria.andMechanicIdEqualTo(userId);
switch (orderStatus) { switch (orderStatus) {
case 0: case 0:
// 待接单 // 待接单
...@@ -894,7 +888,7 @@ public class OrderServiceImpl implements IOrderService { ...@@ -894,7 +888,7 @@ public class OrderServiceImpl implements IOrderService {
// SysMerchantExample merchantExample = new SysMerchantExample(); // SysMerchantExample merchantExample = new SysMerchantExample();
// merchantExample.createCriteria().andUserIdEqualTo(userId); // merchantExample.createCriteria().andUserIdEqualTo(userId);
// int merchantId = sysMerchantDao.selectByExample(merchantExample).get(0).getId(); // int merchantId = sysMerchantDao.selectByExample(merchantExample).get(0).getId();
orderCriteria.andMerchantIdEqualTo(userId).andCanceledNotEqualTo((byte) 0); orderCriteria.andMerchantIdEqualTo(userId);
switch (orderStatus) { switch (orderStatus) {
case 0: case 0:
// 待指派 // 待指派
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!