|
|
|
@ -66,10 +66,17 @@ public class SysDeptServiceImpl implements ISysDeptService, DeptService { |
|
|
|
*/ |
|
|
|
@Override |
|
|
|
public TableDataInfo<SysDeptVo> selectPageDeptList(SysDeptBo dept, PageQuery pageQuery) { |
|
|
|
|
|
|
|
Page<SysDeptVo> page = baseMapper.selectPageDeptList(pageQuery.build(), buildQueryWrapper(dept)); |
|
|
|
return TableDataInfo.build(page); |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
public TableDataInfo<SysDeptVo> selectPageDeptListWT(SysDeptBo dept, PageQuery pageQuery) { |
|
|
|
|
|
|
|
Page<SysDeptVo> page = baseMapper.selectPageDeptList(pageQuery.build(), buildQueryWrapperWT(dept)); |
|
|
|
return TableDataInfo.build(page); |
|
|
|
} |
|
|
|
/** |
|
|
|
* 查询部门管理数据 |
|
|
|
* |
|
|
|
@ -243,6 +250,19 @@ public class SysDeptServiceImpl implements ISysDeptService, DeptService { |
|
|
|
return lqw; |
|
|
|
} |
|
|
|
|
|
|
|
private LambdaQueryWrapper<SysDept> buildQueryWrapperWT(SysDeptBo bo) { |
|
|
|
LambdaQueryWrapper<SysDept> lqw = Wrappers.lambdaQuery(); |
|
|
|
lqw.eq(SysDept::getDelFlag, SystemConstants.NORMAL); |
|
|
|
lqw.eq(ObjectUtil.isNotNull(bo.getDeptId()), SysDept::getDeptId, bo.getDeptId()); |
|
|
|
lqw.isNotNull(SysDept::getZone); |
|
|
|
lqw.ne(SysDept::getZone, ""); |
|
|
|
lqw.ne(SysDept::getZone, 2); |
|
|
|
lqw.ne(SysDept::getDeptName, "街道"); |
|
|
|
lqw.like(StringUtils.isNotBlank(bo.getDeptName()), SysDept::getDeptName, bo.getDeptName()); |
|
|
|
lqw.ne(SysDept::getDeptId, LoginHelper.getDeptId()); |
|
|
|
return lqw; |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* 构建前端所需要下拉树结构 |
|
|
|
* |
|
|
|
|