功能修改

master
zpl 3 years ago
parent b936d6b11a
commit 16a67a8850

@ -231,9 +231,10 @@ public class ResourceInspectTaskServiceImpl extends ServiceImpl<ResourceInspectT
LocalDateTime compareEnd = compareStart.plusDays(1);
resourceInspectTaskDto.setCompareStartDate(compareStart.toString().substring(0,16).replace('T',' '));
resourceInspectTaskDto.setCompareEndDate(compareEnd.toString().substring(0,16).replace('T',' '));
resourceInspectTaskDto.setCategory("DM");
// 获取当日任务的handle
List<ResourceInspectTaskDto> resourceInspectTaskList = resourceInspectTaskMapper.findResourceInspectTaskList(resourceInspectTaskDto);
if (resourceInspectTaskList.size() == 1){
if (resourceInspectTaskList.size() > 0 ){
ResourceInspectTask resourceInspectTask = new ResourceInspectTask();
resourceInspectTask.setHandle(resourceInspectTaskList.get(0).getHandle());
ResourceInspectTask resourceInspectTaskAll = resourceInspectTaskService.getResourceInspectTaskAll(resourceInspectTask);
@ -241,9 +242,9 @@ public class ResourceInspectTaskServiceImpl extends ServiceImpl<ResourceInspectT
return resourceInspectTaskAll;
}
// 获取任务详情
if (resourceInspectTaskList.size() > 1){
/*if (resourceInspectTaskList.size() > 1){
throw BusinessException.build("当前设备当日点检任务不止一个!");
}
}*/
throw BusinessException.build("未找到当日的点检任务!");
}

Loading…
Cancel
Save