提交 f0675db8 编写于 作者: M macro

Update SmsHomeNewProductController.java

上级 66e6e874
......@@ -26,8 +26,8 @@ public class SmsHomeNewProductController {
@ApiOperation("添加首页推荐品牌")
@RequestMapping(value = "/create", method = RequestMethod.POST)
@ResponseBody
public CommonResult create(@RequestBody List<SmsHomeNewProduct> homeBrandList) {
int count = homeNewProductService.create(homeBrandList);
public CommonResult create(@RequestBody List<SmsHomeNewProduct> homeNewProductList) {
int count = homeNewProductService.create(homeNewProductList);
if (count > 0) {
return CommonResult.success(count);
}
......@@ -74,7 +74,7 @@ public class SmsHomeNewProductController {
@RequestParam(value = "recommendStatus", required = false) Integer recommendStatus,
@RequestParam(value = "pageSize", defaultValue = "5") Integer pageSize,
@RequestParam(value = "pageNum", defaultValue = "1") Integer pageNum) {
List<SmsHomeNewProduct> homeBrandList = homeNewProductService.list(productName, recommendStatus, pageSize, pageNum);
return CommonResult.success(CommonPage.restPage(homeBrandList));
List<SmsHomeNewProduct> homeNewProductList = homeNewProductService.list(productName, recommendStatus, pageSize, pageNum);
return CommonResult.success(CommonPage.restPage(homeNewProductList));
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册