|
|
@ -8,6 +8,7 @@ import com.elink.esua.epdc.commons.mybatis.service.impl.BaseServiceImpl; |
|
|
import com.elink.esua.epdc.commons.tools.constant.NumConstant; |
|
|
import com.elink.esua.epdc.commons.tools.constant.NumConstant; |
|
|
import com.elink.esua.epdc.commons.tools.constant.OrganizationTypeConstant; |
|
|
import com.elink.esua.epdc.commons.tools.constant.OrganizationTypeConstant; |
|
|
import com.elink.esua.epdc.commons.tools.constant.StrConstant; |
|
|
import com.elink.esua.epdc.commons.tools.constant.StrConstant; |
|
|
|
|
|
import com.elink.esua.epdc.commons.tools.exception.ErrorCode; |
|
|
import com.elink.esua.epdc.commons.tools.exception.RenException; |
|
|
import com.elink.esua.epdc.commons.tools.exception.RenException; |
|
|
import com.elink.esua.epdc.commons.tools.redis.RedisUtils; |
|
|
import com.elink.esua.epdc.commons.tools.redis.RedisUtils; |
|
|
import com.elink.esua.epdc.commons.tools.redis.UserDetailRedis; |
|
|
import com.elink.esua.epdc.commons.tools.redis.UserDetailRedis; |
|
|
@ -78,6 +79,9 @@ public class OptSysDeptServiceImpl extends BaseServiceImpl<OptSysDeptDao, OptSys |
|
|
@Override |
|
|
@Override |
|
|
public DeptLevelAndLeaderDTO getDeptLevelById(Long deptId) { |
|
|
public DeptLevelAndLeaderDTO getDeptLevelById(Long deptId) { |
|
|
OptSysDeptEntity dept = baseDao.selectById(deptId); |
|
|
OptSysDeptEntity dept = baseDao.selectById(deptId); |
|
|
|
|
|
if (null == dept) { |
|
|
|
|
|
throw new RenException(ErrorCode.INVALID_ERROR, "部门ID"); |
|
|
|
|
|
} |
|
|
return packCompleteDeptLevel(dept.getId(), dept.getPids()); |
|
|
return packCompleteDeptLevel(dept.getId(), dept.getPids()); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|