From 2a6b9517d50eb111251c0d14ba942809dab3b8ff Mon Sep 17 00:00:00 2001 From: dzc <2388224167@qq.com> Date: Wed, 17 Dec 2025 15:57:08 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E6=90=9C=E7=B4=A2=E9=87=91=E9=A2=9D?= =?UTF-8?q?=E6=95=B0=E7=BB=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pjcloud/wallet/api/dto/WalletTransactionDto.java | 6 ++++++ .../wallet/controller/WalletTransactionController.java | 10 +++++++++- .../main/resources/mapper/WalletTransactionMapper.xml | 6 ++++++ 3 files changed, 21 insertions(+), 1 deletion(-) diff --git a/pjcloud-wallet/pjcloud-wallet-api/src/main/java/com/bsd/pjcloud/wallet/api/dto/WalletTransactionDto.java b/pjcloud-wallet/pjcloud-wallet-api/src/main/java/com/bsd/pjcloud/wallet/api/dto/WalletTransactionDto.java index f6398a928..bfbfa9976 100644 --- a/pjcloud-wallet/pjcloud-wallet-api/src/main/java/com/bsd/pjcloud/wallet/api/dto/WalletTransactionDto.java +++ b/pjcloud-wallet/pjcloud-wallet-api/src/main/java/com/bsd/pjcloud/wallet/api/dto/WalletTransactionDto.java @@ -58,4 +58,10 @@ public class WalletTransactionDto extends WalletTransactionEntity implements Bas */ private Boolean isInclude; + + /** + * 金额区间 + */ + private List priceList; + } diff --git a/pjcloud-wallet/pjcloud-wallet-biz/src/main/java/com/bsd/pjcloud/wallet/controller/WalletTransactionController.java b/pjcloud-wallet/pjcloud-wallet-biz/src/main/java/com/bsd/pjcloud/wallet/controller/WalletTransactionController.java index 0b7e97d2c..5c874cd5f 100644 --- a/pjcloud-wallet/pjcloud-wallet-biz/src/main/java/com/bsd/pjcloud/wallet/controller/WalletTransactionController.java +++ b/pjcloud-wallet/pjcloud-wallet-biz/src/main/java/com/bsd/pjcloud/wallet/controller/WalletTransactionController.java @@ -109,7 +109,9 @@ public class WalletTransactionController { if (ObjectUtil.isNotEmpty(dto.getPrice())) { dto.setPrice(dto.getPrice() * 100); } - + if (ObjectUtil.isNotEmpty(dto.getPriceList())) { + dto.setPriceList(dto.getPriceList().stream().map(item -> item * 100).toList()); + } DataScope dataScope = new DataScope(); return R.ok(walletTransactionService.pageCzTotalList(dto, dataScope)); } @@ -122,6 +124,9 @@ public class WalletTransactionController { if (ObjectUtil.isNotEmpty(dto.getPrice())) { dto.setPrice(dto.getPrice() * 100); } + if (ObjectUtil.isNotEmpty(dto.getPriceList())) { + dto.setPriceList(dto.getPriceList().stream().map(item -> item * 100).toList()); + } walletTransactionService.exportCzTotal(response, dto, null); } @@ -133,6 +138,9 @@ public class WalletTransactionController { if (ObjectUtil.isNotEmpty(dto.getPrice())) { dto.setPrice(dto.getPrice() * 100); } + if (ObjectUtil.isNotEmpty(dto.getPriceList())) { + dto.setPriceList(dto.getPriceList().stream().map(item -> item * 100).toList()); + } DataScope dataScope = new DataScope(); return R.ok(walletTransactionService.listDeptCzTotal(dto, dataScope)); } diff --git a/pjcloud-wallet/pjcloud-wallet-biz/src/main/resources/mapper/WalletTransactionMapper.xml b/pjcloud-wallet/pjcloud-wallet-biz/src/main/resources/mapper/WalletTransactionMapper.xml index a5844eccc..507660478 100644 --- a/pjcloud-wallet/pjcloud-wallet-biz/src/main/resources/mapper/WalletTransactionMapper.xml +++ b/pjcloud-wallet/pjcloud-wallet-biz/src/main/resources/mapper/WalletTransactionMapper.xml @@ -50,6 +50,12 @@ and a.price = #{dto.price} + + and a.price in + + #{v} + + and a.price > 0