From 1b78685c21ac1c27d3446e17cd10e9c5e70c3981 Mon Sep 17 00:00:00 2001
From: tangzy <tangzy123456>
Date: Fri, 10 Sep 2021 11:38:56 +0800
Subject: [PATCH] 首页统计持证
---
src/main/java/org/springblade/modules/information/mapper/InformationMapper.xml | 14 +++++++++-----
1 files changed, 9 insertions(+), 5 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 2bb3321..f37188e 100644
--- a/src/main/java/org/springblade/modules/information/mapper/InformationMapper.xml
+++ b/src/main/java/org/springblade/modules/information/mapper/InformationMapper.xml
@@ -167,14 +167,18 @@
<select id="selectHold" resultType="java.util.HashMap">
SELECT
IFNULL( A.thisnum, 0 ) AS cz,
- IFNULL( B.lastnum, 0 ) AS wcz
+ A.real_name as czname,
+ A.paper_time as cztime,
+ IFNULL( B.lastnum, 0 ) AS wcz,
+ B.real_name as wcname,
+ B.paper_time as wcztime
FROM
(
SELECT departmentid,jurisdiction FROM sys_information GROUP BY departmentid,jurisdiction
) H
LEFT JOIN(
SELECT
- COUNT( * ) AS thisnum,
+ COUNT( * ) AS thisnum,real_name,paper_time,
dept_id
FROM
blade_user
@@ -184,11 +188,11 @@
AND is_deleted = 0
AND hold = 1
GROUP BY
- dept_id
+ dept_id,real_name,paper_time
) A ON A.dept_id=H.departmentid
LEFT JOIN (
SELECT
- COUNT(*) AS lastnum,
+ COUNT(*) AS lastnum,real_name,paper_time,
dept_id
FROM
blade_user
@@ -198,7 +202,7 @@
AND is_deleted = 0
AND hold = 2
GROUP BY
- dept_id
+ dept_id,real_name,paper_time
) B ON B.dept_id=H.departmentid
where 1=1
<if test="deptid!=null and deptid!=''">
--
Gitblit v1.9.3