|
|
@ -44,6 +44,8 @@ import com.elink.esua.epdc.dto.epdc.result.AreaCodeChildResultDTO; |
|
|
|
import com.elink.esua.epdc.dto.epdc.result.AreaCodeParentResultDTO; |
|
|
|
import com.elink.esua.epdc.dto.epdc.result.UserSysDeptAreaCodeResultDTO; |
|
|
|
import com.elink.esua.epdc.dto.epdc.result.UserSysDeptInfoResultDTO; |
|
|
|
import com.elink.esua.epdc.dto.form.DeptInfoFormDTO; |
|
|
|
import com.elink.esua.epdc.dto.result.DeptInfoResultDTO; |
|
|
|
import com.elink.esua.epdc.entity.AdminImgEntity; |
|
|
|
import com.elink.esua.epdc.entity.SysDeptEntity; |
|
|
|
import com.elink.esua.epdc.entity.SysDeptInfoEntity; |
|
|
@ -416,6 +418,33 @@ public class SysDeptServiceImpl extends BaseServiceImpl<SysDeptDao, SysDeptEntit |
|
|
|
return new Result().ok(deptIdList); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
public List<DeptInfoResultDTO> deptInfo(DeptInfoFormDTO formDTO) { |
|
|
|
long countryId = 370124L; |
|
|
|
if (SecurityUser.getUser().getSuperAdmin() != NumConstant.ONE && countryId != SecurityUser.getUser().getDeptId()) { |
|
|
|
List<Long> deptIdList = SecurityUser.getUser().getDeptIdList(); |
|
|
|
if (SecurityUser.getUser().getDeptId() != null) { |
|
|
|
SysDeptEntity deptEntity = baseDao.selectDeptPidByDeptId(SecurityUser.getUser().getDeptId()); |
|
|
|
// 如果这是网格员,就将社区ID放进权限(更高级部门也是)
|
|
|
|
if (deptEntity != null) { |
|
|
|
deptIdList.add(deptEntity.getId()); |
|
|
|
SysDeptEntity pDeptEntity = baseDao.selectDeptPidByDeptId(deptEntity.getId()); |
|
|
|
// 如果这是网格员,还要将街道ID放进权限(更高级部门也是)
|
|
|
|
if (pDeptEntity != null) { |
|
|
|
deptIdList.add(pDeptEntity.getId()); |
|
|
|
} |
|
|
|
} |
|
|
|
// 将所属部门的权限也放进来
|
|
|
|
SysDeptEntity entity = baseDao.getById(SecurityUser.getUser().getDeptId()); |
|
|
|
deptIdList.add(entity.getId()); |
|
|
|
} |
|
|
|
|
|
|
|
formDTO.setDeptIdList(deptIdList); |
|
|
|
} |
|
|
|
return baseDao.deptInfo(formDTO); |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
public Result<CompleteDeptDTO> getCompleteDept(String gridId) { |
|
|
|
Long gridIdL = null; |
|
|
|