| | |
| | | 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)); |
| | | } |
| | | |
| | | /** |
| | | * 删除销售台账 |
| | | */ |