Commit 90328f93 by huangjinxin

fix:指派订单插单优化

1 parent 6ad59d1d
......@@ -483,7 +483,7 @@ public class OrderInfoServiceImpl implements OrderInfoService {
// 没有单直接返回
if (CollectionUtils.isEmpty(engineerOrders)) {
Result handleLeaveTimeResult = handleLeaveTime(engineerLeaveTimeSlice, insertOrder.getExpectTimeBegin(), insertOrder.getExpectTimeEnd(), skillInfo.getTakeTime(), true, insertOrder);
if (!handleLeaveTimeResult.getCode().equals(StatusCodeEnum.SUCCESS)) {
if (!handleLeaveTimeResult.getCode().equals(ResultEnum.SUCCESS)) {
return Result.failed(insertOrder);
}
LocalDateTime planStartTime = (LocalDateTime) handleLeaveTimeResult.getResult();
......@@ -513,7 +513,7 @@ public class OrderInfoServiceImpl implements OrderInfoService {
// 没有单直接返回
if (CollectionUtils.isEmpty(orderSegments)) {
Result handleLeaveTimeResult = handleLeaveTime(engineerLeaveTimeSlice, insertOrder.getExpectTimeBegin(), insertOrder.getExpectTimeEnd(), skillInfo.getTakeTime(), true, insertOrder);
if (!handleLeaveTimeResult.getCode().equals(StatusCodeEnum.SUCCESS)) {
if (!handleLeaveTimeResult.getCode().equals(ResultEnum.SUCCESS)) {
return Result.failed(insertOrder);
}
LocalDateTime planStartTime = (LocalDateTime) handleLeaveTimeResult.getResult();
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!