产品信息修改、分页查询,增加操作日志
parent
4a902327e9
commit
4f13fb3365
|
|
@ -5,6 +5,7 @@ import com.njzscloud.common.mp.support.PageParam;
|
||||||
import com.njzscloud.common.mp.support.PageResult;
|
import com.njzscloud.common.mp.support.PageResult;
|
||||||
import com.njzscloud.supervisory.goods.pojo.entity.GoodsInfoEntity;
|
import com.njzscloud.supervisory.goods.pojo.entity.GoodsInfoEntity;
|
||||||
import com.njzscloud.supervisory.goods.service.GoodsInfoService;
|
import com.njzscloud.supervisory.goods.service.GoodsInfoService;
|
||||||
|
import com.njzscloud.supervisory.sys.log.annotation.Log;
|
||||||
import lombok.RequiredArgsConstructor;
|
import lombok.RequiredArgsConstructor;
|
||||||
import lombok.extern.slf4j.Slf4j;
|
import lombok.extern.slf4j.Slf4j;
|
||||||
import org.springframework.web.bind.annotation.*;
|
import org.springframework.web.bind.annotation.*;
|
||||||
|
|
@ -34,6 +35,7 @@ public class GoodsInfoController {
|
||||||
/**
|
/**
|
||||||
* 修改
|
* 修改
|
||||||
*/
|
*/
|
||||||
|
@Log("产品信息修改")
|
||||||
@PostMapping("/modify")
|
@PostMapping("/modify")
|
||||||
public R<?> modify(@RequestBody GoodsInfoEntity goodsInfoEntity) {
|
public R<?> modify(@RequestBody GoodsInfoEntity goodsInfoEntity) {
|
||||||
goodsInfoService.modify(goodsInfoEntity);
|
goodsInfoService.modify(goodsInfoEntity);
|
||||||
|
|
@ -60,6 +62,7 @@ public class GoodsInfoController {
|
||||||
/**
|
/**
|
||||||
* 分页查询
|
* 分页查询
|
||||||
*/
|
*/
|
||||||
|
@Log("产品信息分页查询")
|
||||||
@GetMapping("/paging")
|
@GetMapping("/paging")
|
||||||
public R<PageResult<GoodsInfoEntity>> paging(PageParam pageParam, GoodsInfoEntity goodsInfoEntity) {
|
public R<PageResult<GoodsInfoEntity>> paging(PageParam pageParam, GoodsInfoEntity goodsInfoEntity) {
|
||||||
return R.success(goodsInfoService.paging(pageParam, goodsInfoEntity));
|
return R.success(goodsInfoService.paging(pageParam, goodsInfoEntity));
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue