Althars123 4 years ago
parent
commit
dab8fb9267

+ 2 - 0
zzjs-admin/src/main/java/com/miaxis/system/controller/common/CommonController.java

@@ -75,6 +75,7 @@ public class CommonController
     @PostMapping(Constants.OPEN_PREFIX+"/common/file")
     @ApiOperation("通用上传请求")
     public Response<FileInfo> updateload(MultipartFile file,
+                                         @ApiParam(name = "remark", value = "备注,非必传") @RequestParam("remark") String remark,
                                          @ApiParam(name = "fileType", value = "业务类型:98-音视频文件、1-商户logo、99-其他")
         @RequestParam("fileType") Integer fileType) throws IOException {
         FileUploadTypeEnum fileUploadTypeEnum = getPathByType(fileType);
@@ -116,6 +117,7 @@ public class CommonController
         fileInfo.setFileType(fileUploadTypeEnum.getFileType());
         fileInfo.setFilePath(key+storagefileName);
         fileInfo.setFileUrl(fileUrl);
+        fileInfo.setRemark(remark);
         fileInfoService.save(fileInfo);
         return Response.success(fileInfo);
     }

+ 5 - 1
zzjs-service/src/main/java/com/miaxis/file/domain/FileInfo.java

@@ -39,7 +39,11 @@ public class FileInfo extends BaseBusinessEntity{
     @ApiModelProperty(value = "文件业务类型")
     private String fileType;
 
-
+    /** 备注 */
+    @Excel(name = "备注")
+    @TableField("remark")
+    @ApiModelProperty(value = "备注")
+    private String remark;
 
     /** 文件url(访问地址) */
     @Excel(name = "文件url(访问地址)")