From 8fc672da0775664f3f48f1cbb19e09361100138c Mon Sep 17 00:00:00 2001
From: Administrator <admin>
Date: Thu, 11 Nov 2021 08:50:55 +0800
Subject: [PATCH] 派遣查询接口修改

---
 src/main/java/org/springblade/modules/information/mapper/InformationMapper.xml |    7 ++++---
 1 files changed, 4 insertions(+), 3 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 ee0dc67..a1d745d 100644
--- a/src/main/java/org/springblade/modules/information/mapper/InformationMapper.xml
+++ b/src/main/java/org/springblade/modules/information/mapper/InformationMapper.xml
@@ -51,11 +51,11 @@
         on
         sj.id = i.jurisdiction
         LEFT JOIN ( SELECT COUNT( * ) AS znum, dept_id FROM blade_user WHERE role_id = '1412226235153731586' AND
-        status=1 GROUP BY dept_id ) A ON A.dept_id = i.departmentid
+        status=1 and is_deleted = 0 GROUP BY dept_id ) A ON A.dept_id = i.departmentid
         LEFT JOIN ( SELECT COUNT( * ) AS cnum, dept_id FROM blade_user WHERE role_id = '1412226235153731586' AND
-        status=1 AND hold=1 GROUP BY dept_id ) B ON B.dept_id = i.departmentid
+        status=1 AND hold=1 and is_deleted = 0 GROUP BY dept_id ) B ON B.dept_id = i.departmentid
         LEFT JOIN ( SELECT COUNT( * ) AS pnum, dept_id FROM blade_user WHERE role_id = '1412226235153731586' AND
-        status=1 AND dispatch=0 GROUP BY dept_id ) C ON C.dept_id = i.departmentid
+        status=1 AND dispatch=0 and is_deleted = 0 GROUP BY dept_id ) C ON C.dept_id = i.departmentid
         where 1=1
         <if test="information.enterprisename!=null and information.enterprisename!=''">
             and i.enterpriseName like concat(concat('%', #{information.enterprisename}),'%')
@@ -1802,6 +1802,7 @@
         (
         SELECT COUNT( * ) AS znum, dept_id FROM blade_user WHERE role_id = '1412226235153731586'
         and status=1
+        and is_deleted = 0
         GROUP BY dept_id
         ) C
         ON A.departmentid = C.dept_id

--
Gitblit v1.9.3