超标原因调整。
This commit is contained in:
parent
d02276ea0d
commit
cf0986a837
|
@ -98,8 +98,8 @@ public class LyStatementOrder {
|
|||
try {
|
||||
// 关闭线程池
|
||||
executor.shutdown();
|
||||
// 等待所有任务执行完成或者超时时间到达(这里设置为一天)
|
||||
boolean flag = executor.awaitTermination(1, TimeUnit.HOURS);
|
||||
// 等待所有任务执行完成或者超时时间到达(这里设置为6小时)
|
||||
boolean flag = executor.awaitTermination(6, TimeUnit.HOURS);
|
||||
} catch (InterruptedException e) {
|
||||
// 处理中断异常
|
||||
log.error(e.getMessage());
|
||||
|
|
|
@ -38,6 +38,7 @@ import java.math.BigDecimal;
|
|||
import java.time.format.DateTimeFormatter;
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
import static com.chint.infrastructure.constant.BPMConstant.*;
|
||||
import static com.chint.infrastructure.constant.BPMConstant.REFUND_TYPE_FLIGHT;
|
||||
|
@ -118,7 +119,10 @@ public class BPMOrderDomainService {
|
|||
case LEG_TYPE_OTHER -> bpmParamFactory.creatAuditParamByOther(orderDetail);
|
||||
default -> throw new NotFoundException(CommonMessageConstant.NOT_FOUND);
|
||||
};
|
||||
exceedStandardDto.setReason(command.getReason());
|
||||
String currentReason = exceedStandardDto.getReason();
|
||||
if (StringUtils.isBlank(currentReason)) {
|
||||
exceedStandardDto.setReason(command.getReason());
|
||||
}
|
||||
DelayDispatch.attemptToSend(() -> bpmRequest.exceedStandard(exceedStandardDto, sysCode, employeeNo, accountCompany).getSuccess(),
|
||||
0);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue