Commit ce09ce83 by zhengxj

finish 新增订单删除接口 on 20190315 by zhengxj

git-svn-id: svn://192.168.3.233/frms/code/car-service/trunk/car-service@18570 aeb6102e-e053-11e5-9fec-f9ebc45caf4b
1 parent d684519b
......@@ -161,7 +161,7 @@ public class OrderServiceImpl implements IOrderService {
}
sysOrder.setActiveStatusArray(";" + str + DateUtil.formatDate(new Date()) + ":已删除");
// 更新订单状态为已删除
orderDao.updateByPrimaryKey(sysOrder);
orderDao.updateByPrimaryKeySelective(sysOrder);
// 记录订单流转状态
SysOrderStatus sysOrderStatus = new SysOrderStatus();
sysOrderStatus.setOrderId(id);
......@@ -184,7 +184,7 @@ public class OrderServiceImpl implements IOrderService {
return new ResultObject(ResultCodeEnum.FAIL.getCode(), "该订单还有子订单,不支持删除操作!");
}
// 更新状态
orderDao.updateByPrimaryKey(sysOrder);
orderDao.updateByPrimaryKeySelective(sysOrder);
// 记录订单流转状态
SysOrderStatus sysOrderStatus = new SysOrderStatus();
sysOrderStatus.setOrderId(id);
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!