| | |
| | | import com.ruoyi.framework.web.controller.BaseController; |
| | | import com.ruoyi.framework.web.domain.AjaxResult; |
| | | import com.ruoyi.framework.web.page.TableDataInfo; |
| | | import com.ruoyi.purchase.dto.PaymentHistoryRecordVo; |
| | | import com.ruoyi.purchase.dto.PaymentLedgerDto; |
| | | import com.ruoyi.purchase.dto.PaymentRegistrationDto; |
| | | import com.ruoyi.purchase.pojo.PaymentRegistration; |
| | |
| | | List<PaymentRegistrationDto> list = paymentRegistrationService.paymentHistoryList(paymentRegistrationDto); |
| | | return getDataTable(list); |
| | | } |
| | | |
| | | /** |
| | | * 查询供应商往来记录 |
| | | * @param supplierId |
| | | * @return |
| | | */ |
| | | @GetMapping("/getPaymentRecordList/{supplierId}") |
| | | public AjaxResult getPaymentRecordList(@PathVariable Long supplierId) { |
| | | List<PaymentHistoryRecordVo> paymentRecordList = paymentRegistrationService.getPaymentRecordList(supplierId); |
| | | return success(paymentRecordList); |
| | | } |
| | | |
| | | /** |
| | | * 查询付款登记列表 |
| | | * |
| | | * @param paymentRegistrationDto 付款登记 |
| | | * @return 付款登记集合 |
| | | */ |
| | | @GetMapping("/paymentHistoryListPage") |
| | | public IPage<PaymentRegistrationDto> paymentHistoryListPage(Page page, PaymentRegistrationDto paymentRegistrationDto) { |
| | | return paymentRegistrationService.paymentHistoryListPage(page,paymentRegistrationDto); |
| | | } |
| | | } |