设备日点检pda校验登录人员权限

master
zpl 3 years ago
parent 0dbfaa909e
commit 4d8ce94d4e

@ -225,7 +225,12 @@ public class ResourceInspectTaskServiceImpl extends ServiceImpl<ResourceInspectT
@Override
public ResourceInspectTask getInspectTaskByResource(ResourceInspectTaskDto resourceInspectTaskDto) {
resourceInspectTaskDto.setSite(CommonMethods.getSite());
String site = CommonMethods.getSite();
String currentUser = CommonMethods.getUser();
String userBo = HandleEnum.USR.getHandle(site, currentUser);
resourceInspectTaskDto.setSite(site);
resourceInspectTaskDto.setCurrentUser(userBo);
LocalDateTime now = LocalDateTime.now();
LocalDateTime compareStart = now.minusHours(now.getHour()).minusMinutes(now.getMinute());
LocalDateTime compareEnd = compareStart.plusDays(1);
@ -241,10 +246,6 @@ public class ResourceInspectTaskServiceImpl extends ServiceImpl<ResourceInspectT
resourceInspectTaskAll.setResourceDescription(resourceInspectTaskList.get(0).getResourceDescription());
return resourceInspectTaskAll;
}
// 获取任务详情
/*if (resourceInspectTaskList.size() > 1){
throw BusinessException.build("当前设备当日点检任务不止一个!");
}*/
throw BusinessException.build("未找到当日的点检任务!");
}

Loading…
Cancel
Save