From 2a4d9802f9117d5d110e63ddaa41aada68731c4d Mon Sep 17 00:00:00 2001 From: liyong <18434998025@163.com> Date: 星期一, 16 六月 2025 17:08:51 +0800 Subject: [PATCH] tenantId修改类型 + 客户导入+ 供应商导入+产品导入 --- src/main/java/com/ruoyi/purchase/service/impl/PaymentRegistrationServiceImpl.java | 18 +++++++++++++++--- 1 files changed, 15 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/ruoyi/purchase/service/impl/PaymentRegistrationServiceImpl.java b/src/main/java/com/ruoyi/purchase/service/impl/PaymentRegistrationServiceImpl.java index ca69eef..9cab585 100644 --- a/src/main/java/com/ruoyi/purchase/service/impl/PaymentRegistrationServiceImpl.java +++ b/src/main/java/com/ruoyi/purchase/service/impl/PaymentRegistrationServiceImpl.java @@ -121,8 +121,8 @@ } LoginUser loginUser = SecurityUtils.getLoginUser(); - Integer tenantId = loginUser.getTenantId(); - paymentRegistration.setTenantId(tenantId.longValue()); + Long tenantId = loginUser.getTenantId(); + paymentRegistration.setTenantId(tenantId); paymentRegistration.setRegistrantId(loginUser.getUserId()); paymentRegistration.setCreateTime(DateUtils.getNowDate()); paymentRegistration.setUpdateTime(DateUtils.getNowDate()); @@ -288,6 +288,8 @@ detailPagination.put("pageSize", detailPageSize); detailPagination.put("pages", (int) Math.ceil((double) totalDetails / detailPageSize)); + // 搴斾粯閲戦閫昏緫涓嶉噰鐢ㄥ悎鍚岄噾棰濇敼鎴� 鍙戠エ閲戦鍑忎粯娆鹃噾棰� + payableAmount = invoiceAmount.subtract(paymentAmount); res.put("invoiceAmount", invoiceAmount); res.put("payableAmount", payableAmount); res.put("paymentAmount", paymentAmount); @@ -374,7 +376,6 @@ Collectors.toList() ) ); - BigDecimal amountDateTotal = BigDecimal.ZERO; for (LocalDate localDate : dateListMap.keySet()) { BigDecimal currentPaymentAmount = BigDecimal.ZERO; BigDecimal invoiceAmount = BigDecimal.ZERO; @@ -405,6 +406,17 @@ return result; } + /** + * 鏌ヨ浠樻鐧昏鍒楄〃鍒嗛〉 + * + * @param paymentRegistrationDto 浠樻鐧昏 + * @return 浠樻鐧昏闆嗗悎 + */ + @Override + public IPage<PaymentRegistrationDto> paymentHistoryListPage(Page page, PaymentRegistrationDto paymentRegistrationDto) { + return paymentRegistrationMapper.paymentHistoryListPage(page, paymentRegistrationDto); + } + // 鎵归噺鏌ヨ閲囪喘鍙拌处锛堝綋鏈堬級 private Map<Long, List<PurchaseLedger>> batchQueryPurchaseLedgers(List<Long> supplierIds, LocalDate startDate, LocalDate endDate) { LambdaQueryWrapper<PurchaseLedger> query = new LambdaQueryWrapper<>(); -- Gitblit v1.9.3