Browse Source

年度预算调整

ly 4 months ago
parent
commit
33cbe163f7

+ 7 - 1
src/main/resources/mapper/PrjAnnualbudgetDao.xml

@@ -387,7 +387,13 @@
387 387
         0.00
388 388
         ) AS BZZE,
389 389
         COALESCE (-- 在子查询里先对BZJE列的NULL值替换为0,再进行关联、筛选、分组求和
390
-        ( SELECT SUM ( sb.SQJE ) FROM sta_BudgetApproval sb WHERE sb.NYS = a.ID AND sb.SPZT != '作废' ),
390
+        ( SELECT SUM(
391
+            CASE
392
+         WHEN sb.SFBZ = 0 THEN sb.SQJE
393
+         WHEN sb.SFBZ = 1 THEN sb.BZJE
394
+         END
395
+            )
396
+          FROM sta_BudgetApproval sb WHERE sb.NYS = a.ID AND sb.SPZT != '作废' ),
391 397
         0.00
392 398
         ) AS SQJE,
393 399
          COALESCE (

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

@@ -264,7 +264,7 @@
264 264
                     {field: 'czje', width: '7%', title: '年预算(元)',align: 'right'},
265 265
                     {field: 'sqje', width: '7%', title: '已申请(元)',align: 'right'},
266 266
                     {field: 'bzze', width: '7%', title: '已报账(元)',align: 'right'},
267
-                    {field: 'yfze', width: '7%', title: '已付总额(元)', align: 'right'},
267
+                    /*{field: 'yfze', width: '7%', title: '已付总额(元)', align: 'right'},*/
268 268
                     {templet: function (row) {
269 269
                             const czjeValue = Number(row.czje); // 将获取到的值转换为数值类型
270 270
                             const bzzeValue = Number(row.sqje);

+ 2 - 2
src/main/resources/templates/annualbudget/mylist.html

@@ -1,4 +1,4 @@
1
-<!DOCTYPE html>
1
+    <!DOCTYPE html>
2 2
 <html lang="en" xmlns:th="http://www.thymeleaf.org">
3 3
 <head>
4 4
     <meta charset="UTF-8">
@@ -179,7 +179,7 @@
179 179
                     {field: 'czje', width: '7%',title: '年预算(元)',align: 'right'},
180 180
                     {field: 'sqje', width: '7%',title: '已申请(元)',align: 'right'},
181 181
                     {field: 'bzze', width: '7%',title: '已报账(元)',align: 'right'},
182
-                    {field: 'yfze', width: '7%', title: '已付总额(元)', align: 'right'},
182
+                    /*{field: 'yfze', width: '7%', title: '已付总额(元)', align: 'right'},*/
183 183
                     {templet: function (row) {
184 184
                             const czjeValue = Number(row.czje); // 将获取到的值转换为数值类型
185 185
                             const bzzeValue = Number(row.bzze);

+ 2 - 2
src/main/resources/templates/home/welcome-1.html

@@ -364,13 +364,13 @@
364 364
                 [
365 365
                     {type: "radio", fixed: 'left',title: '😊'},
366 366
                     {type: 'numbers', align: 'center',title: '序号'},
367
-                    {field: 'spzt', width: '18%', title: '审批状态'},
367
+                    {field: 'spzt', width: '15%', title: '审批状态'},
368 368
                     {field: 'xmlxmc', width: '10%', title: '类型'},
369 369
                     {field: 'xm', width: '35%', title: '项目/申请'},
370 370
                     {field: 'erpbh',width: '10%',title: 'ERP编号'},
371 371
                     // {field: 'zt', width: '12%',title: '状态', sort: true},
372 372
                     {field: 'tjrxm', width: '8%', title: '提交人', align: 'center'},
373
-                    {field: 'tjsj', width: '20%', title: '提交时间', align: 'center'}
373
+                    {field: 'tjsj', width: '20%', title: '提交时间', align: 'center'},
374 374
                 ]
375 375
             ],
376 376
             sortName: 'xm',