| | |
| | | import com.ruoyi.inventory.dto.StockoutDto; |
| | | import com.ruoyi.inventory.mapper.StockManagementMapper; |
| | | import com.ruoyi.inventory.pojo.StockIn; |
| | | import com.ruoyi.inventory.pojo.StockManagement; |
| | | import com.ruoyi.inventory.pojo.StockOut; |
| | | import com.ruoyi.inventory.service.StockOutService; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | |
| | | @Autowired |
| | | private StockManagementMapper stockManagementMapper; |
| | | |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody StockOut stockout) { |
| | | stockOutService.saveStockout(stockout); |
| | | return AjaxResult.success(); |
| | | } |
| | | // @PostMapping("/add") |
| | | // public AjaxResult add(@RequestBody StockOut stockout) { |
| | | // stockOutService.saveStockout(stockout); |
| | | // return AjaxResult.success(); |
| | | // } |
| | | |
| | | @RequestMapping("/{id}") |
| | | public AjaxResult getStockOutById(@PathVariable Long id) { |
| | |
| | | stockOutService.delStockOut(ids); |
| | | return AjaxResult.success(); |
| | | } |
| | | |
| | | } |