| | |
| | | } |
| | | break; |
| | | case WAIT_CONFIRM: |
| | | if(StringUtils.isBlank(equipment.getEquipmentManager())) { |
| | | throw new JeecgBootException("设备未分配设备管理员,无法进入下级审批!"); |
| | | } |
| | | //班组长确认 |
| | | userApprovalList = new ArrayList<>(); |
| | | userApprovalList.add(equipment.getEquipmentManager()); |
| | |
| | | case WAIT_INITIAL_ACCEPTANCE: |
| | | userSelectors = sysUserService.selectOperatorList(equipment.getEquipmentCode(), equipment.getOrgId(), BusinessCodeConst.PCR0005); |
| | | if (CollectionUtil.isEmpty(userSelectors)) { |
| | | throw new JeecgBootException("设备未分配给班组长,无法进入下级审批!"); |
| | | throw new JeecgBootException("设备未分配给设能部管理员,无法进入下级审批!"); |
| | | } |
| | | userApprovalList = userSelectors.stream().map(UserSelector::getUsername).collect(Collectors.toList()); |
| | | values.put("dataId", entity.getId()); |