| | |
| | | WarehouseLocation finishWarehouseLocations = warehouseLocationMapper.selectOne(warehouseLocationQuery); |
| | | |
| | | if (Objects.isNull(finishWarehouseLocations)){ |
| | | throw new BusinessException(ResponseStatus.BAD_REQUEST.getCode(),"已完工货位不存在"); |
| | | throw new BusinessException(ResponseStatus.BAD_REQUEST.getCode(),"已完工货位不是混合属性不存在"); |
| | | } |
| | | |
| | | Map<String, WarehouseLocation> collect =new HashMap<>(); |
| | |
| | | device.setDepartId(user.getCurComDepartment().getId()); |
| | | device.setProcedureId(procedures.getId()); |
| | | |
| | | device.setCode(StringUtils.isNotBlank(device.getCode()) ? device.getCode() : this.getNextCode(user.getCompany().getId())); |
| | | device.setCode(StringUtils.isNotBlank(s.getDeviceCode()) ? s.getDeviceCode() : this.getNextCode(user.getCompany().getId())); |
| | | device.setType(StringUtils.isNotBlank(device.getCode()) ? device.getCode().trim().equals("设备") ? 1 : 0 : 1); |
| | | device.setName(s.getDeviceName()); |
| | | device.setModel(s.getModel()); |