|
@@ -72,10 +72,8 @@ public class GoodsController extends SuperController<GoodsService, Long, Goods,
|
|
|
)
|
|
|
@PreAuth("hasPermit('{}add')")
|
|
|
public R saveGoods(@RequestBody @Validated Goods goods) {
|
|
|
- log.info("进入svaegoods");
|
|
|
log.info("goods对象" + JSON.toJSONString(goods));
|
|
|
int i = baseService.saveGoods(goods);
|
|
|
-
|
|
|
return R.success();
|
|
|
}
|
|
|
|
|
@@ -88,7 +86,6 @@ public class GoodsController extends SuperController<GoodsService, Long, Goods,
|
|
|
)
|
|
|
@PreAuth("hasPermit('{}update')")
|
|
|
public R updateGoods(@RequestBody @Validated Goods goods) {
|
|
|
- log.info("进入updateGoods");
|
|
|
log.info("goods对象" + JSON.toJSONString(goods));
|
|
|
int i = baseService.updateGoods(goods);
|
|
|
|
|
@@ -105,7 +102,6 @@ public class GoodsController extends SuperController<GoodsService, Long, Goods,
|
|
|
)
|
|
|
@PreAuth("hasPermit('{}view')")
|
|
|
public R<IPage<Goods>> page(@RequestBody @Validated PageParams<GoodsPageDTO> params) {
|
|
|
- log.info("进入goods/page方法 参数=" + params);
|
|
|
IPage<Goods> goodsPage = baseService.selcetPage(params);
|
|
|
return this.success(goodsPage);
|
|
|
}
|