Showing
1 changed file
with
2 additions
and
7 deletions
@@ -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 | } |
-
Please register or login to post a comment