Browse Source

修改链接地址

ly 5 months ago
parent
commit
495c3d813e

+ 8 - 2
src/main/java/com/liang/controller/StaStatisticalSummaryController.java

@@ -76,8 +76,12 @@ public class StaStatisticalSummaryController extends BaseController {
76
                                      @RequestParam(required = false, defaultValue = "", value = "QS") String qs,
76
                                      @RequestParam(required = false, defaultValue = "", value = "QS") String qs,
77
                                      @RequestParam(required = false, defaultValue = "", value = "WC") String wc
77
                                      @RequestParam(required = false, defaultValue = "", value = "WC") String wc
78
     ) {
78
     ) {
79
+        Map<String, String> map = new HashMap<>();
80
+        map.put("xmmc",xmmc);
81
+        map.put("qs",qs);
82
+        map.put("wc",wc);
79
         PageHelper.startPage(pageNum, pageSize);
83
         PageHelper.startPage(pageNum, pageSize);
80
-        List<HashMap<String, Object>> staFeasibilityreport = staStatisticalSummaryService.projectPay(xmmc, qs, wc);
84
+        List<HashMap<String, Object>> staFeasibilityreport = staStatisticalSummaryService.projectPay(map);
81
         PageInfo<HashMap<String, Object>> pageinfo = new PageInfo<>(staFeasibilityreport);
85
         PageInfo<HashMap<String, Object>> pageinfo = new PageInfo<>(staFeasibilityreport);
82
         List<HashMap<String, Object>> rows = pageinfo.getList();
86
         List<HashMap<String, Object>> rows = pageinfo.getList();
83
         int total = (int) pageinfo.getTotal();
87
         int total = (int) pageinfo.getTotal();
@@ -93,7 +97,9 @@ public class StaStatisticalSummaryController extends BaseController {
93
     @RequestMapping(value = "/getAll",method = RequestMethod.GET)
97
     @RequestMapping(value = "/getAll",method = RequestMethod.GET)
94
     public BaseResult getAll(){
98
     public BaseResult getAll(){
95
 
99
 
96
-        List<HashMap<String, Object>> staFeasibilityreport = staStatisticalSummaryService.projectPay("", "", "");
100
+        Map<String, String> map = new HashMap<>();
101
+
102
+        List<HashMap<String, Object>> staFeasibilityreport = staStatisticalSummaryService.projectPay(map);
97
         return BaseResult.success(staFeasibilityreport);
103
         return BaseResult.success(staFeasibilityreport);
98
     }
104
     }
99
 
105
 

+ 2 - 1
src/main/java/com/liang/dao/StaStatisticalSummaryDao.java

@@ -2,6 +2,7 @@ package com.liang.dao;
2
 
2
 
3
 import java.util.HashMap;
3
 import java.util.HashMap;
4
 import java.util.List;
4
 import java.util.List;
5
+import java.util.Map;
5
 
6
 
6
 /**
7
 /**
7
  * 统计报表汇总表
8
  * 统计报表汇总表
@@ -18,5 +19,5 @@ public interface StaStatisticalSummaryDao {
18
      */
19
      */
19
     List<HashMap<String, Object>> outPaySummary(String XMMC, String QSRQ, String JSRQ);
20
     List<HashMap<String, Object>> outPaySummary(String XMMC, String QSRQ, String JSRQ);
20
 
21
 
21
-    List<HashMap<String, Object>> projectPay(String XMMC, String QS, String WC);
22
+    List<HashMap<String, Object>> projectPay(Map map);
22
 }
23
 }

+ 2 - 1
src/main/java/com/liang/service/StaStatisticalSummaryService.java

@@ -6,6 +6,7 @@ import org.springframework.data.domain.PageRequest;
6
 
6
 
7
 import java.util.HashMap;
7
 import java.util.HashMap;
8
 import java.util.List;
8
 import java.util.List;
9
+import java.util.Map;
9
 
10
 
10
 /**
11
 /**
11
  * 经费预算(StaBudget)表服务接口
12
  * 经费预算(StaBudget)表服务接口
@@ -25,6 +26,6 @@ public interface StaStatisticalSummaryService {
25
      */
26
      */
26
     List<HashMap<String, Object>> outPaySummary(String XMMC, String QSRQ, String JSRQ);
27
     List<HashMap<String, Object>> outPaySummary(String XMMC, String QSRQ, String JSRQ);
27
 
28
 
28
-    List<HashMap<String, Object>> projectPay(String xmmc, String qs, String wc);
29
+    List<HashMap<String, Object>> projectPay(Map map);
29
 
30
 
30
 }
31
 }

+ 3 - 2
src/main/java/com/liang/service/impl/StaStatisticalSummaryServiceImpl.java

@@ -7,6 +7,7 @@ import org.springframework.stereotype.Service;
7
 import javax.annotation.Resource;
7
 import javax.annotation.Resource;
8
 import java.util.HashMap;
8
 import java.util.HashMap;
9
 import java.util.List;
9
 import java.util.List;
10
+import java.util.Map;
10
 
11
 
11
 @Service("staStatisticalSummaryService")
12
 @Service("staStatisticalSummaryService")
12
 public class StaStatisticalSummaryServiceImpl implements StaStatisticalSummaryService {
13
 public class StaStatisticalSummaryServiceImpl implements StaStatisticalSummaryService {
@@ -20,8 +21,8 @@ public class StaStatisticalSummaryServiceImpl implements StaStatisticalSummarySe
20
     }
21
     }
21
 
22
 
22
     @Override
23
     @Override
23
-    public List<HashMap<String, Object>> projectPay(String xmmc, String qs, String wc) {
24
-        return staStatisticalSummaryDao.projectPay(xmmc, qs, wc);
24
+    public List<HashMap<String, Object>> projectPay(Map map) {
25
+        return staStatisticalSummaryDao.projectPay(map);
25
     }
26
     }
26
 
27
 
27
 }
28
 }

+ 1 - 1
src/main/resources/templates/lsuserinfo/list.html

@@ -306,7 +306,7 @@
306
                 });
306
                 });
307
 
307
 
308
             }else if (obj.event === 'download'){
308
             }else if (obj.event === 'download'){
309
-
309
+                window.location.href = 'http://10.208.114.107:8082/202407/Template.xlsx';
310
             }
310
             }
311
         });
311
         });
312
 
312