feat(employee): 添加员工管理模块中的时间范围查询功能
- 在WmsEmployeeChangeBo中新增异动时间范围字段changeStartTime和changeEndTime - 在WmsEmployeeInfoBo中新增入职时间范围字段entryStartTime和entryEndTime - 在WmsEmployeeTransferBo中新增转岗时间范围字段transferStartTime和transferEndTime - 为所有时间字段添加DateTimeFormat注解支持日期格式化 - 在对应的服务实现类中添加时间范围查询条件 - 实现时间段筛选逻辑以支持更精确的数据查询需求
This commit is contained in:
@@ -82,6 +82,8 @@ public class WmsEmployeeChangeServiceImpl implements IWmsEmployeeChangeService {
|
||||
lqw.eq(bo.getInfoId() != null, WmsEmployeeChange::getInfoId, bo.getInfoId());
|
||||
lqw.eq(bo.getChangeType() != null, WmsEmployeeChange::getChangeType, bo.getChangeType());
|
||||
lqw.eq(bo.getChangeTime() != null, WmsEmployeeChange::getChangeTime, bo.getChangeTime());
|
||||
lqw.ge(bo.getChangeStartTime() != null, WmsEmployeeChange::getChangeTime, bo.getChangeStartTime());
|
||||
lqw.le(bo.getChangeEndTime() != null, WmsEmployeeChange::getChangeTime, bo.getChangeEndTime());
|
||||
lqw.eq(StringUtils.isNotBlank(bo.getChangeReason()), WmsEmployeeChange::getChangeReason, bo.getChangeReason());
|
||||
lqw.eq(StringUtils.isNotBlank(bo.getChangeHandler()), WmsEmployeeChange::getChangeHandler, bo.getChangeHandler());
|
||||
lqw.eq(StringUtils.isNotBlank(bo.getAttachment()), WmsEmployeeChange::getAttachment, bo.getAttachment());
|
||||
|
||||
Reference in New Issue
Block a user