Browse Source

Merge remote-tracking branch 'origin/master'

lgl 1 year ago
parent
commit
122bb0bada

+ 3 - 1
src/main/java/com/liang/controller/PrjProjectController.java

@@ -2229,9 +2229,10 @@ public class PrjProjectController extends BaseController {
2229 2229
     }
2230 2230
 
2231 2231
     @ResponseBody
2232
-    @RequestMapping(value = "/byjlist", method = RequestMethod.POST)
2232
+    @RequestMapping(value = "/byjlist/{nf}", method = RequestMethod.POST)
2233 2233
     public BaseResult byjlist(@RequestParam("page") Integer pageNum,
2234 2234
                               @RequestParam("limit") Integer pageSize,
2235
+                              @PathVariable("nf") String nf,
2235 2236
                               @RequestParam(required = false, defaultValue = "", value = "zwmc") String zwmc,
2236 2237
                               @RequestParam(required = false, defaultValue = "", value = "erpbh") String erpbh,
2237 2238
                               @RequestParam(required = false, defaultValue = "", value = "xmlx") String xmlx,
@@ -2245,6 +2246,7 @@ public class PrjProjectController extends BaseController {
2245 2246
         paraMap.put("zwmc", zwmc);
2246 2247
         paraMap.put("erpbh", erpbh);
2247 2248
         paraMap.put("xmlx", xmlx);
2249
+        paraMap.put("nf",nf);
2248 2250
 
2249 2251
         List<PrjProject> list = prjProjectService.getByjProjectList(paraMap);
2250 2252
 

+ 3 - 2
src/main/java/com/liang/controller/StaBudgetapprovalController.java

@@ -1168,12 +1168,13 @@ public class StaBudgetapprovalController extends BaseController {
1168 1168
         return BaseResult.success(result);
1169 1169
     }
1170 1170
 
1171
-    @RequestMapping(value = "/init_project", method = RequestMethod.GET)
1172
-    public String init_project(Model model) {
1171
+    @RequestMapping(value = "/init_project/{nf}", method = RequestMethod.GET)
1172
+    public String init_project(Model model,@PathVariable String nf) {
1173 1173
         //项目类型
1174 1174
         List<Map<String, String>> xmlxList = projecttypeService.getXMLX();
1175 1175
         model.addAttribute("xmlxList", xmlxList);
1176 1176
 
1177
+        model.addAttribute("nf",nf);
1177 1178
         return "stabudgetapproval/list_project";
1178 1179
     }
1179 1180
 

+ 11 - 0
src/main/java/com/liang/entity/PrjProject.java

@@ -169,7 +169,18 @@ public class PrjProject implements Serializable {
169 169
      * @return
170 170
      */
171 171
     private double ysje;
172
+    /**
173
+     * 年份
174
+     */
175
+    private String nf;
172 176
 
177
+    public String getNf() {
178
+        return nf;
179
+    }
180
+
181
+    public void setNf(String nf) {
182
+        this.nf = nf;
183
+    }
173 184
 
174 185
     public Integer getId() {
175 186
         return id;

+ 5 - 1
src/main/resources/mapper/PrjProjectDao.xml

@@ -38,6 +38,7 @@
38 38
         <result property="fyly" column="FYLY" jdbcType="VARCHAR"/>
39 39
         <result property="dkyfzr" column="DKYFZR" jdbcType="VARCHAR"/>
40 40
         <result property="fj2" column="FJ2" jdbcType="VARCHAR"/>
41
+        <result property="nf" column="NF" jdbcType="VARCHAR"/>
41 42
     </resultMap>
42 43
 
43 44
     <resultMap type="com.liang.entity.FeeManagemant" id="FeeManagementMap">
@@ -618,7 +619,7 @@
618 619
 
619 620
     <!--年度预算项目列表-->
620 621
     <select id="getByjProjectList" resultMap="PrjProjectMap" parameterType="map">
621
-        select DISTINCT p.ID, p.ZWMC, p.QS, p.WC, p.ERPBH, p.XMLX, t.XMLXMC, p.SSBM, d.dept_name as SSBMMC,
622
+        select DISTINCT p.ID, p.ZWMC, p.QS, p.WC, p.ERPBH, p.XMLX, t.XMLXMC, p.SSBM, d.dept_name as SSBMMC,b.NF,
622 623
         (select TOP 1 RY from prj_Member where XM = p.ID and XMJS = 1) as XMFZR,
623 624
         (select TOP 1 RYXM from prj_Member where XM = p.ID and XMJS = 1) as XMFZRXM,
624 625
         (SELECT STUFF((SELECT ','+XM from (select xm from base_Person
@@ -635,6 +636,9 @@
635 636
         where p.XMMB != 1
636 637
         and p.SPZT = '审批结束'
637 638
         and CONCAT(p.ID, f.NF) in (select CONCAT(RWS, NF) from prj_AnnualBudget)
639
+        <if test="nf != null and nf !=''">
640
+            and b.nf = #{nf}
641
+        </if>
638 642
         <if test="zwmc != null and zwmc != ''">
639 643
             and p.ZWMC like '%'+#{zwmc}+'%'
640 644
         </if>

+ 1 - 1
src/main/resources/templates/stabudgetapproval/connect_project.html

@@ -354,7 +354,7 @@
354 354
                     shade: 0.3,
355 355
                     maxmin: true,
356 356
                     area: ['1200px', '750px'],
357
-                    content: AjaxUtil.ctx + 'staBudgetapproval/init_project',
357
+                    content: AjaxUtil.ctx + 'staBudgetapproval/init_project/' + $("#nf").val(),
358 358
                     end: function (obj) {
359 359
                         xmId = parseInt(localStorage.getItem("rws"));
360 360
                         var updateflag = localStorage.getItem("updateflag");

+ 2 - 1
src/main/resources/templates/stabudgetapproval/list_project.html

@@ -75,7 +75,7 @@
75 75
 
76 76
         var currTable = table.render({
77 77
             elem: '#currentTableId',
78
-            url: AjaxUtil.ctx + 'prjProject/byjlist',
78
+            url: AjaxUtil.ctx + 'prjProject/byjlist/'+[[${nf}]],
79 79
             method: 'post',
80 80
             // toolbar: '#toolbarDemo',
81 81
             // defaultToolbar: ['filter', 'exports', 'print'],
@@ -85,6 +85,7 @@
85 85
                     {field: 'zwmc', width: '35%', title: '中文名称'},
86 86
                     {field: 'erpbh', width: '15%', title: 'ERP编号'},
87 87
                     {field: 'xmlxmc', width: '18%', title: '项目类型'},
88
+                    {field: 'nf', width: '10%', title: '年份', align: 'center'},
88 89
                     {field: 'qs', width: '10%', title: '起始', align: 'center'},
89 90
                     {field: 'wc', width: '10%', title: '完成', align: 'center'}
90 91
                 ]