feat(employee): 添加员工信息和变动记录的排序功能
- 在WmsEmployeeInfoBo中新增sortByRegularTime和sortByEntryTime字段 - 实现员工信息按入职时间、转正时间或创建时间的倒序排序 - 添加员工变动记录按变动时间的倒序排序 - 实现员工转岗记录按转岗时间的倒序排序 - 优化查询条件构建逻辑,支持多维度排序需求
This commit is contained in:
@@ -87,6 +87,8 @@ public class WmsEmployeeChangeServiceImpl implements IWmsEmployeeChangeService {
|
||||
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());
|
||||
// 按照变动时间倒叙排序
|
||||
lqw.orderByDesc(WmsEmployeeChange::getChangeTime);
|
||||
return lqw;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user