...
|
...
|
@@ -84,15 +84,15 @@ public class ProductController { |
|
|
@ApiOperation(name = "ufo.product.storage.leastprice", desc="sku的最低价")
|
|
|
@RequestMapping(params = "method=ufo.product.storage.leastprice")
|
|
|
//@Cachable(expire=600)
|
|
|
public ApiResponse queryStorageLeastprice(
|
|
|
public StorageLeastPriceResp queryStorageLeastprice(
|
|
|
@RequestParam(value = "storage_id", required = true) Integer storageId) {
|
|
|
|
|
|
if (storageId == null) {
|
|
|
return new ApiResponse(500, "storageId Is Null", null);
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
StorageLeastPriceResp resp = productService.queryStorageLeastPrice(storageId);
|
|
|
return new ApiResponse.ApiResponseBuilder().data(queryStorageLeastprice()).code(200).message("storage.leastprice").build();
|
|
|
return queryStorageLeastprice();
|
|
|
}
|
|
|
|
|
|
|
...
|
...
|
@@ -105,16 +105,16 @@ public class ProductController { |
|
|
@ApiOperation(name = "ufo.product.storage.data", desc="sku信息")
|
|
|
@RequestMapping(params = "method=ufo.product.storage.data")
|
|
|
//@Cachable(expire=600)
|
|
|
public ApiResponse queryStorageInfo(
|
|
|
public StorageDataResp queryStorageInfo(
|
|
|
@RequestParam(value = "storage_id", required = true) Integer storageId) {
|
|
|
|
|
|
if (storageId == null) {
|
|
|
return new ApiResponse(500, "storageId Is Null", null);
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
StorageDataResp resp = productService.queryStorageInfo(storageId);
|
|
|
|
|
|
return new ApiResponse.ApiResponseBuilder().data(queryStorageData()).code(200).message("storage.data").build();
|
|
|
return queryStorageData();
|
|
|
}
|
|
|
|
|
|
|
...
|
...
|
|