无关风月
2024-09-03 56dfe0d4bf81262622a1919cceb2b039fd356209
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
48
49
50
51
52
53
54
55
56
57
58
package com.ruoyi.management.controller;
 
 
import com.ruoyi.common.core.domain.R;
import com.ruoyi.common.core.utils.page.PageDTO;
import com.ruoyi.common.security.service.TokenService;
import com.ruoyi.management.domain.dto.*;
import com.ruoyi.management.domain.vo.InventoriesSuppliesVO;
import com.ruoyi.management.domain.vo.SlGoodsMaterialsVO;
import com.ruoyi.management.service.InventoriesSuppliesService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
 
import org.springframework.web.bind.annotation.RestController;
 
import javax.annotation.Resource;
 
/**
 * <p>
 * 物资盘点 前端控制器
 * </p>
 *
 * @author hjl
 * @since 2024-07-01
 */
@RestController
@RequestMapping("/inventories-supplies")
@Api(value = "物资盘点接口", tags = "物资盘点接口", description = "物资盘点接口")
public class InventoriesSuppliesController {
    @Resource
    private TokenService tokenService;
    @Resource
    private InventoriesSuppliesService inventoriesSuppliesService;
    @PostMapping("/getInventoriesSuppliesList")
    @ApiOperation(value = "分页获物资盘点")
    public R<PageDTO<InventoriesSuppliesVO>> getInventoriesSuppliesList(@RequestBody InventoriesSuppliesQuery inventoriesSuppliesQuery) {
        tokenService.getLoginUser();
        return R.ok(inventoriesSuppliesService.getInventoriesSuppliesList(inventoriesSuppliesQuery));
    }
 
    @PostMapping("/addInventoriesSupp")
    @ApiOperation(value = "添加物资盘点")
    public R addInventoriesSupp(@RequestBody InventoriesSuppDTO inventoriesSuppDTO) {
        tokenService.getLoginUser();
        inventoriesSuppliesService.addInventoriesSupp(inventoriesSuppDTO);
        return R.ok();
    }
 
 
 
 
 
 
 
}