Commit f9608a19 by zhanghj

V1.0.0--修复bug一条检修记录从已完成列表中取消检修取消不了

git-svn-id: svn://192.168.3.233/frms/code/car-service/trunk/car-service@18954 aeb6102e-e053-11e5-9fec-f9ebc45caf4b
1 parent 3ea5d039
...@@ -53,7 +53,7 @@ public interface BizConstants { ...@@ -53,7 +53,7 @@ public interface BizConstants {
public static final int ORDER_TYPE_REPAIR = 3; public static final int ORDER_TYPE_REPAIR = 3;
/** /**
* 订单是否取消。0.已取消 * 订单是否取消。0.已取消,1:未取消
*/ */
public static final int ORDER_CANCELED = 0; public static final int ORDER_CANCELED = 0;
public static final int ORDER_NOT_CANCELED = 1; public static final int ORDER_NOT_CANCELED = 1;
......
...@@ -2151,6 +2151,7 @@ public class OrderServiceImpl implements IOrderService { ...@@ -2151,6 +2151,7 @@ public class OrderServiceImpl implements IOrderService {
*/ */
SysOrder repOrder = new SysOrder(); SysOrder repOrder = new SysOrder();
repOrder.setId(orderId); repOrder.setId(orderId);
repOrder.setCanceled((byte) BizConstants.ORDER_NOT_CANCELED);
List<SysOrder> repairs = orderDao.getAfterSaleRepairList(repOrder); List<SysOrder> repairs = orderDao.getAfterSaleRepairList(repOrder);
/* /*
...@@ -2176,7 +2177,7 @@ public class OrderServiceImpl implements IOrderService { ...@@ -2176,7 +2177,7 @@ public class OrderServiceImpl implements IOrderService {
Date now = new Date(); Date now = new Date();
order.setUpdateTime(now); order.setUpdateTime(now);
orderDao.updateByPrimaryKeySelective(order); orderDao.updateByPrimaryKeySelective(order);
} else { } else if (OrderActiveStatusEnum.ORDER_ACTIVE_STATUS_FINISH.getActiveStatus() != actStatus && BizConstants.ORDER_AFTER_SALE_TYPE_CHANGE_CAR == afterSaleType){
changeCarRepairs.add(repair); changeCarRepairs.add(repair);
} }
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!