...
|
...
|
@@ -85,7 +85,18 @@ public class SizePoolController { |
|
|
|
|
|
PageResponseBO<SizePoolResp> result = sizePoolService.querySizePoolList(req);
|
|
|
|
|
|
return new ApiResponse.ApiResponseBuilder().code(200).data(result).build();
|
|
|
return new ApiResponse.ApiResponseBuilder().code(200).data(result == null ? "数据为空" : result).build();
|
|
|
}
|
|
|
|
|
|
@RequestMapping(value = "/updateSizePoolStatus")
|
|
|
public ApiResponse updateSizePoolStatus(@RequestBody SizePoolRequest bo) {
|
|
|
LOGGER.info(" Method updateSizePoolStatus in.");
|
|
|
int result = sizePoolService.updateSizePoolStatus(bo);
|
|
|
|
|
|
if(result == 0) {
|
|
|
return new ApiResponse.ApiResponseBuilder().code(200).message("更新失败").build();
|
|
|
}
|
|
|
return new ApiResponse.ApiResponseBuilder().code(200).build();
|
|
|
}
|
|
|
|
|
|
} |
...
|
...
|
|