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; /** * @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); } }