产品信息修改、分页查询,增加操作日志
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.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));
|
||||
|
|
|
|||
Loading…
Reference in New Issue