| | |
| | | return new ResultVO<>(ResultCodes.OK,typeRespDTOList); |
| | | } |
| | | |
| | | @Override |
| | | public ResultVO<List<EmergencySuppliesRespDTO>> listCountByIds(ContextCacheUser currentUser, List<Long> ids) { |
| | | if(null == ids || ids.size() == 0 ){ |
| | | throw new EmergencyException(EmergencyResultCodes.SUPPLIES_PRAM_NULL); |
| | | } |
| | | List<EmergencySuppliesInfo> emergencySuppliesInfos = emergencySuppliesInfoService.listCountByIds(ids); |
| | | List<EmergencySuppliesRespDTO> respDTOList = new ArrayList<>(); |
| | | if(!CollectionUtils.isEmpty(emergencySuppliesInfos)){ |
| | | respDTOList = BeanCopyUtils.copyBeanList(emergencySuppliesInfos,EmergencySuppliesRespDTO.class); |
| | | } |
| | | return new ResultVO<>(ResultCodes.OK,respDTOList); |
| | | } |
| | | |
| | | private void deleteEmergencySupplies(Long id) { |
| | | //查询是否存在 |
| | | EmergencySuppliesInfoDetailDO emergencySuppliesInfoDetailDO = emergencySuppliesInfoService.selectEmergencySuppliesById(id); |
| | |
| | | } |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * 验证必填项 |
| | | * @return |