feat(employee): 添加员工管理模块中的时间范围查询功能

- 在WmsEmployeeChangeBo中新增异动时间范围字段changeStartTime和changeEndTime
- 在WmsEmployeeInfoBo中新增入职时间范围字段entryStartTime和entryEndTime
- 在WmsEmployeeTransferBo中新增转岗时间范围字段transferStartTime和transferEndTime
- 为所有时间字段添加DateTimeFormat注解支持日期格式化
- 在对应的服务实现类中添加时间范围查询条件
- 实现时间段筛选逻辑以支持更精确的数据查询需求
This commit is contained in:
2026-03-21 15:19:13 +08:00
parent 09de6e4e62
commit 0eba0b5def
6 changed files with 50 additions and 0 deletions

View File

@@ -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_employee_change
@@ -39,6 +40,19 @@ public class WmsEmployeeChangeBo extends BaseEntity {
*/
private Date changeTime;
/**
* 异动时间开始 带时分秒
*/
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private Date changeStartTime;
/**
* 异动时间结束
*/
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private Date changeEndTime;
/**
* 异动原因(离职必填,入职可选)
*/