Commit 2a0c5e77 by 陶光胜

Merge branch 'developer' of…

Merge branch 'developer' of http://115.159.76.241/base_platform_enterprise/gic-enterprise-base into developer
parents 6f02d073 d8dfbf70
......@@ -27,7 +27,7 @@ public class ResultControllerUtils {
if (response.isSuccess()) {
return RestResponse.success(response.getResult());
} else {
throw new CommonException(response);
return RestResponse.failure(response.getCode(), response.getMessage());
}
}
......@@ -96,7 +96,7 @@ public class ResultControllerUtils {
page.setResult(EntityUtil.changeEntityListNew(clazz, page.getResult()));
return RestResponse.success(page);
} else {
throw new CommonException(response);
return RestResponse.failure(response.getCode(), response.getMessage());
}
}
......@@ -113,7 +113,7 @@ public class ResultControllerUtils {
if (response.isSuccess()) {
return RestResponse.success(EntityUtil.changeEntityListNew(clazz, (List<?>) response.getResult()));
} else {
throw new CommonException(response);
return RestResponse.failure(response.getCode(), response.getMessage());
}
}
}
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