| | |
| | | return AjaxResult.success(stockInRecordService.batchDeletePending(ids)); |
| | | } |
| | | |
| | | @PutMapping("{id}") |
| | | @Operation(summary = "修改入库记录") |
| | | public AjaxResult update(@PathVariable Long id, @RequestBody StockInRecordDto stockInRecordDto){ |
| | | return AjaxResult.success(stockInRecordService.update(id,stockInRecordDto)); |
| | | } |
| | | |
| | | |
| | | |
| | | @PostMapping("/exportStockInRecord") |
| | | @Operation(summary = "导出入库记录") |
| | | public void exportStockInRecord(HttpServletResponse response, StockInRecordDto stockInRecordDto) { |
| | |
| | | if(CollectionUtils.isEmpty(approveDto.getIds())){ |
| | | return AjaxResult.error("请选择至少一条数据"); |
| | | } |
| | | stockInRecordService.batchApprove(approveDto.getIds(), approveDto.getApprovalStatus()); |
| | | stockInRecordService.batchApprove(approveDto.getIds(), approveDto.getApprovalStatus(),approveDto.getWarehouseInfoId()); |
| | | return AjaxResult.success(); |
| | | } |
| | | |