From daf9cbb62dcbb94cd57327e28f8ab8d28c6fc31a Mon Sep 17 00:00:00 2001 From: Lemon Date: Mon, 11 May 2026 13:41:48 +0800 Subject: [PATCH] =?UTF-8?q?bugfix=20=E4=BD=99=E9=A2=9D=E9=80=80=E6=AC=BE?= =?UTF-8?q?=E6=97=B6=E6=9F=A5=E8=AF=A2=E6=9C=80=E8=BF=91=E4=B8=80=E5=B9=B4?= =?UTF-8?q?=E7=9A=84=E6=94=AF=E4=BB=98=E8=AE=B0=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../jsowell/pile/service/impl/OrderBasicInfoServiceImpl.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/jsowell-pile/src/main/java/com/jsowell/pile/service/impl/OrderBasicInfoServiceImpl.java b/jsowell-pile/src/main/java/com/jsowell/pile/service/impl/OrderBasicInfoServiceImpl.java index 52ab69f7e..cab28f0ae 100644 --- a/jsowell-pile/src/main/java/com/jsowell/pile/service/impl/OrderBasicInfoServiceImpl.java +++ b/jsowell-pile/src/main/java/com/jsowell/pile/service/impl/OrderBasicInfoServiceImpl.java @@ -2101,6 +2101,11 @@ public class OrderBasicInfoServiceImpl implements OrderBasicInfoService { List resultList = Lists.newArrayList(); // 查询会员的余额充值记录 按照充值时间正序 List memberAdapayRecords = memberAdapayRecordService.selectAvailableBalance(memberId); + // 筛选该list最近一年的数据 + memberAdapayRecords = memberAdapayRecords.stream() + .filter(record -> DateUtils.date2LocalDateTime(record.getCreateTime()) + .isAfter(LocalDateTime.now().minusYears(1))) + .collect(Collectors.toList()); // 定义一个临时金额等于消费金额 BigDecimal tempAmount = new BigDecimal(amount.toString());