邱宇豪
2023-09-22 07a07e9072946498a7d37c7345f83f9021f5deeb
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
package com.thhy.materials.modules.biz.embedment.controller;
 
import com.thhy.general.common.BasicResult;
import com.thhy.materials.modules.biz.embedment.dto.EmbedmentGoodsDto;
import com.thhy.materials.modules.biz.embedment.entity.SysEmbedmentGoodsEntity;
import com.thhy.materials.modules.biz.embedment.service.SysEmbedmentGoodsService;
import org.springframework.beans.factory.annotation.Autowired;
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.servlet.http.HttpServletResponse;
 
/**
 * @Author QiuYuHao
 * @CreateDate 2023-09-22 15:33:44
 * 库存管理
 */
@RestController
@RequestMapping(value = "embedmentInventoryManagement")
public class SysInventoryManagementController {
 
    @Autowired
    private SysEmbedmentGoodsService sysEmbedmentGoodsService;
 
    @PostMapping("/findAll")
    public BasicResult findAll(@RequestBody EmbedmentGoodsDto embedmentGoodsDto){
        return sysEmbedmentGoodsService.findAll(embedmentGoodsDto);
    }
 
 
    @PostMapping("/export")
    public void export(@RequestBody EmbedmentGoodsDto embedmentGoodsDto, HttpServletResponse response){
        sysEmbedmentGoodsService.export(embedmentGoodsDto,response);
    }
 
    /**
     * 预警设置
     * @param embedmentGoodsDto
     * @return
     */
    @PostMapping("/alarmSet")
    public BasicResult alarmSet(EmbedmentGoodsDto embedmentGoodsDto){
        return sysEmbedmentGoodsService.alarmSet(embedmentGoodsDto);
    }
 
    /**
     * 库存校正
     * @param embedmentGoodsDto
     * @return
     */
    @PostMapping("/inventoryCorrection")
    public BasicResult inventoryCorrection(EmbedmentGoodsDto embedmentGoodsDto){
        return sysEmbedmentGoodsService.inventoryCorrection(embedmentGoodsDto);
    }
}