| | |
| | | * 回款登记分页查询 |
| | | */ |
| | | @GetMapping("/listPageSalesLedger") |
| | | @Log(title = "回款登记分页查询", businessType = BusinessType.OTHER) |
| | | public AjaxResult listPage(Page page, SalesLedgerProductDto salesLedgerProduct) { |
| | | IPage<SalesLedgerProductDto> list = salesLedgerProductService.listPage(page,salesLedgerProduct); |
| | | return AjaxResult.success(list); |
| | |
| | | * 付款登记分页查询 |
| | | */ |
| | | @GetMapping("/listPagePurchaseLedger") |
| | | @Log(title = "付款登记分页查询", businessType = BusinessType.OTHER) |
| | | public AjaxResult listPagePurchaseLedger(Page page, SalesLedgerProductDto salesLedgerProduct) { |
| | | IPage<SalesLedgerProductDto> list = salesLedgerProductService.listPagePurchaseLedger(page,salesLedgerProduct); |
| | | return AjaxResult.success(list); |
| | |
| | | * 查询产品信息列表 |
| | | */ |
| | | @GetMapping("/list") |
| | | @Log(title = "查询产品信息列表", businessType = BusinessType.OTHER) |
| | | public AjaxResult list(SalesLedgerProduct salesLedgerProduct) { |
| | | List<SalesLedgerProduct> list = salesLedgerProductService.selectSalesLedgerProductList(salesLedgerProduct); |
| | | list.forEach(item -> { |
| | |
| | | * 获取产品信息详细信息 |
| | | */ |
| | | @GetMapping(value = "/{id}") |
| | | @Log(title = "查询产品信息详细信息", businessType = BusinessType.OTHER) |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) |
| | | { |
| | | return success(salesLedgerProductService.selectSalesLedgerProductById(id)); |
| | |
| | | |
| | | //根据产品id获取bom判断库存是否充足 |
| | | @GetMapping("/judgmentInventory") |
| | | @Log(title = "判断库存是否充足", businessType = BusinessType.OTHER) |
| | | public R judgmentInventory(SalesLedgerProduct salesLedgerProduct) { |
| | | return salesLedgerProductService.judgmentInventory(salesLedgerProduct); |
| | | } |