| | |
| | | stockInService.saveStockin(stockIn); |
| | | return AjaxResult.success(); |
| | | } |
| | | @PostMapping("/addstockinList") |
| | | public AjaxResult addstockinList(@RequestBody List<StockIn> stockInList) { |
| | | stockInService.addstockin(stockInList); |
| | | return AjaxResult.success(); |
| | | } |
| | | |
| | | @GetMapping("/{id}")// 根据ID获取入库记录 |
| | | public AjaxResult getStockInById(@PathVariable Long id) { |
| | |
| | | public void export(HttpServletResponse response, StockinDto stockinDto) { |
| | | stockInService.stockinExport(response, stockinDto); |
| | | } |
| | | @PostMapping("/batchSave") |
| | | public AjaxResult batchSaveStockin(@RequestBody List<StockIn> stockInList) { |
| | | stockInService.batchSaveStockin(stockInList); |
| | | return AjaxResult.success(); |
| | | } |
| | | } |