Authored by mali

尺码图片增加缓存

@@ -1018,13 +1018,8 @@ public class ProductController { @@ -1018,13 +1018,8 @@ public class ProductController {
1018 @Cachable(expire = 300) 1018 @Cachable(expire = 300)
1019 public ApiResponse getSizeImage(@RequestParam(value = "product_id") Integer productId, 1019 public ApiResponse getSizeImage(@RequestParam(value = "product_id") Integer productId,
1020 @RequestParam(value = "brand_id") Integer brandId) { 1020 @RequestParam(value = "brand_id") Integer brandId) {
1021 - if (null == productId || null == brandId) {  
1022 - LOG.info("in method=ufo.product.sizeImage product_id and brand_id is Null or empty");  
1023 - return new ApiResponse(400, "product_id and brand_id is Null or empty", null);  
1024 - }  
1025 - LOG.info("in method=ufo.product.sizeImage product_id is {}", productId);  
1026 -  
1027 - SizeImageResp result =productService.getSizeImage(productId, brandId); 1021 + LOG.info("in method=ufo.product.sizeImage product_id is {}, brandId is {}", productId, brandId);
  1022 + SizeImageResp result = productService.getSizeImage(productId, brandId);
1028 return new ApiResponse.ApiResponseBuilder().code(200).data(result).message("getSizeImage success").build(); 1023 return new ApiResponse.ApiResponseBuilder().code(200).data(result).message("getSizeImage success").build();
1029 } 1024 }
1030 } 1025 }