|
@@ -73,13 +73,13 @@ public class SceneUploadServiceImpl extends ServiceImpl<ISceneUploadMapper, Scen
|
|
return this.uploadFiles(fileName,blzType,multipartFiles,sceneCode,type,userId);
|
|
return this.uploadFiles(fileName,blzType,multipartFiles,sceneCode,type,userId);
|
|
}
|
|
}
|
|
|
|
|
|
- public String uploadFiles(String sendFileName,String blzType,List<MultipartFile> files, String sceneCode, Integer type,Long userId) throws Exception{
|
|
|
|
- if (StringUtils.isEmpty(sceneCode) || files == null || files.size() <= 0 || StringUtils.isEmpty(blzType)) {
|
|
|
|
|
|
+ public String uploadFiles(String sendFileName,String bizType,List<MultipartFile> files, String sceneCode, Integer type,Long userId) throws Exception{
|
|
|
|
+ if (StringUtils.isEmpty(sceneCode) || files == null || files.size() <= 0 || StringUtils.isEmpty(bizType)) {
|
|
throw new BusinessException(ErrorCode.MISSING_REQUIRED_PARAMETERS);
|
|
throw new BusinessException(ErrorCode.MISSING_REQUIRED_PARAMETERS);
|
|
}
|
|
}
|
|
List<String> urlList = new ArrayList<>();
|
|
List<String> urlList = new ArrayList<>();
|
|
if(type != null && 1 == type){
|
|
if(type != null && 1 == type){
|
|
- this.updateFileByPreFix(sceneCode,blzType);
|
|
|
|
|
|
+ this.updateFileByPreFix(sceneCode,bizType);
|
|
}
|
|
}
|
|
for (MultipartFile file : files) {
|
|
for (MultipartFile file : files) {
|
|
String fileName = file.getOriginalFilename();
|
|
String fileName = file.getOriginalFilename();
|
|
@@ -103,7 +103,7 @@ public class SceneUploadServiceImpl extends ServiceImpl<ISceneUploadMapper, Scen
|
|
|
|
|
|
FileUtil.delFile(newFile.getPath());
|
|
FileUtil.delFile(newFile.getPath());
|
|
//添加记录
|
|
//添加记录
|
|
- this.saveData(sceneCode,ossPath,blzType,userId);
|
|
|
|
|
|
+ this.saveData(sceneCode,ossPath,bizType,userId);
|
|
}
|
|
}
|
|
StringBuilder returnString = new StringBuilder();
|
|
StringBuilder returnString = new StringBuilder();
|
|
for (String res : urlList) {
|
|
for (String res : urlList) {
|