feat(dept): 添加部门负责人查询功能
- 实现根据负责人姓名模糊查询部门列表 - 在查询条件中增加负责人字段的like匹配 - 支持通过leader参数进行部门筛选功能
This commit is contained in:
@@ -59,6 +59,8 @@ public class SysDeptServiceImpl implements ISysDeptService, DeptService {
|
||||
.eq(ObjectUtil.isNotNull(dept.getParentId()), SysDept::getParentId, dept.getParentId())
|
||||
.like(StringUtils.isNotBlank(dept.getDeptName()), SysDept::getDeptName, dept.getDeptName())
|
||||
.eq(StringUtils.isNotBlank(dept.getStatus()), SysDept::getStatus, dept.getStatus())
|
||||
// 可以根据leader查询部门
|
||||
.like(StringUtils.isNotBlank(dept.getLeader()), SysDept::getLeader, dept.getLeader())
|
||||
.orderByAsc(SysDept::getParentId)
|
||||
.orderByAsc(SysDept::getOrderNum);
|
||||
return baseMapper.selectDeptList(lqw);
|
||||
|
||||
Reference in New Issue
Block a user