From 568025796c345fe0fdb7daf90b0d0f01f73ab9fc Mon Sep 17 00:00:00 2001
From: tangzy <tangzy123456>
Date: Sat, 21 Aug 2021 09:19:30 +0800
Subject: [PATCH] 1.ftp
---
src/main/java/org/springblade/modules/information/mapper/InformationMapper.xml | 9 +++++++--
1 files changed, 7 insertions(+), 2 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 d95b7fb..9842a48 100644
--- a/src/main/java/org/springblade/modules/information/mapper/InformationMapper.xml
+++ b/src/main/java/org/springblade/modules/information/mapper/InformationMapper.xml
@@ -30,6 +30,11 @@
</resultMap>
+ <insert id="insertIn" useGeneratedKeys="true" keyProperty="id">
+ insert into sys_information (creditcode) values (#{information.creditcode})
+ </insert>
+
+
<select id="selectInformationPage" resultMap="informationResultMap">
select * from sys_information where 1=1
<if test="information.enterprisename!=null and information.enterprisename!=''">
@@ -132,11 +137,11 @@
IFNULL(B.lastnum, 0) AS wcz
FROM (SELECT COUNT(*) AS thisnum, dept_id
FROM blade_user
- WHERE role_id = '1412226235153731586' AND hold = 0
+ WHERE role_id = '1412226235153731586' AND hold = 1
GROUP BY dept_id) A
LEFT JOIN (SELECT COUNT(*) AS lastnum, dept_id
FROM blade_user
- WHERE role_id = '1412226235153731586' AND hold = 1
+ WHERE role_id = '1412226235153731586' AND hold = 2
GROUP BY dept_id) B ON A.dept_id = B.dept_id
WHERE A.dept_id =#{deptid}
</select>
--
Gitblit v1.9.3