huminmin
2 天以前 02047d917004c8f7dc44627c847583e54c297226
src/main/java/com/ruoyi/stock/controller/StockInRecordController.java
@@ -61,12 +61,23 @@
    @PostMapping("/approve")
    @Log(title = "入库管理-审批入库", businessType = BusinessType.UPDATE)
    @Operation(summary = "批量审批入库记录")
    @Operation(summary = "批量审批入库记录(支持修改入库数量)")
    public AjaxResult approve(@RequestBody StockInRecordDto approveDto) {
        if(CollectionUtils.isEmpty(approveDto.getItems())){
            return AjaxResult.error("请选择至少一条数据");
        }
        stockInRecordService.batchApprove(approveDto.getApprovalStatus(), approveDto.getItems());
        return AjaxResult.success();
    }
    @PostMapping("/reAudit")
    @Log(title = "入库管理-反审入库", businessType = BusinessType.UPDATE)
    @Operation(summary = "批量反审入库记录")
    public AjaxResult reAudit(@RequestBody StockInRecordDto approveDto) {
        if(CollectionUtils.isEmpty(approveDto.getIds())){
            return AjaxResult.error("请选择至少一条数据");
        }
        stockInRecordService.batchApprove(approveDto.getIds(), approveDto.getApprovalStatus());
        stockInRecordService.batchReAudit(approveDto.getIds());
        return AjaxResult.success();
    }