From 0b3ff378a9faaf9d7a4831b7f0de67378fe0dfea Mon Sep 17 00:00:00 2001
From: java110 <928255095@qq.com>
Date: 星期二, 30 五月 2023 12:20:15 +0800
Subject: [PATCH] optimize 统计
---
java110-db/src/main/resources/mapper/user/AttendanceClassesStaffV1ServiceDaoImplMapper.xml | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
diff --git a/java110-db/src/main/resources/mapper/user/AttendanceClassesStaffV1ServiceDaoImplMapper.xml b/java110-db/src/main/resources/mapper/user/AttendanceClassesStaffV1ServiceDaoImplMapper.xml
index 49503b7..187c3ba 100644
--- a/java110-db/src/main/resources/mapper/user/AttendanceClassesStaffV1ServiceDaoImplMapper.xml
+++ b/java110-db/src/main/resources/mapper/user/AttendanceClassesStaffV1ServiceDaoImplMapper.xml
@@ -18,7 +18,8 @@
<!-- 鏌ヨ鑰冨嫟鍛樺伐淇℃伅 add by wuxw 2018-07-03 -->
<select id="getAttendanceClassesStaffInfo" parameterType="Map" resultType="Map">
select t.classes_id,t.classes_id classesId,t.cs_id,t.cs_id csId,t.staff_name,t.staff_name
- staffName,t.status_cd,t.status_cd statusCd,t.store_id,t.store_id storeId,t.staff_id,t.staff_id staffId
+ staffName,t.status_cd,t.status_cd statusCd,t.store_id,t.store_id storeId,t.staff_id,t.staff_id staffId,
+ t.create_time createTime
from attendance_classes_staff t
where 1 =1
<if test="classesId !=null and classesId != ''">
@@ -29,6 +30,9 @@
</if>
<if test="staffName !=null and staffName != ''">
and t.staff_name= #{staffName}
+ </if>
+ <if test="staffNameLike !=null and staffNameLike != ''">
+ and t.staff_name like concat('%', #{staffNameLike},'%')
</if>
<if test="statusCd !=null and statusCd != ''">
and t.status_cd= #{statusCd}
@@ -86,6 +90,9 @@
<if test="staffName !=null and staffName != ''">
and t.staff_name= #{staffName}
</if>
+ <if test="staffNameLike !=null and staffNameLike != ''">
+ and t.staff_name like concat('%', #{staffNameLike},'%')
+ </if>
<if test="statusCd !=null and statusCd != ''">
and t.status_cd= #{statusCd}
</if>
--
Gitblit v1.8.0