Revert "订单统计更改"
This reverts commit 8361fde309e995f84c5a7b14116161675fbe2175.
This commit is contained in:
parent
4a03f5b41d
commit
7f3b924212
@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user