...
|
...
|
@@ -165,7 +165,8 @@ public class ProductSearchController { |
|
|
@IgnoreSession
|
|
|
public ApiResponse searchSaleCalendar(@RequestParam(value = "uid", required = false)Integer uid,
|
|
|
@RequestParam(value = "start_time", required = false)String startTime,
|
|
|
@RequestParam(value = "end_time", required = false)String endTime) {
|
|
|
@RequestParam(value = "end_time", required = false)String endTime,
|
|
|
@RequestParam(value = "app_version", required = false)String appVersion) {
|
|
|
if (StringUtils.isBlank(startTime) || StringUtils.isBlank(endTime)) {
|
|
|
return new ApiResponse.ApiResponseBuilder().code(400).message("参数错误!").data(null).build();
|
|
|
}
|
...
|
...
|
@@ -176,7 +177,7 @@ public class ProductSearchController { |
|
|
return new ApiResponse.ApiResponseBuilder().code(400).message("参数错误!").data(null).build();
|
|
|
}
|
|
|
JSONObject productJson = productSearchService.searchSaleCalendar(start, end);
|
|
|
productSearchService.processUserFavoriteProductList(productJson, uid);
|
|
|
productSearchService.processUserFavoriteProductList(productJson, uid, appVersion);
|
|
|
return new ApiResponse.ApiResponseBuilder().code(200).message("product.search.saleCalendar").data(productJson).build();
|
|
|
}
|
|
|
|
...
|
...
|
@@ -196,7 +197,8 @@ public class ProductSearchController { |
|
|
public ApiResponse searchNewSaleCalendar(@RequestParam(value = "uid", required = false)Integer uid,
|
|
|
@RequestParam(value = "start_time", required = false)String startTime,
|
|
|
@RequestParam(value = "end_time", required = false)String endTime,
|
|
|
@RequestParam(value = "type", required = false)String type) {
|
|
|
@RequestParam(value = "type", required = false)String type,
|
|
|
@RequestParam(value = "app_version", required = false)String appVersion) {
|
|
|
if (StringUtils.isBlank(startTime) || StringUtils.isBlank(endTime)) {
|
|
|
return new ApiResponse.ApiResponseBuilder().code(400).message("参数错误!").data(null).build();
|
|
|
}
|
...
|
...
|
@@ -207,7 +209,7 @@ public class ProductSearchController { |
|
|
return new ApiResponse.ApiResponseBuilder().code(400).message("参数错误!").data(null).build();
|
|
|
}
|
|
|
JSONObject productJson = productSearchService.searchNewSaleCalendar(start, end, type);
|
|
|
productSearchService.processUserFavoriteProductList(productJson, uid);
|
|
|
productSearchService.processUserFavoriteProductList(productJson, uid, appVersion);
|
|
|
return new ApiResponse.ApiResponseBuilder().code(200).message("product.search.newSaleCalendar").data(productJson).build();
|
|
|
}
|
|
|
|
...
|
...
|
|