feat(employee): 添加员工管理模块中的时间范围查询功能
- 在WmsEmployeeChangeBo中新增异动时间范围字段changeStartTime和changeEndTime - 在WmsEmployeeInfoBo中新增入职时间范围字段entryStartTime和entryEndTime - 在WmsEmployeeTransferBo中新增转岗时间范围字段transferStartTime和transferEndTime - 为所有时间字段添加DateTimeFormat注解支持日期格式化 - 在对应的服务实现类中添加时间范围查询条件 - 实现时间段筛选逻辑以支持更精确的数据查询需求
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_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;
|
||||
/**
|
||||
* 异动原因(离职必填,入职可选)
|
||||
*/
|
||||
|
||||
@@ -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_info
|
||||
@@ -79,6 +80,20 @@ public class WmsEmployeeInfoBo extends BaseEntity {
|
||||
*/
|
||||
private Date entryTime;
|
||||
|
||||
/**
|
||||
* 入职时间开始
|
||||
*/
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date entryStartTime;
|
||||
|
||||
/**
|
||||
* 入职时间结束
|
||||
*/
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date entryEndTime;
|
||||
|
||||
/**
|
||||
* 紧急联系人
|
||||
*/
|
||||
|
||||
@@ -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_transfer
|
||||
@@ -54,6 +55,20 @@ public class WmsEmployeeTransferBo extends BaseEntity {
|
||||
*/
|
||||
private Date transferTime;
|
||||
|
||||
/**
|
||||
* 转岗时间开始
|
||||
*/
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date transferStartTime;
|
||||
|
||||
/**
|
||||
* 转岗时间结束
|
||||
*/
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date transferEndTime;
|
||||
|
||||
/**
|
||||
* 转岗原因
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user