Commit 157b6b84 by wangnb

包活干2.4.1更新工单参数校验--think.wang

git-svn-id: svn://192.168.3.233/frms/code/car-service/trunk/car-service@31011 aeb6102e-e053-11e5-9fec-f9ebc45caf4b
1 parent 20d56925
......@@ -499,7 +499,7 @@ public class StandardOrderServiceImpl implements StandardOrderService {
}
Integer oldMerchantId = oldOrder.getShopId();
SysOrder order = new SysOrder();
order.setId(order.getId());
order.setId(oldOrder.getId());
if (oldActiveStatus.equals(OrderActiveStatusEnum.ORDER_ACTIVE_STATUS_MERCHANT_HAS_SENT.getActiveStatus())) {
order.setActiveStatus(sysOrder.getActiveStatus());
} else {
......@@ -541,6 +541,10 @@ public class StandardOrderServiceImpl implements StandardOrderService {
} else {
order.setShopId(merchantId);
}
if (StringUtils.isEmpty(order.getWorkOrderNo()) ||
StringUtils.isEmpty(order.getChannel())){
return ResultObject.of(com.glsx.common.constants.ResultCodeEnum.PARAM_ERROR);
}
int num = orderMapper.updateChannelOrder(order);
//增加订单状态流水
if (num == 1) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!