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(String id){
|
return sysEmbedmentGoodsService.findAllDetails(id);
|
}
|
|
//查询dict类型
|
@GetMapping("/getType")
|
public BasicResult getType(){
|
return sysEmbedmentGoodsService.getType();
|
}
|
|
}
|