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 {
example.createCriteria().andIdEqualTo(order.getMerchantId());
order.setOrderChannel(sysMerchantDao.selectByExample(sysMerchantExample).get(0).getShopName());
}
// 技工信息
if (order.getMechanicId() != null) {
MachanicInfo machanicInfo = new MachanicInfo();
......@@ -807,7 +806,7 @@ public class OrderServiceImpl implements IOrderService {
// sysMerchantDao.selectByExample(sysMerchantExample).get(0);
// shopId = sysMerchant.getId();
orderCriteria.andShopIdEqualTo(userId).andCanceledNotEqualTo((byte) 0);
orderCriteria.andShopIdEqualTo(userId);
switch (orderStatus) {
case 0:
......@@ -923,7 +922,7 @@ public class OrderServiceImpl implements IOrderService {
ids.add(sysOrderRepair.getSubOrderId());
SysOrderExample orderExample = new SysOrderExample();
// 未完成订单(非取消 的)
orderExample.createCriteria().andCanceledEqualTo((byte) 1).andActiveStatusNotEqualTo((byte) 8);
orderExample.createCriteria().andActiveStatusNotEqualTo((byte) 8);
// orderDao.selectByExample(orderExample);
long count = orderDao.countByExample(orderExample);
if (count > 0) {
......@@ -932,7 +931,7 @@ public class OrderServiceImpl implements IOrderService {
orderExample.clear();
// 以完成的取消单
orderExample.createCriteria().andCanceledEqualTo((byte) 1).andActiveStatusEqualTo((byte) 8)
orderExample.createCriteria().andActiveStatusEqualTo((byte) 8)
.andOrderTypeEqualTo((byte) 2);
count = orderDao.countByExample(orderExample);
if (count > 0) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!