From 6f201b8d3743e246a71f00a9ba98d10b128fae38 Mon Sep 17 00:00:00 2001
From: guoshilong <123456>
Date: Tue, 16 Jan 2024 08:59:52 +0800
Subject: [PATCH] 派遣记录导入
---
src/main/java/org/springblade/modules/post/mapper/CheckRecordMapper.xml | 13 +++++++++++--
1 files changed, 11 insertions(+), 2 deletions(-)
diff --git a/src/main/java/org/springblade/modules/post/mapper/CheckRecordMapper.xml b/src/main/java/org/springblade/modules/post/mapper/CheckRecordMapper.xml
index ca29f95..d9c7c3c 100644
--- a/src/main/java/org/springblade/modules/post/mapper/CheckRecordMapper.xml
+++ b/src/main/java/org/springblade/modules/post/mapper/CheckRecordMapper.xml
@@ -19,9 +19,18 @@
AND spf.type = #{vo.postType}
</if>
<if test="vo.checkTime != null and vo.checkTime !='' ">
- AND date_format(scr.check_time,'%Y-%m-%d') = #{vo.checkTime}
+ AND date_format(scr.check_time,'%Y-%m-%d') = date_format(#{vo.checkTime},'%Y-%m-%d')
</if>
-
+ <if test="vo.postId != null and vo.postId !='' ">
+ AND scr.post_id = #{vo.postId}
+ </if>
+ <if test="vo.userName != null and vo.userName !='' ">
+ AND bu.real_name LIKE CONCAT('%',#{vo.userName},'%')
+ </if>
+ <if test="vo.status != null and vo.status !='' ">
+ AND scr.status = #{vo.status}
+ </if>
+ ORDER BY scr.check_time DESC
</select>
</mapper>
--
Gitblit v1.9.3