Commit 1ea944d363b38188fa0794e6a72d136fbeba2255

Authored by 张志伟
1 parent aea3bacf

:construction: 事故车跟进计时调整

fw-valhalla-service/src/main/java/cn/fw/valhalla/service/bus/cust/AccidentPoolBizService.java
... ... @@ -116,7 +116,11 @@ public class AccidentPoolBizService {
116 116 followTask.setOriginTime(pool.getCreateTime());
117 117 followTask.setState(TaskStateEnum.WAITING);
118 118 followTask.setBeginTime(DateUtil.localDateTime2Date(LocalDateTime.now()));
119   - followTask.setDeadline(DateUtil.getCurrentDayEndTime());
  119 + settingBizService.querySettingByType(FollowTypeEnum.AC, SettingTypeEnum.FAIL_TIME, pool.getGroupId())
  120 + .ifPresent(r -> {
  121 + Timestamp expired = DateUtil.getExpired(pool.getCreateTime(), r.getDetailValue(), getCalendarType(Objects.requireNonNull(SettingUnitEnum.ofValue(r.getUnit()))));
  122 + followTask.setDeadline(expired);
  123 + });
120 124 followTask.setFinished(Boolean.FALSE);
121 125 followTask.setGroupId(pool.getGroupId());
122 126 followTask.setOriginShop(pool.getShopId());
... ...