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);
|
}
|
}
|