Browse Source

Merge branch 'master' into dev-lgl

lgl 5 months ago
parent
commit
08009c42b3

+ 2 - 1
src/main/java/com/liang/controller/PrjGwtaskController.java

@@ -104,11 +104,12 @@ public class PrjGwtaskController extends BaseController {
104 104
                            @RequestParam("limit") Integer pageSize,
105 105
                            @RequestParam(required = false, defaultValue = "", value = "sortName") String sortName,
106 106
                            @RequestParam(required = false, defaultValue = "", value = "sortOrder") String sortOrder) {
107
+        SysUserInfo userInfo = getSysUserInfo();
107 108
         PageHelper.startPage(pageNum, pageSize);
108
-
109 109
         Map<String, String> paraMap = new HashMap<>();
110 110
         paraMap.put("sortName", sortName);
111 111
         paraMap.put("sortOrder", sortOrder);
112
+        paraMap.put("scr",userInfo.getName());
112 113
         List<PrjGwtask> list = prjGwtaskService.getGwTaslList(paraMap);
113 114
 
114 115
         PageInfo<PrjGwtask> pageinfo = new PageInfo<>(list);

+ 10 - 2
src/main/java/com/liang/controller/StaMeetingFeeController.java

@@ -181,8 +181,16 @@ public class StaMeetingFeeController extends BaseController {
181 181
     //会议费用全部及条件查询
182 182
     @ResponseBody
183 183
     @RequestMapping(value = "/searchData", method = RequestMethod.POST)
184
-    public BaseResult searchData(@RequestParam(required = false, defaultValue = "", value = "XMMC") String xmmc, @RequestParam(required = false, defaultValue = "", value = "HYDD") String hydd, @RequestParam(required = false, defaultValue = "", value = "QSRQ") String qsrq, @RequestParam(required = false, defaultValue = "", value = "JZRQ") String jzrq) {
185
-        List<HashMap<String, Object>> staFeasibilityreport = staMeetingFeeService.searchMeetingCost(xmmc, hydd, qsrq, jzrq);
184
+    public BaseResult searchData(@RequestParam(required = false, defaultValue = "", value = "XMMC") String xmmc,
185
+                                 @RequestParam(required = false, defaultValue = "", value = "HYDD") String hydd,
186
+                                 @RequestParam(required = false, defaultValue = "", value = "QSRQ") String qsrq,
187
+                                 @RequestParam(required = false, defaultValue = "", value = "JZRQ") String jzrq) {
188
+        Map<String, String> map = new HashMap<>();
189
+        map.put("xmmc",xmmc);
190
+        map.put("hydd",hydd);
191
+        map.put("qsrq",qsrq);
192
+        map.put("jzrq",jzrq);
193
+        List<HashMap<String, Object>> staFeasibilityreport = staMeetingFeeService.searchMeetingCost(map);
186 194
         PageInfo<HashMap<String, Object>> pageinfo = new PageInfo<>(staFeasibilityreport);
187 195
         List<HashMap<String, Object>> rows = pageinfo.getList();
188 196
         int total = (int) pageinfo.getTotal();

+ 14 - 2
src/main/java/com/liang/controller/StaTravelexpensesController.java

@@ -1,5 +1,6 @@
1 1
 package com.liang.controller;
2 2
 
3
+import com.github.pagehelper.PageHelper;
3 4
 import com.github.pagehelper.PageInfo;
4 5
 import com.liang.common.JsonTool;
5 6
 import com.liang.common.base.BaseController;
@@ -184,8 +185,19 @@ public class StaTravelexpensesController extends BaseController {
184 185
     //差旅费用全部及条件查询
185 186
     @ResponseBody
186 187
     @RequestMapping(value = "/searchData", method = RequestMethod.POST)
187
-    public BaseResult searchData(@RequestParam(required = false, defaultValue = "", value = "XMMC") String xmmc, @RequestParam(required = false, defaultValue = "", value = "CCDD") String ccdd, @RequestParam(required = false, defaultValue = "", value = "QSRQ") String qsrq, @RequestParam(required = false, defaultValue = "", value = "JZRQ") String jzrq) {
188
-        List<HashMap<String, Object>> staFeasibilityreport = staTravelexpensesService.searchTravelexpensesCost(xmmc, ccdd, qsrq, jzrq);
188
+    public BaseResult searchData(@RequestParam(required = false, defaultValue = "", value = "XMMC") String xmmc,
189
+                                 @RequestParam(required = false, defaultValue = "", value = "CCDD") String ccdd,
190
+                                 @RequestParam(required = false, defaultValue = "", value = "QSRQ") String qsrq,
191
+                                 @RequestParam(required = false, defaultValue = "", value = "JZRQ") String jzrq,
192
+                                 @RequestParam("page") Integer pageNum,
193
+                                 @RequestParam("limit") Integer pageSize) {
194
+        PageHelper.startPage(pageNum, pageSize);
195
+        Map<String, String> map = new HashMap<>();
196
+        map.put("xmmc",xmmc);
197
+        map.put("ccdd",ccdd);
198
+        map.put("qsrq",qsrq);
199
+        map.put("jzrq",jzrq);
200
+        List<HashMap<String, Object>> staFeasibilityreport = staTravelexpensesService.searchTravelexpensesCost(map);
189 201
         PageInfo<HashMap<String, Object>> pageinfo = new PageInfo<>(staFeasibilityreport);
190 202
         List<HashMap<String, Object>> rows = pageinfo.getList();
191 203
         int total = (int) pageinfo.getTotal();

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

@@ -7,6 +7,7 @@ import org.springframework.data.domain.Pageable;
7 7
 
8 8
 import java.util.HashMap;
9 9
 import java.util.List;
10
+import java.util.Map;
10 11
 
11 12
 /**
12 13
  * 会议费(StaMeetingFee)表数据库访问层
@@ -112,5 +113,5 @@ public interface StaMeetingFeeDao {
112 113
      * @param JZRQ 创建结束日期
113 114
      * @return
114 115
      */
115
-    List<HashMap<String, Object>> searchMeetingCost(String XMMC, String HYDD, String QSRQ, String JZRQ);
116
+    List<HashMap<String, Object>> searchMeetingCost(Map map);
116 117
 }

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

@@ -7,6 +7,7 @@ import org.springframework.data.domain.Pageable;
7 7
 
8 8
 import java.util.HashMap;
9 9
 import java.util.List;
10
+import java.util.Map;
10 11
 
11 12
 /**
12 13
  * 差旅费(StaTravelexpenses)表数据库访问层
@@ -116,7 +117,7 @@ public interface StaTravelexpensesDao {
116 117
      * @param JZRQ 创建结束日期
117 118
      * @return
118 119
      */
119
-    List<HashMap<String, Object>> searchTravelexpensesCost(String XMMC, String CCDD, String QSRQ, String JZRQ);
120
+    List<HashMap<String, Object>> searchTravelexpensesCost(Map map);
120 121
 
121 122
 }
122 123
 

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

@@ -7,6 +7,7 @@ import org.springframework.data.domain.PageRequest;
7 7
 
8 8
 import java.util.HashMap;
9 9
 import java.util.List;
10
+import java.util.Map;
10 11
 
11 12
 /**
12 13
  * 会议费(StaMeetingFee)表服务接口
@@ -95,6 +96,6 @@ public interface StaMeetingFeeService {
95 96
      * @param JZRQ 创建结束日期
96 97
      * @return
97 98
      */
98
-    List<HashMap<String, Object>> searchMeetingCost(String xmmc, String hydd, String QSRQ, String JZRQ);
99
+    List<HashMap<String, Object>> searchMeetingCost(Map map);
99 100
 
100 101
 }

+ 1 - 1
src/main/java/com/liang/service/StaTravelexpensesService.java

@@ -101,6 +101,6 @@ public interface StaTravelexpensesService {
101 101
      * @param jzrq 创建结束日期
102 102
      * @return
103 103
      */
104
-    List<HashMap<String, Object>> searchTravelexpensesCost(String xmmc, String ccdd, String qsrq, String jzrq);
104
+    List<HashMap<String, Object>> searchTravelexpensesCost(Map map);
105 105
 
106 106
 }

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

@@ -11,6 +11,7 @@ import org.springframework.stereotype.Service;
11 11
 import javax.annotation.Resource;
12 12
 import java.util.HashMap;
13 13
 import java.util.List;
14
+import java.util.Map;
14 15
 
15 16
 /**
16 17
  * 会议费(StaMeetingFee)表服务实现类
@@ -103,7 +104,7 @@ public class StaMeetingFeeServiceImpl implements StaMeetingFeeService {
103 104
     }
104 105
 
105 106
     @Override
106
-    public List<HashMap<String, Object>> searchMeetingCost(String xmmc, String hydd, String qsrq, String jzrq) {
107
-        return this.staMeetingFeeDao.searchMeetingCost(xmmc, hydd, qsrq, jzrq);
107
+    public List<HashMap<String, Object>> searchMeetingCost(Map map) {
108
+        return this.staMeetingFeeDao.searchMeetingCost(map);
108 109
     }
109 110
 }

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

@@ -11,6 +11,7 @@ import org.springframework.data.domain.PageRequest;
11 11
 import javax.annotation.Resource;
12 12
 import java.util.HashMap;
13 13
 import java.util.List;
14
+import java.util.Map;
14 15
 
15 16
 /**
16 17
  * 差旅费(StaTravelexpenses)表服务实现类
@@ -106,7 +107,7 @@ public class StaTravelexpensesServiceImpl implements StaTravelexpensesService {
106 107
     }
107 108
 
108 109
     @Override
109
-    public List<HashMap<String, Object>> searchTravelexpensesCost(String xmmc, String ccdd, String qsrq, String jzrq) {
110
-        return this.staTravelexpensesDao.searchTravelexpensesCost(xmmc, ccdd, qsrq, jzrq);
110
+    public List<HashMap<String, Object>> searchTravelexpensesCost(Map map) {
111
+        return this.staTravelexpensesDao.searchTravelexpensesCost(map);
111 112
     }
112 113
 }

+ 3 - 0
src/main/resources/mapper/PrjGwtaskDao.xml

@@ -133,6 +133,9 @@
133 133
     <select id="getGwTaslList" resultMap="PrjGwtaskMap" parameterType="map">
134 134
         select *
135 135
         from prj_GwTask p
136
+        <if test="scr != null and scr != ''">
137
+        where p.SCR = #{scr}
138
+        </if>
136 139
         <choose>
137 140
             <when test="sortName != null and sortName != '' and sortOrder != null and sortOrder != ''">
138 141
                 order by ${sortName} ${sortOrder}

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

@@ -451,7 +451,7 @@
451 451
         left join prj_Budget b on b.XM = p.ID and b.FJ = ''
452 452
         where p.XMMB != 1
453 453
         <if test="userId != null and userId != ''">
454
-            and (p.CJR = #{userId} or #{userId} in (select SHR from prj_ApproveRecord where XMID = p.ID))
454
+           and p.CJR = #{userId}
455 455
         </if>
456 456
         <if test="deptId != null and deptId != ''">
457 457
             and p.SSBM = #{deptId}

+ 1 - 1
src/main/resources/mapper/StaFeasibilityreportDao.xml

@@ -452,7 +452,7 @@
452 452
         left join sta_Budget b on b.XM = r.ID and b.FJ = ''
453 453
         where 1 = 1
454 454
         <if test="userId != null and userId != ''">
455
-            and (r.CJR = #{userId} or #{userId} in (select SHR from prj_ApproveRecord where XMID = r.ID))
455
+            and r.CJR = #{userId}
456 456
         </if>
457 457
         <if test="mc != null and mc != ''">
458 458
             and r.MC like '%'+#{mc}+'%'

+ 1 - 1
src/main/resources/mapper/StaMeetingFeeDao.xml

@@ -179,7 +179,7 @@
179 179
     </select>
180 180
 
181 181
     <!--项目报表(会议费)查询 -->
182
-    <select id="searchMeetingCost" resultType="Map">
182
+    <select id="searchMeetingCost" resultType="hashmap">
183 183
         SELECT sta_MeetingFee.ID,
184 184
         sys_dept_info.dept_name AS BM,
185 185
         prj_AnnualBudgetDetail.FYMC AS FYLBMC,

+ 44 - 16
src/main/resources/mapper/StaTravelexpensesDao.xml

@@ -175,27 +175,55 @@
175 175
                                                                where KYFH like #{kyfh} + '%'
176 176
                                                                order by ID desc </select>
177 177
     <!-- 项目报表(差旅费)查询  -->
178
-    <select id="searchTravelexpensesCost" resultType="Map">
179
-        SELECT sta_Travelexpenses.ID, prj_Project.BM AS XMBH, sys_dept_info.dept_name AS BM, sta_BudgetApproval.XMMC,
180
-        base_ProjectType.XMLXMC, base_Person.XM AS XMFZR, sta_Travelexpenses.CCDD, sta_Travelexpenses.FYSQ,
181
-        sta_Travelexpenses.BZFYHS, sta_Travelexpenses.BZFYBHS, sta_Travelexpenses.KYFH, sta_Travelexpenses.CCSY CASE
182
-        WHEN sta_BudgetApproval.SFBYJ = 0 THEN '否' WHEN sta_BudgetApproval.SFBYJ = 1 THEN '是' ELSE
183
-        CAST(sta_BudgetApproval.SFBYJ AS varchar(11)) END AS SFBYJ, CAST(sta_BudgetApproval.SQSJ AS date) AS SQSJ FROM
184
-        sta_Travelexpenses, sta_BudgetApproval, prj_Project, sys_dept_info, base_ProjectType, base_Person WHERE
185
-        sta_Travelexpenses.ZB = sta_BudgetApproval.ID AND sta_BudgetApproval.XMID = prj_Project.ID AND
186
-        sta_BudgetApproval.SSBM = sys_dept_info.dept_id AND sta_BudgetApproval.XMLX = base_ProjectType.XMLX AND
187
-        sta_BudgetApproval.XMFZR = base_Person.ID
188
-        <if test="XMMC != null and XMMC != ''">AND sta_BudgetApproval.XMMC LIKE '%${XMMC}%'</if>
189
-        <if test="CCDD != null and CCDD != ''">AND sta_Travelexpenses.CCDD LIKE '%${CCDD}%'</if>
190
-        <if test="QSRQ != null and QSRQ != ''">
178
+    <select id="searchTravelexpensesCost" resultType="hashmap">
179
+        SELECT
180
+        sta_Travelexpenses.ID,
181
+        prj_Project.BM AS XMBH,
182
+        sys_dept_info.dept_name AS BM,
183
+        sta_BudgetApproval.XMMC,
184
+        base_ProjectType.XMLXMC,
185
+        base_Person.XM AS XMFZR,
186
+        sta_Travelexpenses.CCDD,
187
+        sta_Travelexpenses.FYSQ,
188
+        sta_Travelexpenses.BZFYHS,
189
+        sta_Travelexpenses.BZFYBHS,
190
+        sta_Travelexpenses.KYFH,
191
+        sta_Travelexpenses.CCSY,
192
+        CASE
193
+
194
+        WHEN sta_BudgetApproval.SFBYJ = 0 THEN '否'
195
+        WHEN sta_BudgetApproval.SFBYJ = 1 THEN '是'
196
+        ELSE CAST (sta_BudgetApproval.SFBYJ AS VARCHAR(11))
197
+        END AS SFBYJ,
198
+        CAST (sta_BudgetApproval.SQSJ AS DATE ) AS SQSJ
199
+        FROM
200
+        sta_Travelexpenses,
201
+        sta_BudgetApproval,
202
+        prj_Project,
203
+        sys_dept_info,
204
+        base_ProjectType,
205
+        base_Person
206
+        WHERE
207
+        sta_Travelexpenses.ZB = sta_BudgetApproval.ID
208
+        AND sta_BudgetApproval.XMID = prj_Project.ID
209
+        AND sta_BudgetApproval.SSBM = sys_dept_info.dept_id
210
+        AND sta_BudgetApproval.XMLX = base_ProjectType.XMLX
211
+        AND sta_BudgetApproval.XMFZR = base_Person.ID
212
+        <if test="xmmc != null and xmmc != ''">
213
+            AND sta_BudgetApproval.XMMC LIKE '%${xmmc}%'
214
+            </if>
215
+        <if test="ccdd != null and ccdd != ''">
216
+            AND sta_Travelexpenses.CCDD LIKE '%${ccdd}%'
217
+            </if>
218
+        <if test="qsrq != null and qsrq != ''">
191 219
             AND sta_BudgetApproval.SQSJ
192 220
             <![CDATA[ >= ]]>
193
-            #{QSRQ}
221
+            #{qsrq}
194 222
         </if>
195
-        <if test="JZRQ != null and JZRQ != ''">
223
+        <if test="jzrq != null and jzrq != ''">
196 224
             AND sta_BudgetApproval.SQSJ
197 225
             <![CDATA[ <= ]]>
198
-            #{JZRQ}
226
+            #{jzrq}
199 227
         </if>
200 228
     </select>
201 229
 </mapper>

+ 5 - 19
src/main/resources/templates/statistical/meetingFee.html

@@ -36,25 +36,7 @@
36 36
                                 <input type="text" id="erpbh" name="erpbh" class="layui-input" autocomplete="off"/>
37 37
                             </div>
38 38
                         </div>
39
-                        <div class="layui-inline">
40
-                            <label class="layui-form-label" style="width: 80px; margin-left: -10px">费用申请号</label>
41
-                            <div class="layui-input-inline" style="width: 150px">
42
-                                <input type="text" id="bh" name="bh" class="layui-input" autocomplete="off"/>
43
-                            </div>
44
-                        </div>
45 39
 
46
-                        <div class="layui-inline">
47
-                            <label class="layui-form-label" style="width: 60px; margin-left: -10px">年度</label>
48
-                            <div class="layui-input-inline" style="width: 150px">
49
-                                <input type="text" id="nf" name="nf" class="layui-input" autocomplete="off"/>
50
-                            </div>
51
-                        </div>
52
-                        <div class="layui-inline">
53
-                            <label class="layui-form-label" style="width: 60px; margin-left: -10px">审批状态</label>
54
-                            <div class="layui-input-inline" style="width: 150px">
55
-                                <input type="text" id="spzt" name="spzt" class="layui-input" autocomplete="off"/>
56
-                            </div>
57
-                        </div>
58 40
                         <div class="layui-inline">
59 41
                             <label class="layui-form-label" style="width: 60px; margin-left: -10px">会议地点</label>
60 42
                             <div class="layui-input-inline" style="width: 150px">
@@ -114,6 +96,10 @@
114 96
                 <i class="layui-icon layui-icon-delete" style="font-size: 10px;"></i>删除
115 97
             </a>
116 98
         </script>
99
+
100
+        <script type="text/html" id=" ">
101
+
102
+        </script>
117 103
     </div>
118 104
 </div>
119 105
 <script th:src="@{/lib/jquery-3.4.1/jquery-3.4.1.min.js}" charset="utf-8"></script>
@@ -169,7 +155,7 @@
169 155
                     {field: 'BZ',width: '5%',title:'备注'},
170 156
                     {field: 'KYFH', width: '15%', title: '科研费号'},
171 157
                     {field: 'SQSJ', width: '10%', title: '申请时间'},
172
-                    {field: '', width: '10%', title: '项目责任人'},
158
+                    {field: 'XMFZR', width: '10%', title: '项目责任人'},
173 159
                     {field: 'ID', width: '0', title: 'id', hide: true}
174 160
 
175 161