订单统计更改

This commit is contained in:
tianfeng 2025-12-02 12:16:35 +08:00
parent 22430db295
commit 8361fde309
2 changed files with 7 additions and 1 deletions

View File

@ -78,4 +78,8 @@ public enum MonthlyRechargeType {
PAY_PAL, CLIPSPAY, SELLER_AGENT);
}
public static List<MonthlyRechargeType> notCountTypes() {
return List.of(SHIPPING_AGENT, SALARY_EXCHANGE, UNDEFINED);
}
}

View File

@ -39,10 +39,12 @@ public class UserRechargeCountGatewayImpl implements UserRechargeCountGateway {
@Override
public void count(Long userId, BigDecimal amount, MonthlyRechargeType type) {
userMonthlyRechargeService.incrThisMonthAmount(userId, amount, type);
totalRechargeService.incrAmount(userId, amount, type);
monthlyRechargeUserService.incAmount(userId, amount);
totalRechargeUserService.incAmount(userId, amount);
if (!MonthlyRechargeType.notCountTypes().contains(type)) {
totalRechargeService.incrAmount(userId, amount, type);
}
}
@Override