开工日期调整

This commit is contained in:
梁州 2026-01-02 15:50:29 +08:00
parent b097198695
commit b380628d7a

View File

@ -956,13 +956,8 @@ public class WorkServiceImplements implements IWorkService {
if (kateDBS == null || StringUtils.isEmpty(kateDBS.getWorkOrder())) {// 不存在对应的工单计划 if (kateDBS == null || StringUtils.isEmpty(kateDBS.getWorkOrder())) {// 不存在对应的工单计划
continue; continue;
} }
if (!isAddReqmtsDate) {
localDateTime = kateDBS.getPlanStartDate();
} else {
localDateTime = kateWorkOrder.getPlanStartDate().atStartOfDay();
}
// 判断是否是当天开工 // 判断是否是当天开工
int indexOfDbs = localWorkDateList.indexOf(localDateTime.toLocalDate()); int indexOfDbs = localWorkDateList.indexOf(kateDBS.getPlanStartDate().toLocalDate());
if (indexOfDbs == -1) { if (indexOfDbs == -1) {
// 工作日不包含此开工日期 // 工作日不包含此开工日期
continue; continue;
@ -1043,7 +1038,7 @@ public class WorkServiceImplements implements IWorkService {
.eq(KateOrders::getSortString, configMap.get(ConfigMapKeyEnum.SLOC_FILTER_STRING.getConfigKey())) .eq(KateOrders::getSortString, configMap.get(ConfigMapKeyEnum.SLOC_FILTER_STRING.getConfigKey()))
.eq(KateOrders::getPlanStartDate, currentWorkDate)); .eq(KateOrders::getPlanStartDate, currentWorkDate));
if (currentDateKateWorkOrders.isEmpty()) { if (currentDateKateWorkOrders.isEmpty()) {
logger.info("没有当日工单。"); logger.info("没有当日待生成工作流的工单。");
return; return;
} }
for (KateOrders tempOrder : currentDateKateWorkOrders) { for (KateOrders tempOrder : currentDateKateWorkOrders) {