Commit dde08473 by 崔彦峰

refactor(perfSalary): 优化推荐审核服务的异常处理和响应转换

- 使用 CommonUtil.convertRopResponse 统一转换远程调用响应
- 将通用 Exception 捕获改为更具体的 RpcServiceException
- 简化了服务层的错误处理逻辑
- 提高了代码的一致性和可维护性
1 parent e19e50bf
...@@ -81,9 +81,6 @@ public class EffectiveReferralReviewService { ...@@ -81,9 +81,6 @@ public class EffectiveReferralReviewService {
dto.setUpdatedBy(loginUserInfo.getName()); dto.setUpdatedBy(loginUserInfo.getName());
dto.setPhone(loginUserInfo.getPhone()); dto.setPhone(loginUserInfo.getPhone());
RpcResponse<Boolean> response = effectiveReferralReviewMiniprogramRemote.effectiveReferralStoreSubmit(dto); RpcResponse<Boolean> response = effectiveReferralReviewMiniprogramRemote.effectiveReferralStoreSubmit(dto);
if (!response.isSuccess()) { return CommonUtil.convertRopResponse(response);
return RopResponse.error(response.getError());
}
return RopResponse.success(response.getResult());
} }
} }
\ No newline at end of file \ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!