Yansen 2 years ago
parent
commit
e41cbfc759

db/.back_文明创办/文明创办-backup-2023323142334.pdma.json → db/.back_文明创办/文明创办-backup-2023330100554.pdma.json View File

4
   "avatar": "",
4
   "avatar": "",
5
   "version": "4.1.4",
5
   "version": "4.1.4",
6
   "createdTime": "2022-12-12 09:36:12",
6
   "createdTime": "2022-12-12 09:36:12",
7
-  "updatedTime": "2023-3-13 11:26:57",
7
+  "updatedTime": "2023-3-27 19:12:07",
8
   "dbConns": [],
8
   "dbConns": [],
9
   "profile": {
9
   "profile": {
10
     "default": {
10
     "default": {
493
         "refKey": "extProps",
493
         "refKey": "extProps",
494
         "hideInGraph": true
494
         "hideInGraph": true
495
       }
495
       }
496
-    ]
496
+    ],
497
+    "modelType": "modalGroup"
497
   },
498
   },
498
   "entities": [
499
   "entities": [
499
     {
500
     {
3911
           "refDict": "",
3912
           "refDict": "",
3912
           "uiHint": "",
3913
           "uiHint": "",
3913
           "id": "7FF626A4-AF1C-4CF5-B356-D46DB6D534B3"
3914
           "id": "7FF626A4-AF1C-4CF5-B356-D46DB6D534B3"
3915
+        },
3916
+        {
3917
+          "defKey": "copy_from",
3918
+          "defName": "复制来源",
3919
+          "comment": "",
3920
+          "type": "",
3921
+          "len": "",
3922
+          "scale": "",
3923
+          "primaryKey": false,
3924
+          "notNull": false,
3925
+          "autoIncrement": false,
3926
+          "defaultValue": "",
3927
+          "hideInGraph": false,
3928
+          "refDict": "",
3929
+          "extProps": {},
3930
+          "domain": "16120F75-6AA7-4483-868D-F07F511BB081",
3931
+          "id": "1F85BFC4-DBF4-4BA5-9BD8-DC9C2BFA1646"
3914
         }
3932
         }
3915
       ],
3933
       ],
3916
       "correlations": [],
3934
       "correlations": [],
4968
           "refDict": "",
4986
           "refDict": "",
4969
           "uiHint": "",
4987
           "uiHint": "",
4970
           "id": "1E651F5A-E5FA-4AB5-A67E-C2EF184FFD36"
4988
           "id": "1E651F5A-E5FA-4AB5-A67E-C2EF184FFD36"
4989
+        },
4990
+        {
4991
+          "defKey": "copy_from",
4992
+          "defName": "拷贝来源",
4993
+          "comment": "",
4994
+          "type": "",
4995
+          "len": "",
4996
+          "scale": "",
4997
+          "primaryKey": false,
4998
+          "notNull": false,
4999
+          "autoIncrement": false,
5000
+          "defaultValue": "",
5001
+          "hideInGraph": false,
5002
+          "refDict": "",
5003
+          "extProps": {},
5004
+          "domain": "16120F75-6AA7-4483-868D-F07F511BB081",
5005
+          "id": "FF90BF79-2A75-4638-98AE-B17BFD53F8CA"
4971
         }
5006
         }
4972
       ],
5007
       ],
4973
       "correlations": [],
5008
       "correlations": [],
5454
           "refDict": "",
5489
           "refDict": "",
5455
           "uiHint": "",
5490
           "uiHint": "",
5456
           "id": "4D9B5070-3252-4714-86D7-34928A0C5552"
5491
           "id": "4D9B5070-3252-4714-86D7-34928A0C5552"
5492
+        },
5493
+        {
5494
+          "defKey": "copy_from",
5495
+          "defName": "拷贝来源",
5496
+          "comment": "",
5497
+          "type": "",
5498
+          "len": "",
5499
+          "scale": "",
5500
+          "primaryKey": false,
5501
+          "notNull": false,
5502
+          "autoIncrement": false,
5503
+          "defaultValue": "",
5504
+          "hideInGraph": false,
5505
+          "domain": "16120F75-6AA7-4483-868D-F07F511BB081",
5506
+          "refDict": "",
5507
+          "extProps": {},
5508
+          "id": "0279B08D-E12C-4409-8253-A5D7766A7133"
5457
         }
5509
         }
5458
       ],
5510
       ],
5459
       "correlations": [],
5511
       "correlations": [],
6443
           "extProps": {},
6495
           "extProps": {},
6444
           "domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E",
6496
           "domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E",
6445
           "id": "A8365D64-DE0A-4F0E-9427-83DFF0ED66C6"
6497
           "id": "A8365D64-DE0A-4F0E-9427-83DFF0ED66C6"
6498
+        },
6499
+        {
6500
+          "defKey": "copy_from",
6501
+          "defName": "拷贝来源",
6502
+          "comment": "",
6503
+          "type": "",
6504
+          "len": "",
6505
+          "scale": "",
6506
+          "primaryKey": false,
6507
+          "notNull": false,
6508
+          "autoIncrement": false,
6509
+          "defaultValue": "",
6510
+          "hideInGraph": false,
6511
+          "domain": "16120F75-6AA7-4483-868D-F07F511BB081",
6512
+          "refDict": "",
6513
+          "extProps": {},
6514
+          "id": "E2BA367C-D262-43FB-A729-D26D6453D20C"
6446
         }
6515
         }
6447
       ],
6516
       ],
6448
       "correlations": [],
6517
       "correlations": [],
7668
           "refDict": "",
7737
           "refDict": "",
7669
           "extProps": {},
7738
           "extProps": {},
7670
           "id": "90218D19-7731-4AFE-8883-74944A66D6C8"
7739
           "id": "90218D19-7731-4AFE-8883-74944A66D6C8"
7740
+        },
7741
+        {
7742
+          "defKey": "copy_from",
7743
+          "defName": "拷贝来源",
7744
+          "comment": "",
7745
+          "type": "",
7746
+          "len": "",
7747
+          "scale": "",
7748
+          "primaryKey": false,
7749
+          "notNull": false,
7750
+          "autoIncrement": false,
7751
+          "defaultValue": "",
7752
+          "hideInGraph": false,
7753
+          "domain": "16120F75-6AA7-4483-868D-F07F511BB081",
7754
+          "refDict": "",
7755
+          "extProps": {},
7756
+          "id": "C0B26905-831F-4891-9B83-F84E4D111C44"
7671
         }
7757
         }
7672
       ],
7758
       ],
7673
       "correlations": [],
7759
       "correlations": [],

+ 1
- 1
db/文明创办.pdma.json View File

4
   "avatar": "",
4
   "avatar": "",
5
   "version": "4.1.4",
5
   "version": "4.1.4",
6
   "createdTime": "2022-12-12 09:36:12",
6
   "createdTime": "2022-12-12 09:36:12",
7
-  "updatedTime": "2023-3-27 19:12:07",
7
+  "updatedTime": "2023-3-30 10:05:54",
8
   "dbConns": [],
8
   "dbConns": [],
9
   "profile": {
9
   "profile": {
10
     "default": {
10
     "default": {

+ 1
- 1
pom.xml View File

10
     </parent>
10
     </parent>
11
     <groupId>com.example</groupId>
11
     <groupId>com.example</groupId>
12
     <artifactId>civilizedCity</artifactId>
12
     <artifactId>civilizedCity</artifactId>
13
-    <version>0.0.11</version>
13
+    <version>0.0.12</version>
14
     <name>civilizedCity</name>
14
     <name>civilizedCity</name>
15
     <description>civilizedCity</description>
15
     <description>civilizedCity</description>
16
     <properties>
16
     <properties>

+ 5
- 0
src/main/java/com/example/civilizedcity/common/DateUtils.java View File

24
         return dt.format(formatter);
24
         return dt.format(formatter);
25
     }
25
     }
26
 
26
 
27
+    public static String yestoday() {
28
+        DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd");
29
+        return LocalDateTime.now().minusDays(1).format(formatter);
30
+    }
31
+
27
     public static String today() {
32
     public static String today() {
28
         DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd");
33
         DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd");
29
         return LocalDateTime.now().format(formatter);
34
         return LocalDateTime.now().format(formatter);

+ 1
- 1
src/main/java/com/example/civilizedcity/controller/TaIssueController.java View File

101
         } else if ("expired".equals(bizStatus)) {
101
         } else if ("expired".equals(bizStatus)) {
102
             // 已逾期
102
             // 已逾期
103
             queryWrapper.ne("process_node", Constants.PROCESS_END);
103
             queryWrapper.ne("process_node", Constants.PROCESS_END);
104
-            queryWrapper.le("expire_date", DateUtils.today());
104
+            queryWrapper.le("expire_date", DateUtils.yestoday());
105
         } else if ("reject".equals(bizStatus)) {
105
         } else if ("reject".equals(bizStatus)) {
106
             // 已打回
106
             // 已打回
107
             queryWrapper.eq("process_node", Constants.PROCESS_APPLY_REJECT);
107
             queryWrapper.eq("process_node", Constants.PROCESS_APPLY_REJECT);

+ 1
- 1
src/main/resources/mapper/TaIssueMapper.xml View File

73
             UUID_SHORT( ) AS id,
73
             UUID_SHORT( ) AS id,
74
             IFNULL( SUM( IF ( t.process_node = '03', t.process_num, 0 ) ), 0 ) AS endNum,
74
             IFNULL( SUM( IF ( t.process_node = '03', t.process_num, 0 ) ), 0 ) AS endNum,
75
             IFNULL( SUM( IF ( t.process_node LIKE '02%', t.process_num, 0 ) ), 0 ) AS assignedNum,
75
             IFNULL( SUM( IF ( t.process_node LIKE '02%', t.process_num, 0 ) ), 0 ) AS assignedNum,
76
-            IFNULL( SUM( IF ( TO_DAYS(t.expire_date) &lt; TO_DAYS(NOW()) AND t.process_node != '03', t.process_num, 0 ) ), 0 ) AS expireNum
76
+            IFNULL( SUM( IF ( TO_DAYS(t.expire_date) &lt; TO_DAYS(DATE_SUB(NOW(), INTERVAL 1 DAY)) AND t.process_node != '03', t.process_num, 0 ) ), 0 ) AS expireNum
77
         FROM
77
         FROM
78
             ta_issue t
78
             ta_issue t
79
         WHERE
79
         WHERE

+ 2
- 2
src/main/resources/mapper/TaOrgIssueMapper.xml View File

44
         </if>
44
         </if>
45
         <if test="isExpire != null and isExpire">
45
         <if test="isExpire != null and isExpire">
46
             AND t.process_node != '03'
46
             AND t.process_node != '03'
47
-            AND TO_DAYS(t.expire_date) &lt; TO_DAYS(now())
47
+            AND TO_DAYS(t.expire_date) &lt; TO_DAYS(DATE_SUB(now(), INTERVAL 1 DAY))
48
         </if>
48
         </if>
49
             AND t.`status` &gt; -1
49
             AND t.`status` &gt; -1
50
         ORDER BY
50
         ORDER BY
68
     </select>
68
     </select>
69
     <select id="statMaIndex" resultType="java.util.Map">
69
     <select id="statMaIndex" resultType="java.util.Map">
70
         select
70
         select
71
-            SUM( IF ( TO_DAYS( now( ) ) > TO_DAYS( t.expire_date ) AND t.process_node != '03', 1, 0 ) ) AS delay_num,
71
+            SUM( IF (TO_DAYS(DATE_SUB(NOW(), INTERVAL 1 DAY)) > TO_DAYS( t.expire_date ) AND t.process_node != '03', 1, 0 ) ) AS delay_num,
72
             SUM( IF (t.process_node = '03', 1, 0 ) ) AS end_num,
72
             SUM( IF (t.process_node = '03', 1, 0 ) ) AS end_num,
73
             SUM( IF (t.process_node != '03', 1, 0 ) ) AS doing_num
73
             SUM( IF (t.process_node != '03', 1, 0 ) ) AS doing_num
74
         from ta_issue t
74
         from ta_issue t