feat(wms): 添加排班管理的查询功能

- 在 WmsAttendanceScheduleMapper 中新增关联查询和批量插入方法
- 实现员工和班次信息的关联查询功能
- 添加分页查询排班列表的详细信息展示
- 扩展 WmsAttendanceScheduleVo 数据传输对象
- 完善排班详情查询和列表查询的服务层逻辑
- 集成员工姓名、部门、岗位及班次时间等详细信息
- 优化批量插入排班数据的功能实现
This commit is contained in:
2026-05-09 14:08:38 +08:00
parent 0ecc886485
commit cd3cfd6198
4 changed files with 162 additions and 16 deletions

View File

@@ -3,6 +3,9 @@ package com.klp.mapper;
import com.klp.domain.WmsAttendanceSchedule;
import com.klp.domain.vo.WmsAttendanceScheduleVo;
import com.klp.common.core.mapper.BaseMapperPlus;
import org.apache.ibatis.annotations.Param;
import java.util.List;
/**
* 排班(谁在哪天上班)Mapper接口
@@ -12,4 +15,25 @@ import com.klp.common.core.mapper.BaseMapperPlus;
*/
public interface WmsAttendanceScheduleMapper extends BaseMapperPlus<WmsAttendanceScheduleMapper, WmsAttendanceSchedule, WmsAttendanceScheduleVo> {
/**
* 查询排班列表(关联员工和班次信息)
*/
List<WmsAttendanceScheduleVo> selectScheduleWithDetails(@Param("userId") Long userId,
@Param("workDate") java.util.Date workDate,
@Param("shiftId") Long shiftId);
/**
* 分页查询排班列表(关联员工和班次信息)
*/
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);
/**
* 批量插入排班
*/
boolean insertBatch(@Param("list") List<WmsAttendanceSchedule> list);
}