lwhhszx il y a 2 ans
Parent
commit
0570c5d27d

+ 1 - 0
src/main/java/com/example/fms/common/model/dto/DownloadSysFileDTO.java

@@ -16,6 +16,7 @@ public class DownloadSysFileDTO {
      */
     private String filePath;
 
+    private Integer pType;
     /**
      * 文件名称
      */

+ 2 - 2
src/main/java/com/example/fms/service/FileFactoryService.java

@@ -84,11 +84,11 @@ public class FileFactoryService {
      * @throws Exception
      */
     public byte[] download(DownloadSysFileDTO downloadSysFileDTO) throws Exception {
-        Integer sourceId = downloadSysFileDTO.getSourceId();
+        Integer id = downloadSysFileDTO.getPType();
         //调用解析配置方法,获取配置信息
         List<ConfigSettingVO> configSettingVOS = ExcuteConfigUtils.excuteConfigVO();
         //根据传入sourceId判断从哪里下载数据
-        ConfigSettingVO configSettingVO = configSettingVOS.stream().filter(item -> item.getSourceId().equals(sourceId)).findFirst().orElse(null);
+        ConfigSettingVO configSettingVO = configSettingVOS.stream().filter(item -> item.getId().equals(id)).findFirst().orElse(null);
         if (configSettingVO == null) {
             throw new XiaoShiException("解析错误");
         }

+ 2 - 2
src/main/resources/application.yml

@@ -1,7 +1,7 @@
 server:
   servlet:
     context-path: /
-  port: 8111
+  port: 8801
 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: prodNetIn
   jackson:
     default-property-inclusion: non_null
     serialization: