gongchunyi
11 小时以前 6b4cfc6f9d660b92be99ba4e3411a3267bc57155
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;
@@ -268,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();
    }
}