Merge branch 'test6.9.17' of http://git.yoho.cn/ufo/yohoufo-fore into test6.9.17
Showing
1 changed file
with
3 additions
and
7 deletions
@@ -1015,15 +1015,11 @@ public class ProductController { | @@ -1015,15 +1015,11 @@ public class ProductController { | ||
1015 | 1015 | ||
1016 | @ApiOperation(name = "ufo.product.sizeImage", desc = "查询尺码图片") | 1016 | @ApiOperation(name = "ufo.product.sizeImage", desc = "查询尺码图片") |
1017 | @RequestMapping(params = "method=ufo.product.sizeImage") | 1017 | @RequestMapping(params = "method=ufo.product.sizeImage") |
1018 | + @Cachable(expire = 300) | ||
1018 | public ApiResponse getSizeImage(@RequestParam(value = "product_id") Integer productId, | 1019 | public ApiResponse getSizeImage(@RequestParam(value = "product_id") Integer productId, |
1019 | @RequestParam(value = "brand_id") Integer brandId) { | 1020 | @RequestParam(value = "brand_id") Integer brandId) { |
1020 | - if (null == productId || null == brandId) { | ||
1021 | - LOG.info("in method=ufo.product.sizeImage product_id and brand_id is Null or empty"); | ||
1022 | - return new ApiResponse(400, "product_id and brand_id is Null or empty", null); | ||
1023 | - } | ||
1024 | - LOG.info("in method=ufo.product.sizeImage product_id is {}", productId); | ||
1025 | - | ||
1026 | - 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); | ||
1027 | 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(); |
1028 | } | 1024 | } |
1029 | } | 1025 | } |
-
Please register or login to post a comment