k94314517
2024-09-20 95c7577e799e7975c759e28d9a33a0515f8662cd
server/meeting/meeting_service/src/main/java/com/doumee/service/business/impl/RoomsServiceImpl.java
@@ -106,9 +106,12 @@
        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());
@@ -397,6 +400,9 @@
        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())){