bug修改

This commit is contained in:
lgh 2022-07-13 09:05:29 +08:00
parent 3015a43a55
commit 22c6288659
2 changed files with 2 additions and 2 deletions

View File

@ -287,7 +287,7 @@ public class CurrTaskServiceImpl extends BaseService implements CurrTaskService
);
e.setCustomers(customers);
e.setKilnName(e.getTargetPosition());
e.setLocationName(locationServiceBiz.getById(e.getLocationId()).getLocationName());
//e.setLocationName(locationServiceBiz.getById(e.getLocationId()).getLocationName());
});
return successful(pageVo);
}

View File

@ -217,7 +217,7 @@ public class ScheduledTask extends BaseService {
asynRunTaskService.asynEndRecordConsume(currTask.getId(),kilnId);
logger.info(kilnInfo.getCode()+"炉子中的任务:"+currTask.getId()+"已加工结束,记录加工结束能源消耗值");
//更新加工单工艺结束时间,只更新一次因为可能因为不满住出炉条件而进入到下一次定时任务
if (StringUtils.isBlank(currTask.getEndTime().toString())){
if (String.valueOf(currTask.getEndTime()).equals("null")){
currTask.setEndTime(LocalDateTime.now());
currTaskServiceBiz.updateById(currTask);
}