Browse Source

fix:认定办结时区分市局和分局认定记录时间

master
buaixuexideshitongxue 3 weeks ago
parent
commit
62798752c1
  1. 13
      src/main/java/com/biutag/supervision/flow/action/ConfirmationCompletionAction.java

13
src/main/java/com/biutag/supervision/flow/action/ConfirmationCompletionAction.java

@ -105,6 +105,10 @@ public class ConfirmationCompletionAction implements Action {
if (negative.getLatestProcessTime() != null) { if (negative.getLatestProcessTime() != null) {
firstApproveTime = firstApproveTime + TimeUtil.calculateWorkdayDuration(negative.getLatestProcessTime(), now); firstApproveTime = firstApproveTime + TimeUtil.calculateWorkdayDuration(negative.getLatestProcessTime(), now);
} }
Long secondApprovalTime = negative.getSecondApprovalTime() == null ? 0L : negative.getSecondApprovalTime();
if (negative.getLatestProcessTime() != null) {
secondApprovalTime = secondApprovalTime + TimeUtil.calculateWorkdayDuration(negative.getLatestProcessTime(), now);
}
LambdaUpdateWrapper<Negative> updateWrapper = new LambdaUpdateWrapper<Negative>() LambdaUpdateWrapper<Negative> updateWrapper = new LambdaUpdateWrapper<Negative>()
.eq(Negative::getId, negativeId) .eq(Negative::getId, negativeId)
.set(Negative::getProcessingStatus, ProcessingStatusEnum.completed.name()) .set(Negative::getProcessingStatus, ProcessingStatusEnum.completed.name())
@ -114,8 +118,13 @@ public class ConfirmationCompletionAction implements Action {
.set(StrUtil.isNotEmpty(completionData.getReportId()),Negative::getReportId,completionData.getReportId()) .set(StrUtil.isNotEmpty(completionData.getReportId()),Negative::getReportId,completionData.getReportId())
.set(StrUtil.isNotEmpty(completionData.getReportNumber()),Negative::getReportNumber,completionData.getReportNumber()) .set(StrUtil.isNotEmpty(completionData.getReportNumber()),Negative::getReportNumber,completionData.getReportNumber())
.set(Negative::getFlowKey, FlowNodeEnum.COMPLETED.getKey()) .set(Negative::getFlowKey, FlowNodeEnum.COMPLETED.getKey())
.set(Negative::getUpdTime, LocalDateTime.now()) .set(Negative::getUpdTime, LocalDateTime.now());
.set(Negative::getFirstApproveTime, firstApproveTime); if ("2".equals(negative.getApprovalFlow())){
updateWrapper.set(Negative::getSecondApprovalTime, secondApprovalTime);
}
if ("3".equals(negative.getApprovalFlow())){
updateWrapper.set(Negative::getFirstApproveTime, firstApproveTime);
}
negativeService.update(updateWrapper); negativeService.update(updateWrapper);
} }
public void doneWork(Integer workId, String negativeId) { public void doneWork(Integer workId, String negativeId) {

Loading…
Cancel
Save