Commit addd35b7 by zhengxj

finish 展示已取消订单 on 20190301 by zhengxj

git-svn-id: svn://192.168.3.233/frms/code/car-service/trunk/car-service@18036 aeb6102e-e053-11e5-9fec-f9ebc45caf4b
1 parent 23f7a32c
...@@ -245,7 +245,6 @@ public class OrderServiceImpl implements IOrderService { ...@@ -245,7 +245,6 @@ public class OrderServiceImpl implements IOrderService {
example.createCriteria().andIdEqualTo(order.getMerchantId()); example.createCriteria().andIdEqualTo(order.getMerchantId());
order.setOrderChannel(sysMerchantDao.selectByExample(sysMerchantExample).get(0).getShopName()); order.setOrderChannel(sysMerchantDao.selectByExample(sysMerchantExample).get(0).getShopName());
} }
// 技工信息 // 技工信息
if (order.getMechanicId() != null) { if (order.getMechanicId() != null) {
MachanicInfo machanicInfo = new MachanicInfo(); MachanicInfo machanicInfo = new MachanicInfo();
...@@ -807,7 +806,7 @@ public class OrderServiceImpl implements IOrderService { ...@@ -807,7 +806,7 @@ public class OrderServiceImpl implements IOrderService {
// sysMerchantDao.selectByExample(sysMerchantExample).get(0); // sysMerchantDao.selectByExample(sysMerchantExample).get(0);
// shopId = sysMerchant.getId(); // shopId = sysMerchant.getId();
orderCriteria.andShopIdEqualTo(userId).andCanceledNotEqualTo((byte) 0); orderCriteria.andShopIdEqualTo(userId);
switch (orderStatus) { switch (orderStatus) {
case 0: case 0:
...@@ -923,7 +922,7 @@ public class OrderServiceImpl implements IOrderService { ...@@ -923,7 +922,7 @@ public class OrderServiceImpl implements IOrderService {
ids.add(sysOrderRepair.getSubOrderId()); ids.add(sysOrderRepair.getSubOrderId());
SysOrderExample orderExample = new SysOrderExample(); SysOrderExample orderExample = new SysOrderExample();
// 未完成订单(非取消 的) // 未完成订单(非取消 的)
orderExample.createCriteria().andCanceledEqualTo((byte) 1).andActiveStatusNotEqualTo((byte) 8); orderExample.createCriteria().andActiveStatusNotEqualTo((byte) 8);
// orderDao.selectByExample(orderExample); // orderDao.selectByExample(orderExample);
long count = orderDao.countByExample(orderExample); long count = orderDao.countByExample(orderExample);
if (count > 0) { if (count > 0) {
...@@ -932,7 +931,7 @@ public class OrderServiceImpl implements IOrderService { ...@@ -932,7 +931,7 @@ public class OrderServiceImpl implements IOrderService {
orderExample.clear(); orderExample.clear();
// 以完成的取消单 // 以完成的取消单
orderExample.createCriteria().andCanceledEqualTo((byte) 1).andActiveStatusEqualTo((byte) 8) orderExample.createCriteria().andActiveStatusEqualTo((byte) 8)
.andOrderTypeEqualTo((byte) 2); .andOrderTypeEqualTo((byte) 2);
count = orderDao.countByExample(orderExample); count = orderDao.countByExample(orderExample);
if (count > 0) { if (count > 0) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!