From dc7300e21fe53f74e08eb2fa494a83430e2e54ca Mon Sep 17 00:00:00 2001
From: zouyu <2723363702@qq.com>
Date: 星期四, 26 三月 2026 11:25:58 +0800
Subject: [PATCH] 绩效管理:人员考勤功能模块
---
performance-server/src/main/resources/mapper/PerformanceShiftMapper.xml | 23 +++++++++++++++++++++++
1 files changed, 23 insertions(+), 0 deletions(-)
diff --git a/performance-server/src/main/resources/mapper/PerformanceShiftMapper.xml b/performance-server/src/main/resources/mapper/PerformanceShiftMapper.xml
index 1388484..381ef69 100644
--- a/performance-server/src/main/resources/mapper/PerformanceShiftMapper.xml
+++ b/performance-server/src/main/resources/mapper/PerformanceShiftMapper.xml
@@ -145,4 +145,27 @@
from department_lims
where id = #{depLimsId}
</select>
+ <select id="selectListByWorkTime" resultType="com.ruoyi.performance.dto.PerformanceShiftMapDto">
+ SELECT
+ ps.id,
+ ps.shift,
+ ps.work_time,
+ ps.user_id,
+ u.name AS user_name,
+ u.account AS person_code,
+ st.start_time,
+ st.end_time
+ FROM performance_shift ps
+ LEFT JOIN user u ON ps.user_id = u.id
+ LEFT JOIN shift_time st ON ps.shift = st.shift
+ <where>
+ <if test="startTime!=null and endTime!=null">
+ AND ps.work_time BETWEEN #{startTime} AND #{endTime}
+ </if>
+ <if test="keyword!='' and keyword!=null">
+ AND (u.account like concat('%',#{keyword},'%') OR u.name like concat('%',#{keyword},'%'))
+ </if>
+ </where>
+ ORDER BY ps.work_time
+ </select>
</mapper>
--
Gitblit v1.9.3