开工日期调整
This commit is contained in:
parent
b097198695
commit
b380628d7a
|
|
@ -956,13 +956,8 @@ public class WorkServiceImplements implements IWorkService {
|
|||
if (kateDBS == null || StringUtils.isEmpty(kateDBS.getWorkOrder())) {// 不存在对应的工单计划
|
||||
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) {
|
||||
// 工作日不包含此开工日期
|
||||
continue;
|
||||
|
|
@ -1043,7 +1038,7 @@ public class WorkServiceImplements implements IWorkService {
|
|||
.eq(KateOrders::getSortString, configMap.get(ConfigMapKeyEnum.SLOC_FILTER_STRING.getConfigKey()))
|
||||
.eq(KateOrders::getPlanStartDate, currentWorkDate));
|
||||
if (currentDateKateWorkOrders.isEmpty()) {
|
||||
logger.info("没有当日工单。");
|
||||
logger.info("没有当日待生成工作流的工单。");
|
||||
return;
|
||||
}
|
||||
for (KateOrders tempOrder : currentDateKateWorkOrders) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user