|
|
|
@ -354,18 +354,18 @@ public class SysDeptServiceImpl extends BaseServiceImpl<SysDeptDao, SysDeptEntit |
|
|
|
public DeptOption getDeptAuthByUser() { |
|
|
|
return getDeptAuthByUser(SecurityUser.getUserId()); |
|
|
|
} |
|
|
|
// @Override
|
|
|
|
// public List<DeptGridDTO> getGridAuthByUser() {
|
|
|
|
// // 用户拥有的所有部门权限
|
|
|
|
// List<Long> deptList = SecurityUser.getUser().getDeptIdList();
|
|
|
|
// List<DeptGridDTO> list;
|
|
|
|
// if (deptList != null && deptList.size() > 0) {
|
|
|
|
// list = baseDao.getGridAuthByUser(deptList);
|
|
|
|
// } else {
|
|
|
|
// return null;
|
|
|
|
// }
|
|
|
|
// return list;
|
|
|
|
// }
|
|
|
|
@Override |
|
|
|
public List<DeptGridDTO> getGridAuthByUser() { |
|
|
|
// 用户拥有的所有部门权限
|
|
|
|
List<Long> deptList = SecurityUser.getUser().getDeptIdList(); |
|
|
|
List<DeptGridDTO> list; |
|
|
|
if (deptList != null && deptList.size() > 0) { |
|
|
|
list = baseDao.getGridAuthByUser(deptList); |
|
|
|
} else { |
|
|
|
return null; |
|
|
|
} |
|
|
|
return list; |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
@ -461,10 +461,10 @@ public class SysDeptServiceImpl extends BaseServiceImpl<SysDeptDao, SysDeptEntit |
|
|
|
@Override |
|
|
|
public DeptOption getStreetByLoginUser() { |
|
|
|
DeptOption result = getUserDeptOption(SecurityUser.getUserId()); |
|
|
|
List<JSONObject> options = result.getOptions(); |
|
|
|
if (options.isEmpty()) { |
|
|
|
if (null == result || result.getOptions().isEmpty()) { |
|
|
|
return result; |
|
|
|
} |
|
|
|
List<JSONObject> options = result.getOptions(); |
|
|
|
// 代表存在子级机构的json key
|
|
|
|
String childJsonOptionKey = "children"; |
|
|
|
// 一个街道机构
|
|
|
|
@ -1052,9 +1052,9 @@ public class SysDeptServiceImpl extends BaseServiceImpl<SysDeptDao, SysDeptEntit |
|
|
|
if (formDTO.getDeptIdList() != null && formDTO.getDeptIdList().size() >0) { |
|
|
|
map.put("deptId", formDTO.getDeptIdList().get(0)); |
|
|
|
} |
|
|
|
// if (formDTO.getDeptName() != null && formDTO.getDeptName() != "") {
|
|
|
|
// map.put("deptName", formDTO.getDeptName());
|
|
|
|
// }
|
|
|
|
if (formDTO.getDeptName() != null && formDTO.getDeptName() != "") { |
|
|
|
map.put("deptName", formDTO.getDeptName()); |
|
|
|
} |
|
|
|
List<UserSysDeptInfoResultDTO> list = baseDao.selectListAllDeptInfo(map); // 获取全部的部门信息
|
|
|
|
return list; |
|
|
|
} |
|
|
|
|