Commit e70b54d7 by yuanlin

提交包活干检修安装拆除审核驳回 finished by yuanlin

git-svn-id: svn://192.168.3.233/frms/code/car-service/trunk/car-service@26599 aeb6102e-e053-11e5-9fec-f9ebc45caf4b
1 parent 956ed107
...@@ -251,6 +251,15 @@ public class DaSouCheOrderServiceImpl implements DaSouCheOrderService { ...@@ -251,6 +251,15 @@ public class DaSouCheOrderServiceImpl implements DaSouCheOrderService {
String orderSn = orderService.getOrderSn(order.getOrderType()); String orderSn = orderService.getOrderSn(order.getOrderType());
order.setOrderSn(orderSn); order.setOrderSn(orderSn);
order.setActiveStatus((byte) OrderActiveStatusEnum.ORDER_ACTIVE_STATUS_MERCHANT_HAS_SENT.getActiveStatus()); order.setActiveStatus((byte) OrderActiveStatusEnum.ORDER_ACTIVE_STATUS_MERCHANT_HAS_SENT.getActiveStatus());
Date now = new Date();
order.setCreateTime(now);
Date expectInstallTimeDate = DateUtil.addHours(now, 24);
String torromSixDate = com.glsx.common.utils.DateUtil.formatDateYmd(DateUtil.addDays(now, 2)) + " 18:00:00";
long difference = DaSouCheUtil.getDifferenceBetweenTwoTime(expectInstallTimeDate, com.glsx.common.utils.DateUtil.parseDate(torromSixDate), DaSouCheUtil.TimeUnitType.SECOND);
if (difference < 0) {
expectInstallTimeDate = DateUtil.addHours(DateUtil.addDays(now, 3), 9);
}
order.setExpectInstallTime(expectInstallTimeDate);
int num = orderService.insertSelective(order); int num = orderService.insertSelective(order);
if (num == 1) { if (num == 1) {
recordOrderStatus(order, 4); recordOrderStatus(order, 4);
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!