x用户
This commit is contained in:
@@ -1396,6 +1396,8 @@ public class Constant {
|
||||
public static final String EXTRA_DIAMOND_RATE_CONFIG = "extra_diamond_rate_config";
|
||||
|
||||
public static final String CP_MIC_SVGA_URL = "cp_mic_svga_url";
|
||||
|
||||
public static String charge_user_x_gold = "charge_user_x_gold";
|
||||
}
|
||||
|
||||
public static class WithDrawStatus {
|
||||
|
@@ -1470,6 +1470,7 @@ public enum RedisKey {
|
||||
|
||||
guild_usd_withdraw_num, //公会薪资提现次数
|
||||
guild_usd_to_recharge_num,//公会薪资转代理次数
|
||||
charge_user_x_detail,//嫌疑用户
|
||||
;
|
||||
|
||||
public String getKey() {
|
||||
|
@@ -4,6 +4,7 @@ import com.accompany.common.redis.RedisKey;
|
||||
import com.accompany.payment.mapper.ChargeRecordMapperMgr;
|
||||
import com.accompany.payment.mapper.UserRechargeLevelMapper;
|
||||
import com.accompany.payment.model.UserRechargeLevel;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import org.redisson.api.RMapCache;
|
||||
import org.redisson.api.RedissonClient;
|
||||
@@ -13,7 +14,9 @@ import org.springframework.stereotype.Service;
|
||||
import org.springframework.util.StringUtils;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.*;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.concurrent.TimeUnit;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
@@ -92,4 +95,10 @@ public class UserRechargeLevelService extends ServiceImpl<UserRechargeLevelMappe
|
||||
public void afterPropertiesSet() throws Exception {
|
||||
cacheMap = redissonClient.getMapCache(RedisKey.user_recharge_level.getKey());
|
||||
}
|
||||
|
||||
public List<UserRechargeLevel> listByZeroTotalGold() {
|
||||
LambdaQueryWrapper<UserRechargeLevel> queryWrapper = new LambdaQueryWrapper<>();
|
||||
queryWrapper.eq(UserRechargeLevel::getTotalGold, 0);
|
||||
return baseMapper.selectList(queryWrapper);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user