feat(wms/attendance): 为考勤排班查询新增员工姓名和部门名称模糊筛选

在WmsAttendanceScheduleBo中新增employeeName和employeeDept字段用于接收模糊查询条件。在WmsAttendanceScheduleServiceImpl中新增resolveEmployeeNameAndDept私有方法,根据姓名和部门条件查询员工ID集合,并自动设置到bo的userIds字段中,实现通过员工姓名和部门名称进行模糊筛选考勤排班数据。
This commit is contained in:
2026-05-27 17:12:54 +08:00
parent 50298c3ec9
commit 6b36697e56
3 changed files with 45 additions and 1 deletions

View File

@@ -98,6 +98,12 @@
<if test="bo.endDate != null">
AND s.work_date &lt;= #{bo.endDate}
</if>
<if test="bo.userIds != null and bo.userIds.size > 0">
AND s.user_id IN
<foreach collection="bo.userIds" item="userIdItem" open="(" separator="," close=")">
#{userIdItem}
</foreach>
</if>
ORDER BY s.work_date DESC, s.user_id
</select>