订单统计更改
This commit is contained in:
parent
22430db295
commit
8361fde309
@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user