邱宇豪
2023-09-25 d4ca39e076e00a768ad947f2c85b7185443c02e7
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
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.*;
 
/**
 * @Author QiuYuHao
 * @CreateDate 2023-09-22 15:26:16
 * 预埋件库存控制层
 */
@RestController
@RequestMapping(value = "embedmentGoods")
public class SysEmbedmentGoodsController {
    @Autowired
    private SysEmbedmentGoodsService sysEmbedmentGoodsService;
 
    //预埋件种类新增
    @PostMapping("/insert")
    public BasicResult insert(@RequestBody SysEmbedmentGoodsEntity sysEmbedmentGoodsEntity){
        return sysEmbedmentGoodsService.insert(sysEmbedmentGoodsEntity);
    }
 
    //预埋件种类修改
    @PostMapping("/update")
    public BasicResult update(@RequestBody SysEmbedmentGoodsEntity sysEmbedmentGoodsEntity){
        return sysEmbedmentGoodsService.update(sysEmbedmentGoodsEntity);
    }
 
    //预埋件种类查询、库存管理查询
    @PostMapping("/findAll")
    public BasicResult findAll(@RequestBody EmbedmentGoodsDto embedmentGoodsDto){
        return sysEmbedmentGoodsService.findAll(embedmentGoodsDto);
    }
 
    //查询库存单条
    @GetMapping("/findEntity")
    public BasicResult findEntity(@RequestParam String id){
        return sysEmbedmentGoodsService.findEntity(id);
    }
    //查询规格
    @GetMapping("/findAllDetails")
    public BasicResult findAllDetails(){
        return sysEmbedmentGoodsService.findAllDetails();
    }
 
    //查询dict类型
    @GetMapping("/getType")
    public BasicResult getType(){
        return sysEmbedmentGoodsService.getType();
    }
 
}