产品信息修改、分页查询,增加操作日志

localizer
ljw 2025-10-27 16:49:20 +08:00
parent 4a902327e9
commit 4f13fb3365
1 changed files with 3 additions and 0 deletions

View File

@ -5,6 +5,7 @@ import com.njzscloud.common.mp.support.PageParam;
import com.njzscloud.common.mp.support.PageResult;
import com.njzscloud.supervisory.goods.pojo.entity.GoodsInfoEntity;
import com.njzscloud.supervisory.goods.service.GoodsInfoService;
import com.njzscloud.supervisory.sys.log.annotation.Log;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.*;
@ -34,6 +35,7 @@ public class GoodsInfoController {
/**
*
*/
@Log("产品信息修改")
@PostMapping("/modify")
public R<?> modify(@RequestBody GoodsInfoEntity goodsInfoEntity) {
goodsInfoService.modify(goodsInfoEntity);
@ -60,6 +62,7 @@ public class GoodsInfoController {
/**
*
*/
@Log("产品信息分页查询")
@GetMapping("/paging")
public R<PageResult<GoodsInfoEntity>> paging(PageParam pageParam, GoodsInfoEntity goodsInfoEntity) {
return R.success(goodsInfoService.paging(pageParam, goodsInfoEntity));