فهرست منبع

统一文件业务类型字段名

dengsixing 3 سال پیش
والد
کامیت
5caef900ad

+ 1 - 1
4dkankan-center-scene/src/main/java/com/fdkankan/scene/controller/SceneUploadController.java

@@ -24,7 +24,7 @@ public class SceneUploadController extends BaseController {
      * bizType  业务类型
      * files     文件
      * num 场景码
-     * type     0添加,1替换
+     * type 操作类型 0添加,1替换
      */
     @RequestMapping(value = "/files", method = RequestMethod.POST)
     public String uploads(@RequestParam(value = "base64",required = false) String base64,

+ 1 - 1
4dkankan-center-scene/src/main/java/com/fdkankan/scene/service/impl/SceneEditInfoServiceImpl.java

@@ -209,7 +209,7 @@ public class SceneEditInfoServiceImpl extends ServiceImpl<ISceneEditInfoMapper,
 
     @Override
     public ResultData saveUpload(SaveUploadParamVO param) throws Exception {
-        FileBizType fileBizType = FileBizType.get(param.getType());
+        FileBizType fileBizType = FileBizType.get(param.getBizType());
         if(Objects.isNull(fileBizType)){
             throw new BusinessException(ErrorCode.FAILURE_CODE_7003);
         }

+ 4 - 4
4dkankan-center-scene/src/main/java/com/fdkankan/scene/service/impl/SceneUploadServiceImpl.java

@@ -73,13 +73,13 @@ public class SceneUploadServiceImpl extends ServiceImpl<ISceneUploadMapper, Scen
         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);
         }
         List<String> urlList = new ArrayList<>();
         if(type != null && 1 == type){
-            this.updateFileByPreFix(sceneCode,blzType);
+            this.updateFileByPreFix(sceneCode,bizType);
         }
         for (MultipartFile file : files) {
             String fileName = file.getOriginalFilename();
@@ -103,7 +103,7 @@ public class SceneUploadServiceImpl extends ServiceImpl<ISceneUploadMapper, Scen
 
             FileUtil.delFile(newFile.getPath());
             //添加记录
-            this.saveData(sceneCode,ossPath,blzType,userId);
+            this.saveData(sceneCode,ossPath,bizType,userId);
         }
         StringBuilder returnString = new StringBuilder();
         for (String res : urlList) {

+ 1 - 1
4dkankan-center-scene/src/main/java/com/fdkankan/scene/vo/SaveUploadParamVO.java

@@ -27,7 +27,7 @@ public class SaveUploadParamVO {
     private String num;
 
     @NotBlank(message = "文件业务类型不能为空")
-    private String type;
+    private String bizType;
 
 //    private List<String> filePathList;
 

+ 1 - 1
4dkankan-center-scene/src/main/resources/bootstrap.yml

@@ -54,7 +54,7 @@ spring:
 #        dir: ./logs # 默认值${home}/logs/csp/
 #        switch-pid: true # 日志带上线程id
 
-#开启feign熔断降级
+#开启feign熔断降级,如果没有开启,feign调用链路不会显示再sentinel控制中
 #feign:
 #  sentinel:
 #    enabled: true