Administrator 3 years ago
parent
commit
cee2aa87d3

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

@@ -9,8 +9,8 @@ leisp:
   # 实例演示开关
   demoEnabled: false
   # 文件路径 示例( Windows配置D:/leisp/uploadPath,Linux配置 /home/leisp/uploadPath)
-#  profile: /home/leisp/uploadPath
-  profile: D:/leisp/uploadPath
+  profile: /home/leisp/uploadPath
+#  profile: D:/leisp/uploadPath
   #profile : f:/
   # 获取ip地址开关
   addressEnabled: false

+ 1 - 1
mybusiness/src/main/java/com/business/slfh/tools/controller/BDowdloadController.java

@@ -22,7 +22,7 @@ public class BDowdloadController {
     @RequestMapping(value = "/download", method = RequestMethod.GET)
     public ResponseEntity<byte[]> download(HttpServletRequest request,String resource) throws Exception {
         // 下载文件路径
-        String filename = Global.getProfile()+resource;
+        String filename = Global.getProfile()+"/"+resource;
         File file = new File(filename);
         HttpHeaders headers = new HttpHeaders();
         // 下载显示的文件名,解决中文名称乱码问�?

+ 1 - 0
mybusiness/src/main/resources/mapper/grid/app/AppEventMapper.xml

@@ -94,6 +94,7 @@
         ${params.dataScope}
         order by
         s.event_status asc,s.create_time desc
+        limit 50
     </select>