liyong
2026-05-09 4402a6e3befe0c33e8f3b58641984fce3fdb0bbc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
package com.ruoyi.stock.controller;
 
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ruoyi.framework.web.domain.R;
import com.ruoyi.stock.dto.StockInventoryCheckMainDto;
import com.ruoyi.stock.service.StockInventoryCheckMainService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
 
/**
 * <p>
 * 库存盘点主表 前端控制器
 * </p>
 *
 * @author 芯导软件(江苏)有限公司
 * @since 2026-05-09 09:57:53
 */
@RestController
@RequestMapping("/stockInventoryCheckMain")
@AllArgsConstructor
@Tag(name = "库存盘点主表")
public class StockInventoryCheckMainController {
 
    private final StockInventoryCheckMainService stockInventoryCheckMainService;
 
    @GetMapping("/listPage")
    @Operation(summary = "分页查询库存盘点主表")
    public R listPage(Page  page, StockInventoryCheckMainDto stockInventoryCheckMainDto) {
        return R.ok(stockInventoryCheckMainService.listPage(page, stockInventoryCheckMainDto));
    }
 
    @GetMapping("/add")
    @Operation(summary = "添加库存盘点主表")
    public R add(StockInventoryCheckMainDto stockInventoryCheckMainDto) {
        return R.ok(stockInventoryCheckMainService.add(stockInventoryCheckMainDto));
    }
    @GetMapping("/edit")
    @Operation(summary = "修改库存盘点主表")
    public R edit(StockInventoryCheckMainDto stockInventoryCheckMainDto) {
        return stockInventoryCheckMainService.updateStockInventoryCheckMainDtoById(stockInventoryCheckMainDto);
    }
 
}