feat(schedule): 添加排班管理的时间段筛选功能
- 在 WmsAttendanceScheduleBo 中新增 startDate 和 endDate 字段用于时间段筛选 - 更新 mapper 接口方法参数,支持时间段范围查询 - 修改 XML 映射文件,添加时间段条件判断逻辑 - 重构服务实现类,优化分页查询逻辑并支持时间段筛选 - 完善查询方法,统一时间段参数传递机制
This commit is contained in:
@@ -7,6 +7,7 @@ import javax.validation.constraints.*;
|
||||
|
||||
import java.util.Date;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
|
||||
/**
|
||||
* 排班(谁在哪天上班)业务对象 wms_attendance_schedule
|
||||
@@ -54,5 +55,18 @@ public class WmsAttendanceScheduleBo extends BaseEntity {
|
||||
*/
|
||||
private String remark;
|
||||
|
||||
/**
|
||||
* 开始日期(时间段筛选)
|
||||
*/
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@DateTimeFormat(pattern = "yyyy-MM-dd")
|
||||
private Date startDate;
|
||||
|
||||
/**
|
||||
* 结束日期(时间段筛选)
|
||||
*/
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@DateTimeFormat(pattern = "yyyy-MM-dd")
|
||||
private Date endDate;
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user