|
|
@ -129,7 +129,7 @@ public class OpenUpServiceImpl implements OpenUpService { |
|
|
|
public AgencyInfoResultDTO agencyInfo(AgencyInfoFormDTO formDTO) { |
|
|
|
Result<AgencyInfoResultDTO> result = govOrgOpenFeignClient.agencyInfo(formDTO); |
|
|
|
if (!result.success()){ |
|
|
|
throw new RenException(ModuleConstant.ERROR_AGENCY); |
|
|
|
throw new RenException(result.getInternalMsg()); |
|
|
|
} |
|
|
|
return result.getData(); |
|
|
|
} |
|
|
@ -142,7 +142,7 @@ public class OpenUpServiceImpl implements OpenUpService { |
|
|
|
public OrganizeTreeResultDTO organizeTree(OrganizeTreeFormDTO formDTO) { |
|
|
|
Result<OrganizeTreeResultDTO> result = govOrgOpenFeignClient.organizeTree(formDTO.getAgencyId()); |
|
|
|
if (!result.success()){ |
|
|
|
throw new RenException(ModuleConstant.ERROR_AGENCY); |
|
|
|
throw new RenException(result.getInternalMsg()); |
|
|
|
} |
|
|
|
return result.getData(); |
|
|
|
} |
|
|
|