新增领导班子、部门简介功能

This commit is contained in:
ly19960718 2021-06-16 09:57:03 +08:00
parent 89ba5746db
commit 2b0d07d4dc

View File

@ -93,6 +93,11 @@ public class DepartmentBaseController extends DefaultBaseController {
public List<DepartmentPO> listJur(){ public List<DepartmentPO> listJur(){
List<DepartmentPO> list = new ArrayList<>(); List<DepartmentPO> list = new ArrayList<>();
List<RolePO> roles = securityComponent.getCurrentUser().getRoles(); List<RolePO> roles = securityComponent.getCurrentUser().getRoles();
if("admin".equals(securityComponent.getCurrentUser().getUserUsername())){
list = departmentBaseService.listByParentId(GENGID);
return list;
}
for (RolePO role : roles) { for (RolePO role : roles) {
//市局角色 //市局角色
if(ROLE_1_CODE.equals(role.getRoleCode())){ if(ROLE_1_CODE.equals(role.getRoleCode())){