Commit 8d619bea by guojuxing

联合商户列表

parent 2b83b598
......@@ -272,7 +272,7 @@ public class UnionEnterpriseAuthController {
public RestResponse channelResource(Integer resourceGroupId, Integer enterpriseId) {
Integer ownEnterpriseId = UserDetailUtils.getUserDetail().getEnterpriseId();
UnionEnterpriseAuthDTO old = checkUnionEnterpriseAuth(ownEnterpriseId, enterpriseId);
if (old.getResourceGroupId() != null && !old.getResourceGroupId().equals(resourceGroupId)) {
return RestResponse.failure(ErrorCode.PARAMETER_ERROR.getCode(), "资源组数据错误,与联合商户授权资源不相符");
}
......@@ -550,7 +550,7 @@ public class UnionEnterpriseAuthController {
private UnionEnterpriseAuthDTO checkUnionEnterpriseAuth(Integer ownEnterpriseId, Integer unionEnterpriseId) {
ServiceResponse<UnionEnterpriseAuthDTO> unionResponse = unionEnterpriseAuthApiService
.getUnionEnterpriseAuth(ownEnterpriseId, unionEnterpriseId);
if (unionResponse.isSuccess()) {
if (!unionResponse.isSuccess()) {
throw new CommonException(ErrorCode.PARAMETER_ERROR.getCode(), "联合记录不存在");
}
return unionResponse.getResult();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment