yucheng vor 3 Jahren
Ursprung
Commit
c22045f2b8

+ 2 - 0
dmp-cloud/dmp-file/src/main/java/com/persagy/dmp/file/controller/FileController.java

@@ -2,6 +2,7 @@ package com.persagy.dmp.file.controller;
 
 import cn.hutool.core.util.StrUtil;
 import com.persagy.dmp.common.constant.ResponseCode;
+import com.persagy.dmp.common.constant.ValidEnum;
 import com.persagy.dmp.common.exception.BusinessException;
 import com.persagy.dmp.common.lang.PsDateTime;
 import com.persagy.dmp.common.model.response.CommonResult;
@@ -36,6 +37,7 @@ public class FileController {
             throw new BusinessException(ResponseCode.A0400.getCode(), ResponseCode.A0400.getDesc());
         }
         fileInfo.setCreationTime(new PsDateTime());
+        fileInfo.setValid(ValidEnum.TRUE.getType());
         fileInfo = fileService.insertFile(fileInfo);
         return ResultHelper.single(fileInfo);
     }