| | |
| | | roomsMapper.insert(rooms); |
| | | if(!Constants.equalsInteger(rooms.getFileType(),Constants.TWO)){ |
| | | List<Multifile> multifileList = rooms.getMultifileList(); |
| | | if(CollectionUtils.isEmpty(multifileList)){ |
| | | throw new BusinessException(ResponseStatus.NOT_ALLOWED.getCode(),"请上传附件信息"); |
| | | } |
| | | for (Multifile multifile:multifileList) { |
| | | if(Objects.isNull(multifile) |
| | | || StringUtils.isBlank(multifile.getFileurl())){ |
| | | || StringUtils.isBlank(multifile.getFileurl())){ |
| | | throw new BusinessException(ResponseStatus.BAD_REQUEST.getCode(),"附件参数错误"); |
| | | } |
| | | multifile.setCreateDate(new Date()); |
| | |
| | | |
| | | if(!Constants.equalsInteger(rooms.getFileType(),Constants.TWO)){ |
| | | List<Multifile> multifileList = rooms.getMultifileList(); |
| | | if(CollectionUtils.isEmpty(multifileList)){ |
| | | throw new BusinessException(ResponseStatus.NOT_ALLOWED.getCode(),"请上传附件信息"); |
| | | } |
| | | for (Multifile multifile:multifileList) { |
| | | if(Objects.isNull(multifile) |
| | | || StringUtils.isBlank(multifile.getFileurl())){ |