Authored by Lixiaodi

修改价格查询接口

... ... @@ -132,13 +132,15 @@ public class ProductController {
@ApiOperation(name = "ufo.product.baseInfoEx", desc="出售商品,卖家出售的价格区间 供app调用")
@RequestMapping(params = "method=ufo.product.baseInfoEx")
@Cachable(expire = 180)
public ApiResponse queryProductBaseInfoEx(@RequestParam(value = "product_id") Integer productId) {
if (productId == null) {
LOG.info("in method=ufo.product.baseInfoEx productId Is Null");
public ApiResponse queryProductBaseInfoEx(@RequestParam(value = "storage_id") Integer storageId) {
if (storageId == null) {
LOG.info("in method=ufo.product.baseInfoEx storageId Is Null");
return null;
}
LOG.info("in method=ufo.product.baseInfoEx productId={}", productId);
return new ApiResponse.ApiResponseBuilder().data(productService.queryProductBaseInfo(productId)).code(200).message("product data").build();
LOG.info("in method=ufo.product.baseInfoEx storageId={}", storageId);
StorageLeastPriceResp resp = productService.queryStorageLeastPrice(storageId);
String price = (resp != null && resp.getLeastPrice() != null) ? resp.getLeastPrice().toString() : "-";
return new ApiResponse.ApiResponseBuilder().data(price).code(200).message("product data").build();
}
@ApiOperation(name = "ufo.product.storage.data", desc="sku信息")
... ...