huminmin
21 小时以前 2c2605a1297882bf88c3c86313ee37797854689b
src/main/java/com/ruoyi/purchase/controller/PurchaseLedgerController.java
@@ -7,6 +7,7 @@
import com.ruoyi.framework.aspectj.lang.enums.BusinessType;
import com.ruoyi.framework.web.controller.BaseController;
import com.ruoyi.framework.web.domain.AjaxResult;
import com.ruoyi.framework.web.domain.R;
import com.ruoyi.framework.web.page.TableDataInfo;
import com.ruoyi.purchase.dto.PurchaseLedgerDto;
import com.ruoyi.purchase.dto.PurchaseStockInDto;
@@ -138,6 +139,13 @@
        return toAjax(purchaseLedgerService.addOrEditPurchase(purchaseLedgerDto));
    }
    @Operation(summary = "批量推进采购台账到入库")
    @Log(title = "批量推进采购台账到入库", businessType = BusinessType.OTHER)
    @PostMapping("/batchInsertPurchaseSteps")
    public R batchInsertPurchaseSteps(@RequestBody PurchaseLedgerDto purchaseLedgerDto) {
        return purchaseLedgerService.batchInsertPurchaseSteps(purchaseLedgerDto == null ? null : purchaseLedgerDto.getIds());
    }
    /**
     * 查询采购模板
     */
@@ -253,6 +261,8 @@
    }
    @PostMapping("/manualStockIn")
    @Log(title = "手动入库", businessType = BusinessType.OTHER)
    @Operation(summary = "手动入库")
    public AjaxResult manualStockIn(@RequestBody PurchaseStockInDto purchaseStockInDto) {
        return toAjax(purchaseLedgerService.manualStockIn(purchaseStockInDto));
    }