Revert "订单统计更改"

This reverts commit 8361fde309e995f84c5a7b14116161675fbe2175.
This commit is contained in:
tianfeng 2025-12-02 15:29:26 +08:00
parent 4a03f5b41d
commit 7f3b924212
2 changed files with 1 additions and 7 deletions

View File

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

View File

@ -39,12 +39,10 @@ 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