Przeglądaj źródła

获得专利附图的guid

lwhhszx 1 rok temu
rodzic
commit
3476329378

+ 3 - 0
src/main/java/com/example/fms/service/File2OssService.java

@@ -84,7 +84,10 @@ public class File2OssService implements IFileFactory {
     public byte[] downloadFile(DownloadSysFileDTO downloadSysFileDTO, ConfigSettingVO configSettingVO) {
         String filePath = downloadSysFileDTO.getFilePath();
         try {
+            Long startTime =System.currentTimeMillis();
             byte[] fileData = OssService.download(filePath, configSettingVO);
+            Long endTime =System.currentTimeMillis();
+            System.out.println("下载文件执行时间"+(endTime-startTime));
             return fileData;
         } catch (Exception e) {
             throw new XiaoShiException("下载错误");

+ 1 - 1
src/main/java/com/example/fms/service/FileMangerService.java

@@ -69,7 +69,7 @@ public class FileMangerService {
 
     public String replaceFile(MultipartFile file, String fileGuid, Integer sourceId) {
         List<String> deleteFileGuids = new ArrayList<>();
-        Integer type = 1;
+        Integer type = 2;
         deleteFileGuids.add(fileGuid);
         this.deleteFile(deleteFileGuids, type);
         //1.调用解析配置方法,获取配置信息

+ 1 - 1
src/main/resources/application-prodNetIn.yml

@@ -29,7 +29,7 @@ spring:
         max-wait: -1ms
     timeout: 2000ms
   datasource:
-    url: jdbc:mysql://172.27.247.174:3306/PCS_PROD?autoReconnect=true&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=CONVERT_TO_NULL&useSSL=false&serverTimezone=GMT%2B8
+    url: jdbc:mysql://172.27.247.174:3306/ecs?autoReconnect=true&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=CONVERT_TO_NULL&useSSL=false&serverTimezone=GMT%2B8
     username: root
     password: TU5x6IeBi7rl
     driver-class-name: com.mysql.cj.jdbc.Driver

+ 1 - 1
src/main/resources/application-prodNetOut.yml

@@ -29,7 +29,7 @@ spring:
         max-wait: -1ms
     timeout: 2000ms
   datasource:
-    url: jdbc:mysql://47.101.137.223:3306/PCS_PROD?autoReconnect=true&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=CONVERT_TO_NULL&useSSL=false&serverTimezone=GMT%2B8
+    url: jdbc:mysql://47.101.137.223:3306/ecs?autoReconnect=true&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=CONVERT_TO_NULL&useSSL=false&serverTimezone=GMT%2B8
     username: root
     password: TU5x6IeBi7rl
     driver-class-name: com.mysql.cj.jdbc.Driver

+ 1 - 1
src/main/resources/application-testNetOut.yml

@@ -29,7 +29,7 @@ spring:
         max-wait: -1ms
     timeout: 2000ms
   datasource:
-    url: jdbc:mysql://47.101.137.223:3306/PCS_TEST?autoReconnect=true&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=CONVERT_TO_NULL&useSSL=false&serverTimezone=GMT%2B8
+    url: jdbc:mysql://47.101.137.223:3306/ecs?autoReconnect=true&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=CONVERT_TO_NULL&useSSL=false&serverTimezone=GMT%2B8
     username: root
     password: TU5x6IeBi7rl
     driver-class-name: com.mysql.cj.jdbc.Driver

+ 5 - 4
src/main/resources/application.yml

@@ -1,7 +1,7 @@
 server:
   servlet:
     context-path: /
-  port: 8801
+  port: 8802
 sa-token:
   activity-timeout: 18000
   token-name: token
@@ -23,7 +23,7 @@ spring:
       max-file-size: 1000MB
       max-request-size: 1000MB
   profiles:
-    active: dev
+    active:
   jackson:
     default-property-inclusion: non_null
     serialization:
@@ -35,9 +35,10 @@ mybatis-plus:
   typeAliasesPackage: cn.cslg.permission.entity
   global-config:
     db-config:
+      logic-delete-field: isDelete
       id-type: AUTO
-      logic-delete-value: 0
-      logic-not-delete-value: 1
+      logic-delete-value: 1
+      logic-not-delete-value: 0
   configuration:
     #log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
     map-underscore-to-camel-case: true

+ 1 - 1
src/main/resources/configSetting.json

@@ -41,7 +41,7 @@
     "endPoint": "https://oss-cn-shanghai-internal.aliyuncs.com",
     "accessKeyId": "LTAI5tGyG1Q7fKprgg1nWhXj",
     "accessKeySecret": "Y6Erboh5lEFiRPR4XK8oCPMvUzYGLN",
-    "bucketName": "xiaoshi-ecs",
+    "bucketName": "xiaoshi-ecs-sys",
     "filePath": "project/ecs/prod/file"
   }
 ]