feat(wms/attendance): 为考勤查询新增员工ID集合筛选功能
在AttendanceCheckBo中新增userIds字段,用于接收员工ID集合查询条件。同步更新WmsAttendanceScheduleBo、Mapper接口及XML映射,在查询排班时支持按userIds进行筛选。Service层将考勤查询条件中的userIds传递至排班查询逻辑,实现考勤数据按指定员工范围过滤。
This commit is contained in:
@@ -55,7 +55,7 @@ public class WmsAttendanceScheduleServiceImpl implements IWmsAttendanceScheduleS
|
||||
|
||||
// 使用关联查询获取详细信息
|
||||
List<WmsAttendanceScheduleVo> list = baseMapper.selectScheduleWithDetails(
|
||||
schedule.getUserId(), schedule.getWorkDate(), schedule.getShiftId(),null, null);
|
||||
schedule.getUserId(), schedule.getWorkDate(), schedule.getShiftId(),null, null, null);
|
||||
|
||||
return list.isEmpty() ? null : list.get(0);
|
||||
}
|
||||
@@ -81,7 +81,7 @@ public class WmsAttendanceScheduleServiceImpl implements IWmsAttendanceScheduleS
|
||||
@Override
|
||||
public List<WmsAttendanceScheduleVo> queryList(WmsAttendanceScheduleBo bo) {
|
||||
return baseMapper.selectScheduleWithDetails(bo.getUserId(), bo.getWorkDate(), bo.getShiftId(),
|
||||
bo.getStartDate(), bo.getEndDate());
|
||||
bo.getStartDate(), bo.getEndDate(), bo.getUserIds());
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user