| | |
| | | */ |
| | | @PostMapping("/updateApprovalStatus") |
| | | public AjaxResult addOrEditPurchase(@RequestBody PurchaseLedger purchaseLedger){ |
| | | |
| | | return toAjax(purchaseLedgerService.updateById(purchaseLedger)); |
| | | } |
| | | /** |
| | |
| | | @GetMapping("/getPurchaseById") |
| | | public PurchaseLedgerDto getPurchaseById(PurchaseLedgerDto purchaseLedgerDto) { |
| | | return purchaseLedgerService.getPurchaseById(purchaseLedgerDto); |
| | | } |
| | | |
| | | /** |
| | | * 查询采购台账和产品父子列表 |
| | | */ |
| | | @GetMapping("/getPurchaseByCode") |
| | | public PurchaseLedgerDto getPurchaseByCode(PurchaseLedgerDto purchaseLedgerDto) { |
| | | return purchaseLedgerService.getPurchaseByCode(purchaseLedgerDto); |
| | | } |
| | | |
| | | /** |
| | |
| | | return AjaxResult.success(purchaseLedgerService.selectPurchaseLedgerListPage(page, purchaseLedger)); |
| | | } |
| | | |
| | | |
| | | @ApiOperation("生成采购序列号") |
| | | @GetMapping("/createPurchaseNo") |
| | | @Log(title = "生成采购序列号", businessType = BusinessType.OTHER) |