refactor(leave): 优化请假申请时间字段处理
- 移除多余的 beginTime 和 endTimeParam 字段 - 为 startTime 和 endTime 添加 JsonFormat 和 DateTimeFormat 注解 - 更新服务层时间范围筛选逻辑,使用 startTime 和 endTime 替代旧字段 - 统一时间格式化为 yyyy-MM-dd 格式 - 简化查询条件中的时间比较逻辑
This commit is contained in:
@@ -8,6 +8,7 @@ import javax.validation.constraints.*;
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
|
||||
/**
|
||||
* 员工请假申请业务对象 wms_leave_request
|
||||
@@ -48,23 +49,17 @@ public class WmsLeaveRequestBo extends BaseEntity {
|
||||
/**
|
||||
* 请假开始时间
|
||||
*/
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@DateTimeFormat(pattern = "yyyy-MM-dd")
|
||||
private Date startTime;
|
||||
|
||||
/**
|
||||
* 请假结束时间
|
||||
*/
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@DateTimeFormat(pattern = "yyyy-MM-dd")
|
||||
private Date endTime;
|
||||
|
||||
/**
|
||||
* 查询开始时间(用于筛选请假时间范围)
|
||||
*/
|
||||
private Date beginTime;
|
||||
|
||||
/**
|
||||
* 查询结束时间(用于筛选请假时间范围)
|
||||
*/
|
||||
private Date endTimeParam;
|
||||
|
||||
/**
|
||||
* 导出ID列表(逗号分隔)
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user