From 8d2ee0cb12996999d3b3ec4c272b40ce0058226f Mon Sep 17 00:00:00 2001
From: wuxw <928255095@qq.com>
Date: 星期三, 27 十二月 2023 16:25:00 +0800
Subject: [PATCH] 优化代码
---
java110-db/src/main/resources/mapper/oa/WorkPoolFileV1ServiceDaoImplMapper.xml | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/java110-db/src/main/resources/mapper/oa/WorkPoolFileV1ServiceDaoImplMapper.xml b/java110-db/src/main/resources/mapper/oa/WorkPoolFileV1ServiceDaoImplMapper.xml
index 5f7abb4..0b9f24e 100644
--- a/java110-db/src/main/resources/mapper/oa/WorkPoolFileV1ServiceDaoImplMapper.xml
+++ b/java110-db/src/main/resources/mapper/oa/WorkPoolFileV1ServiceDaoImplMapper.xml
@@ -47,6 +47,9 @@
<if test="fileType !=null and fileType != ''">
and t.file_type= #{fileType}
</if>
+ <if test="staffNameLike !=null and staffNameLike != ''">
+ and wt.staff_name like concat('%', #{staffNameLike},'%')
+ </if>
order by t.create_time desc
<if test="page != -1 and page != null ">
limit #{page}, #{row}
@@ -118,6 +121,9 @@
<if test="fileType !=null and fileType != ''">
and t.file_type= #{fileType}
</if>
+ <if test="staffNameLike !=null and staffNameLike != ''">
+ and wt.staff_name like concat('%', #{staffNameLike},'%')
+ </if>
</select>
--
Gitblit v1.8.0