gongchunyi
18 小时以前 3481d209ec847542b73fa16616ffe0e13c949e80
src/main/java/com/ruoyi/purchase/controller/PurchaseLedgerController.java
@@ -11,6 +11,7 @@
import com.ruoyi.framework.web.domain.AjaxResult;
import com.ruoyi.framework.web.page.TableDataInfo;
import com.ruoyi.purchase.dto.PurchaseLedgerDto;
import com.ruoyi.purchase.dto.PurchaseScanStockDto;
import com.ruoyi.purchase.mapper.PurchaseLedgerTemplateMapper;
import com.ruoyi.purchase.mapper.SalesLedgerProductTemplateMapper;
import com.ruoyi.purchase.pojo.PurchaseLedger;
@@ -189,6 +190,14 @@
    }
    /**
     * 查询采购台账和产品父子列表
     */
    @GetMapping("/getPurchaseByCode")
    public PurchaseLedgerDto getPurchaseByCode(PurchaseLedgerDto purchaseLedgerDto) {
        return purchaseLedgerService.getPurchaseByCode(purchaseLedgerDto);
    }
    /**
     * 删除采购台账
     */
    @Log(title = "采购台账", businessType = BusinessType.DELETE)
@@ -260,4 +269,32 @@
    public AjaxResult createPurchaseNo() {
        return AjaxResult.success("生成成功",purchaseLedgerService.getPurchaseNo());
    }
    @PostMapping("/scanInbound")
    @ApiOperation("采购订单扫码-合格入库")
    public AjaxResult scanInbound(@RequestBody PurchaseScanStockDto dto) {
        purchaseLedgerService.scanInbound(dto);
        return AjaxResult.success();
    }
    @PostMapping("/scanInboundUnqualified")
    @ApiOperation("采购订单扫码-不合格入库")
    public AjaxResult scanInboundUnqualified(@RequestBody PurchaseScanStockDto dto) {
        purchaseLedgerService.scanInboundUnqualified(dto);
        return AjaxResult.success();
    }
    @PostMapping("/scanOutbound")
    @ApiOperation("采购订单扫码-合格出库")
    public AjaxResult scanOutbound(@RequestBody PurchaseScanStockDto dto) {
        purchaseLedgerService.scanOutbound(dto);
        return AjaxResult.success();
    }
    @PostMapping("/scanOutboundUnqualified")
    @ApiOperation("采购订单扫码-不合格出库")
    public AjaxResult scanOutboundUnqualified(@RequestBody PurchaseScanStockDto dto) {
        purchaseLedgerService.scanOutboundUnqualified(dto);
        return AjaxResult.success();
    }
}