From eaa5d67a66c81d05a323b0c6f814427a846bd077 Mon Sep 17 00:00:00 2001
From: tangzy <tangzy123456>
Date: Thu, 19 Aug 2021 09:14:03 +0800
Subject: [PATCH] 1.统计接口调整
---
src/main/java/org/springblade/modules/information/mapper/InformationMapper.xml | 14 ++++++++------
1 files changed, 8 insertions(+), 6 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 1e16a8e..4f6869f 100644
--- a/src/main/java/org/springblade/modules/information/mapper/InformationMapper.xml
+++ b/src/main/java/org/springblade/modules/information/mapper/InformationMapper.xml
@@ -868,10 +868,10 @@
<if test="deptid!=null and deptid!=''">
and u.dept_id =#{deptid}
</if>
- <if test="type!=null and type=='1'">
- and to_days(u.update_time) = to_days(now());
+ <if test="type!=null and type=='1'.toString()">
+ and to_days(u.update_time) = to_days(now())
</if>
- <if test="type!=null and type=='2'">
+ <if test="type!=null and type=='2'.toString()">
and DATE_FORMAT(u.update_time, '%Y%m' ) = DATE_FORMAT( CURDATE( ) , '%Y%m' )
</if>
GROUP BY d.dept_name,u.real_name,
@@ -892,10 +892,10 @@
<if test="deptid!=null and deptid!=''">
and u.departmentid =#{deptid}
</if>
- <if test="type!=null and type=='1'">
- and to_days(u.time) = to_days(now());
+ <if test="type!=null and type=='1'.toString()">
+ and to_days(u.time) = to_days(now())
</if>
- <if test="type!=null and type=='2'">
+ <if test="type!=null and type=='2'.toString()">
and DATE_FORMAT(u.time, '%Y%m' ) = DATE_FORMAT( CURDATE( ) , '%Y%m' )
</if>
GROUP BY d.dept_name,
@@ -1059,6 +1059,7 @@
<if test="deptid!=null and deptid!=''">
and A.dept_id =#{deptid}
</if>
+ limit #{current},#{size};
</select>
<select id="seCountI" resultType="java.util.HashMap">
@@ -1250,6 +1251,7 @@
<if test="deptid!=null and deptid!=''">
and A.departmentid=#{deptid}
</if>
+ limit #{current},#{size};
</select>
<!--保安人员详情-->
--
Gitblit v1.9.3