From ff8b904fd730846fadd76fb94c7b9cbde4e134b3 Mon Sep 17 00:00:00 2001
From: Administrator <admin>
Date: Mon, 27 Dec 2021 13:34:52 +0800
Subject: [PATCH] 上岗证已制证修改

---
 src/main/java/org/springblade/modules/information/mapper/InformationMapper.xml |   16 ++++++++--------
 1 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/src/main/java/org/springblade/modules/information/mapper/InformationMapper.xml b/src/main/java/org/springblade/modules/information/mapper/InformationMapper.xml
index 9f7c51b..92b4446 100644
--- a/src/main/java/org/springblade/modules/information/mapper/InformationMapper.xml
+++ b/src/main/java/org/springblade/modules/information/mapper/InformationMapper.xml
@@ -89,7 +89,7 @@
         and is_deleted = 0
         and role_id = '1412226235153731586'
         AND status=1
-        AND dispatch=0
+        AND dispatch='0'
         GROUP BY dept_id
         ) C
         ON C.dept_id = i.departmentid
@@ -124,7 +124,7 @@
         <if test="information.createDeptId!=null and information.createDeptId!=''">
             and bu.dept_id =#{information.createDeptId}
         </if>
-        order by i.id desc
+        order by i.establishTime asc
     </select>
 
     <delete id="deleteIn">
@@ -573,7 +573,7 @@
         and status = 1
         and is_deleted = 0
         and role_id = "1412226235153731586"
-        and dispatch = 0
+        and dispatch = '0'
         GROUP BY
         dept_id
         ) F
@@ -869,7 +869,7 @@
         bu.`status` = 1
         AND bu.is_deleted = 0
         AND bu.role_id = '1412226235153731586'
-        AND bu.dispatch = 0
+        AND bu.dispatch = '0'
         GROUP BY
         bu.dept_id
         ) C ON C.dept_id = A.departmentid
@@ -883,7 +883,7 @@
         bu.`status` = 1
         AND bu.is_deleted = 0
         AND bu.role_id = '1412226235153731586'
-        AND bu.dispatch = 1
+        AND (bu.dispatch = '1' or bu.dispatch is null or bu.dispatch = '')
         GROUP BY
         bu.dept_id
         ) D ON D.dept_id = A.departmentid
@@ -1039,7 +1039,7 @@
         bu.`status` = 1
         AND bu.is_deleted = 0
         AND bu.role_id = '1412226235153731586'
-        AND bu.dispatch = 0
+        AND bu.dispatch = '0'
         GROUP BY
         bu.dept_id
         ) C ON C.dept_id = A.departmentid
@@ -1053,7 +1053,7 @@
         bu.`status` = 1
         AND bu.is_deleted = 0
         AND bu.role_id = '1412226235153731586'
-        AND bu.dispatch = 1
+        AND (bu.dispatch = '1' or bu.dispatch is null or dispatch='')
         GROUP BY
         bu.dept_id
         ) D ON D.dept_id = A.departmentid
@@ -1215,7 +1215,7 @@
         and status = 1
         and is_deleted = 0
         and role_id = "1412226235153731586"
-        and dispatch = 0
+        and dispatch = '0'
         GROUP BY
         dept_id
         ) F

--
Gitblit v1.9.3