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