|
|
@ -1499,6 +1499,9 @@ public class SysDeptServiceImpl extends BaseServiceImpl<SysDeptDao, SysDeptEntit |
|
|
|
public DeptInfoCodeDTO guessDeptId(Long deptId) { |
|
|
|
DeptInfoCodeDTO resultDTO = new DeptInfoCodeDTO(); |
|
|
|
SysDeptDTO dto = get(deptId); |
|
|
|
if (dto == null) { |
|
|
|
return resultDTO; |
|
|
|
} |
|
|
|
if (OrganizationTypeConstant.ORG_TYPE_GRID_PARTY.equals(dto.getTypeKey())) { |
|
|
|
SysDeptDTO community = get(dto.getPid()); |
|
|
|
SysDeptDTO street = get(community.getPid()); |
|
|
|