Ver código fonte

资料费,知识产权费,印刷费双击浏览查看页面空值问题处理。 资料费名称检索电源下所有室合并

梁世豪 5 meses atrás
pai
commit
692187b7b4

+ 1 - 0
src/main/java/com/liang/controller/PrjApproverecordController.java

@@ -838,6 +838,7 @@ public class PrjApproverecordController extends BaseController {
838 838
      */
839 839
     @ResponseBody
840 840
     @RequestMapping(value = "/doUpdateApproveFysq", method = RequestMethod.POST)
841
+    @Transactional
841 842
     public BaseResult doUpdateApproveFysq(PrjApproverecord approverecord) {
842 843
 
843 844
 

+ 1 - 0
src/main/java/com/liang/controller/StaBudgetapprovalController.java

@@ -496,6 +496,7 @@ public class StaBudgetapprovalController extends BaseController {
496 496
 
497 497
     @ResponseBody
498 498
     @RequestMapping(value = "/bathUpdate/{xmid}/{sqje}", method = RequestMethod.GET)
499
+    @Transactional
499 500
     public Map<Object, Object> bathUpdate(@PathVariable Integer xmid, @PathVariable Double sqje, @RequestParam String spzt) {
500 501
         Map<Object, Object> res = new HashMap<>();
501 502
         //系统当前用户

+ 11 - 1
src/main/resources/mapper/StaSourceFeeDao.xml

@@ -293,7 +293,17 @@
293 293
                 INNER JOIN
294 294
             sys_dept_info ON sta_BudgetApproval.SSBM = sys_dept_info.dept_id
295 295
         where
296
-            sys_dept_info.dept_name = #{deptName}
296
+        1=1
297
+        <if test="deptName != null and deptName != ''">
298
+            and (
299
+            <if test="deptName.contains('电源')">
300
+                sys_dept_info.dept_name in (SELECT dept_name FROM sys_dept_info WHERE dept_name LIKE '%电源%')
301
+            </if>
302
+            <if test="!deptName.contains('电源')">
303
+                sys_dept_info.dept_name = #{deptName}
304
+            </if>
305
+            )
306
+        </if>
297 307
     </select>
298 308
 
299 309
 </mapper>

+ 9 - 0
src/main/resources/templates/stabudgetapproval/view_apply.html

@@ -1457,6 +1457,9 @@
1457 1457
     function getTravelExpense() {
1458 1458
         return travelExpense;
1459 1459
     }
1460
+    function getIntellectual() {
1461
+        return intellectual;
1462
+    }
1460 1463
 
1461 1464
     function getMember() {
1462 1465
         return tempMember;
@@ -1465,6 +1468,12 @@
1465 1468
     function getDevExpense() {
1466 1469
         return devExpense;
1467 1470
     }
1471
+    function getInformation() {
1472
+        return information;
1473
+    }
1474
+    function getPrintln() {
1475
+        return println;
1476
+    }
1468 1477
 
1469 1478
     function getSoftExpense() {
1470 1479
         return softExpense;