| | |
| | | public Boolean innerAddWorkOrder(List<WorkOrder> workOrderList) { |
| | | int total = workOrderList.size(); |
| | | workOrderList.stream().filter(item -> { |
| | | return StringUtils.hasText(item.getSerialNumber()) && Objects.nonNull(item.getStatus()) && StringUtils.hasText(item.getErrorType()); |
| | | return StringUtils.hasText(item.getSerialNumber()) && Objects.nonNull(item.getStatus()) && !CollectionUtils.isEmpty(item.getErrorTypeList()); |
| | | }); |
| | | if (CollectionUtils.isEmpty(workOrderList)) { |
| | | return Boolean.TRUE; |
| | |
| | | } |
| | | |
| | | /** |
| | | * 获取运维单位ID |
| | | * |
| | | * */ |
| | | public static Integer getUnitId() { |
| | | try { |
| | | return getLoginUser().getUser().getUnitId(); |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | throw new ServiceException("获取用户单位异常", HttpStatus.UNAUTHORIZED); |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 获取部门ID |
| | | **/ |
| | | public static Long getDeptId() |