fix: 旗标复审流程定时任务自动发起流程报错BUG
This commit is contained in:
+7
-2
@@ -60,6 +60,10 @@ public class ESRecheckPlanJob implements Job {
|
||||
// 根据企标发布日期判断是否当前已经达到35个月
|
||||
|
||||
// 请确保es.getReleaseDate()返回的是Date类型的实例
|
||||
if (es.getReleaseDate() == null) {
|
||||
log.info("无法找到企标编号为{}的发布日期,无法进行复审计划定时任务", es.getStandardNumber());
|
||||
continue;
|
||||
}
|
||||
ZonedDateTime releaseZonedDateTime = es.getReleaseDate().toInstant()
|
||||
.atZone(ZoneId.of("Asia/Shanghai"));
|
||||
LocalDate releaseLocalDate = releaseZonedDateTime.toLocalDate();
|
||||
@@ -84,8 +88,9 @@ public class ESRecheckPlanJob implements Job {
|
||||
// 自动发起流程
|
||||
// 找到各自企标的联络人,如果找不到联络人则发给标准化工程师
|
||||
String deptId = es.getMainDraftingUnit();
|
||||
String standardNo = es.getStandardNumber();
|
||||
if (StrUtil.isBlank(deptId)) {
|
||||
log.error("企标复审流程发起失败,企标Id为{}的企标部门ID为空,无法找到其联络人", deptId);
|
||||
log.error("企标复审流程发起失败,企标编号为{}的企标部门ID为空,无法找到其联络人", standardNo);
|
||||
continue;
|
||||
}
|
||||
String standardizationUser = contactManageService.findContactUserByDept(deptId);
|
||||
@@ -94,7 +99,7 @@ public class ESRecheckPlanJob implements Job {
|
||||
standardEngineer = contactManageService.findStandardEngineerByDept(deptId);
|
||||
}
|
||||
if (StrUtil.isBlank(standardizationUser) && StrUtil.isBlank(standardEngineer)) {
|
||||
log.error("企标复审流程发起失败,无法找到企标Id为{}的联络人和标准化工程师", deptId);
|
||||
log.error("企标复审流程发起失败,无法找到企标编号为{}的联络人和标准化工程师", standardNo);
|
||||
continue;
|
||||
}
|
||||
// 构建发起流程数据
|
||||
|
||||
Reference in New Issue
Block a user