feat(schedule): 添加排班管理的时间段筛选功能

- 在 WmsAttendanceScheduleBo 中新增 startDate 和 endDate 字段用于时间段筛选
- 更新 mapper 接口方法参数,支持时间段范围查询
- 修改 XML 映射文件,添加时间段条件判断逻辑
- 重构服务实现类,优化分页查询逻辑并支持时间段筛选
- 完善查询方法,统一时间段参数传递机制
This commit is contained in:
2026-05-09 14:23:43 +08:00
parent cd3cfd6198
commit 95c11fbc9a
4 changed files with 55 additions and 35 deletions

View File

@@ -1,10 +1,13 @@
package com.klp.mapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.klp.domain.WmsAttendanceSchedule;
import com.klp.domain.bo.WmsAttendanceScheduleBo;
import com.klp.domain.vo.WmsAttendanceScheduleVo;
import com.klp.common.core.mapper.BaseMapperPlus;
import org.apache.ibatis.annotations.Param;
import java.util.Date;
import java.util.List;
/**
@@ -18,18 +21,17 @@ public interface WmsAttendanceScheduleMapper extends BaseMapperPlus<WmsAttendanc
/**
* 查询排班列表(关联员工和班次信息)
*/
List<WmsAttendanceScheduleVo> selectScheduleWithDetails(@Param("userId") Long userId,
List<WmsAttendanceScheduleVo> selectScheduleWithDetails(@Param("userId") Long userId,
@Param("workDate") java.util.Date workDate,
@Param("shiftId") Long shiftId);
@Param("shiftId") Long shiftId,
@Param("startDate") Date startDate,
@Param("endDate") Date endDate);
/**
* 分页查询排班列表(关联员工和班次信息)
*/
List<WmsAttendanceScheduleVo> selectScheduleWithDetailsPage(@Param("userId") Long userId,
@Param("workDate") java.util.Date workDate,
@Param("shiftId") Long shiftId,
@Param("shiftName") String shiftName,
@Param("shiftGroup") String shiftGroup);
Page<WmsAttendanceScheduleVo> selectScheduleWithDetailsPage(Page<WmsAttendanceScheduleVo> page,
@Param("bo") WmsAttendanceScheduleBo bo);
/**
* 批量插入排班