Commit 4bceae29 by zhiwj

添加注释

parent f76e213f
......@@ -29,7 +29,7 @@ public class StoreGroupController {
public RestResponse listStoreGroup() {
StoreGroupDTO dto = new StoreGroupDTO();
dto.setEnterpriseId(StoreGroupConstant.TEST_ENTERPRISE_ID);
List<StoreGroupDTO> list = storeGroupApiService.listStoreGroup(dto);
List<StoreGroupDTO> list = storeGroupApiService.listStoreGroup(dto).getResult();
return RestResponse.success(ChangeListToTree.changeListToTreeNotIncludeAllStore(StoreGroupConstant.ALL_STORE_LEVEL, list));
}
}
......@@ -29,7 +29,7 @@ public class GlobalExceptionHandler {
@ExceptionHandler(Exception.class)
public RestResponse controllerException(HttpServletResponse response, Exception ex) {
logger.error("err", ex);
RestResponse failureResponse = getRestResponse(StoreGroupErrorEnum.Error.getCode(), StoreGroupErrorEnum.Error.getMessage());
RestResponse failureResponse = getRestResponse(StoreGroupErrorEnum.ERROR.getCode(), StoreGroupErrorEnum.ERROR.getMessage());
StringBuilder sb = new StringBuilder();
ByteArrayOutputStream baos = new ByteArrayOutputStream();
try (PrintWriter printWriter = new PrintWriter(baos)) {
......@@ -63,7 +63,7 @@ public class GlobalExceptionHandler {
.append(fieldError.getDefaultMessage())
.append(",");
});
return getRestResponse(StoreGroupErrorEnum.Error.getCode(), errorMessage.toString());
return getRestResponse(StoreGroupErrorEnum.ERROR.getCode(), errorMessage.toString());
}
/**
......
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