|
|
@ -421,6 +421,26 @@ public class SysUserController { |
|
|
|
return new Result().ok(deptOption); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* 获取用户部门多层结构,用户前端显示,请求需携带token |
|
|
|
* <p>调接口,从redis获取{@link SysUserController#packageUserDeptOption(Long)}接口生成的数据。</p> |
|
|
|
* <p>此接口展示四级机构层级(市区-街道-社区-网格)</p> |
|
|
|
* |
|
|
|
* @return com.elink.esua.epdc.commons.tools.utils.Result<com.elink.esua.epdc.dto.DeptOption> |
|
|
|
* @author wanggongfeng |
|
|
|
* @date 2020/06/18 13:31 |
|
|
|
*/ |
|
|
|
@GetMapping("deptOptions/getAllDeptPartyByUser") |
|
|
|
public Result<DeptOption> getAllDeptPartyByUser() { |
|
|
|
UserDetail user = SecurityUser.getUser(); |
|
|
|
DeptOption deptOption = optSysDeptService.getDeptOption(user.getId(), user.getDeptIdList(), |
|
|
|
OrganizationTypeConstant.ORG_TYPE_DISTRICT_PARTY, |
|
|
|
OrganizationTypeConstant.ORG_TYPE_STREET_PARTY, |
|
|
|
OrganizationTypeConstant.ORG_TYPE_COMMUNITY_PARTY, |
|
|
|
OrganizationTypeConstant.ORG_TYPE_GRID_PARTY); |
|
|
|
return new Result().ok(deptOption); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* pc端页面,获取用户街道-社区层级关系,前端显示,请求需携带token |
|
|
|
* <p>只组装 街道-社区 两级 |
|
|
|