10 小时以前 55d694aaae4e421b5e55cd941500e08f85cb5d4d
src/main/java/com/ruoyi/sales/controller/SalesLedgerController.java
@@ -166,6 +166,24 @@
        return toAjax(salesLedgerService.addOrUpdateSalesLedger(salesLedgerDto));
    }
    @PostMapping("/createFrameworkOrder")
    @Operation(summary = "创建框架订单")
    public AjaxResult createFrameworkOrder(@RequestBody SalesLedgerDto salesLedgerDto) {
        return toAjax(salesLedgerService.createFrameworkOrder(salesLedgerDto));
    }
    @GetMapping("/listFrameworkOrders")
    @Operation(summary = "查询框架合同下的框架订单")
    public AjaxResult listFrameworkOrders(@RequestParam("parentContractId") Long parentContractId) {
        return AjaxResult.success(salesLedgerService.listFrameworkOrders(parentContractId));
    }
    @GetMapping("/frameworkContractShippedQuantity")
    @Operation(summary = "查询框架合同累计已发货数量")
    public AjaxResult frameworkContractShippedQuantity(@RequestParam("parentContractId") Long parentContractId) {
        return AjaxResult.success(salesLedgerService.getFrameworkContractShippedQuantity(parentContractId));
    }
    /**
     * 删除销售台账
     */