Commit e43e70a5 by guojuxing

controller统一返回工具类修改

parent 93c7be76
......@@ -128,7 +128,7 @@ public class ResultControllerUtils {

 */
public static RestResponse commonResultOne(ServiceResponse response, Class<?> clazz) {
if (response.isSuccess()) {
return RestResponse.success(EntityUtil.changeEntityNew(clazz, (List<?>) response.getResult()));
return RestResponse.success(EntityUtil.changeEntityNew(clazz, response.getResult()));
} else {
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