Commit 16a3308d authored by macro's avatar macro
Browse files

Update SmsHomeRecommendProductController.java

parent 58f75d72
...@@ -26,8 +26,8 @@ public class SmsHomeRecommendProductController { ...@@ -26,8 +26,8 @@ public class SmsHomeRecommendProductController {
@ApiOperation("添加首页推荐") @ApiOperation("添加首页推荐")
@RequestMapping(value = "/create", method = RequestMethod.POST) @RequestMapping(value = "/create", method = RequestMethod.POST)
@ResponseBody @ResponseBody
public CommonResult create(@RequestBody List<SmsHomeRecommendProduct> homeBrandList) { public CommonResult create(@RequestBody List<SmsHomeRecommendProduct> homeRecommendProductList) {
int count = recommendProductService.create(homeBrandList); int count = recommendProductService.create(homeRecommendProductList);
if (count > 0) { if (count > 0) {
return CommonResult.success(count); return CommonResult.success(count);
} }
...@@ -74,7 +74,7 @@ public class SmsHomeRecommendProductController { ...@@ -74,7 +74,7 @@ public class SmsHomeRecommendProductController {
@RequestParam(value = "recommendStatus", required = false) Integer recommendStatus, @RequestParam(value = "recommendStatus", required = false) Integer recommendStatus,
@RequestParam(value = "pageSize", defaultValue = "5") Integer pageSize, @RequestParam(value = "pageSize", defaultValue = "5") Integer pageSize,
@RequestParam(value = "pageNum", defaultValue = "1") Integer pageNum) { @RequestParam(value = "pageNum", defaultValue = "1") Integer pageNum) {
List<SmsHomeRecommendProduct> homeBrandList = recommendProductService.list(productName, recommendStatus, pageSize, pageNum); List<SmsHomeRecommendProduct> homeRecommendProductList = recommendProductService.list(productName, recommendStatus, pageSize, pageNum);
return CommonResult.success(CommonPage.restPage(homeBrandList)); return CommonResult.success(CommonPage.restPage(homeRecommendProductList));
} }
} }
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment