组织修改接口
This commit is contained in:
@ -537,10 +537,7 @@ public class SysDeptServiceImpl implements ISysDeptService, DeptService {
|
||||
|
||||
@Override
|
||||
public List<SysDeptVo> querListDept() {
|
||||
|
||||
List<SysDeptVo> sysDeptVos = baseMapper.selectDeptList(new LambdaQueryWrapper<SysDept>().eq(SysDept::getParentId, "100").eq(SysDept::getStatus, "0").eq(SysDept::getDelFlag, "0"));
|
||||
|
||||
|
||||
return sysDeptVos;
|
||||
}
|
||||
|
||||
|
||||
@ -8,6 +8,7 @@ import lombok.RequiredArgsConstructor;
|
||||
import org.dromara.common.core.domain.R;
|
||||
import org.dromara.common.mybatis.core.page.PageQuery;
|
||||
import org.dromara.common.mybatis.core.page.TableDataInfo;
|
||||
import org.dromara.system.domain.bo.SysDeptBo;
|
||||
import org.dromara.system.domain.bo.SysUserBo;
|
||||
import org.dromara.system.domain.vo.SysDeptVo;
|
||||
import org.dromara.system.domain.vo.SysUserVo;
|
||||
@ -61,6 +62,9 @@ public class XzdPublicUrlConreoller {
|
||||
|
||||
private final IXzdBusinessSealService xzdBusinessSealService;
|
||||
|
||||
private final ISysDeptService deptService;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@ -123,10 +127,16 @@ public class XzdPublicUrlConreoller {
|
||||
/**
|
||||
* 查询部门
|
||||
*/
|
||||
// @GetMapping("/listDept")
|
||||
// public R<List<SysDeptVo>> list() {
|
||||
// List<SysDeptVo> list = iSysDeptService.querListDept();
|
||||
// return R.ok(list);
|
||||
// }
|
||||
|
||||
@GetMapping("/listDept")
|
||||
public R<List<SysDeptVo>> list() {
|
||||
List<SysDeptVo> list = iSysDeptService.querListDept();
|
||||
return R.ok(list);
|
||||
public R<List<SysDeptVo>> list(SysDeptBo dept) {
|
||||
List<SysDeptVo> depts = deptService.selectDeptList(dept);
|
||||
return R.ok(depts);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user