From 8b3ac9f3de16b64593df8b1d3a812da7e72babc3 Mon Sep 17 00:00:00 2001
From: zengh <123456>
Date: Sun, 15 Aug 2021 16:07:18 +0800
Subject: [PATCH] 错误调整
---
src/main/java/org/springblade/modules/information/mapper/InformationMapper.xml | 8 ++++----
1 files changed, 4 insertions(+), 4 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 53ae13f..d3b5d31 100644
--- a/src/main/java/org/springblade/modules/information/mapper/InformationMapper.xml
+++ b/src/main/java/org/springblade/modules/information/mapper/InformationMapper.xml
@@ -734,10 +734,10 @@
<if test="deptid!=null and deptid!=''">
and u.dept_id =#{deptid}
</if>
- <if test="type=1">
+ <if test="type!=null and type=='1'">
and to_days(u.update_time) = to_days(now());
</if>
- <if test="type=2">
+ <if test="type!=null and type=='2'">
and DATE_FORMAT(u.update_time, '%Y%m' ) = DATE_FORMAT( CURDATE( ) , '%Y%m' )
</if>
GROUP BY d.dept_name,
@@ -758,10 +758,10 @@
<if test="deptid!=null and deptid!=''">
and u.departmentid =#{deptid}
</if>
- <if test="type=1">
+ <if test="type!=null and type=='1'">
and to_days(u.time) = to_days(now());
</if>
- <if test="type=2">
+ <if test="type!=null and type=='2'">
and DATE_FORMAT(u.time, '%Y%m' ) = DATE_FORMAT( CURDATE( ) , '%Y%m' )
</if>
GROUP BY d.dept_name,
--
Gitblit v1.9.3