| | |
| | | import org.springframework.stereotype.Component;
|
| | |
|
| | | import com.yeshi.fanli.entity.bus.user.UserRankings;
|
| | | import com.yeshi.fanli.entity.system.ConfigKeyEnum;
|
| | | import com.yeshi.fanli.log.LogHelper;
|
| | | import com.yeshi.fanli.service.inter.config.ConfigService;
|
| | | import com.yeshi.fanli.service.inter.taobao.TaoBaoOrderService;
|
| | | import com.yeshi.fanli.service.inter.order.tb.TaoBaoOrderService;
|
| | | import com.yeshi.fanli.service.inter.user.UserInfoExtraService;
|
| | | import com.yeshi.fanli.service.inter.user.UserRankingsService;
|
| | | import com.yeshi.fanli.util.Constant;
|
| | | import com.yeshi.fanli.util.StringUtil;
|
| | |
| | |
|
| | | @Resource
|
| | | private TaoBaoOrderService taoBaoOrderService;
|
| | | |
| | | @Resource
|
| | | private UserInfoExtraService userInfoExtraService;
|
| | |
|
| | |
|
| | | // 1加,2减
|
| | |
| | |
|
| | | // 上下 浮动金额范围
|
| | | double rangeAmount = 100;
|
| | | String range = configService.get("reward_rank_range");
|
| | | String range = configService.get(ConfigKeyEnum.rewardRankRange.getKey());
|
| | | if (!StringUtil.isNullOrEmpty(range)) {
|
| | | rangeAmount = Double.parseDouble(range);
|
| | | }
|
| | |
| | |
|
| | | }
|
| | |
|
| | | /**
|
| | | * 自动提现服务端规则,关闭后,第60天系统会自动开启(从关闭日起)
|
| | | */
|
| | | @Scheduled(cron = "0 50 0 * * ? ")
|
| | | public void updateAutoExtract() {
|
| | | if (!Constant.IS_TASK) {
|
| | | return;
|
| | | }
|
| | | userInfoExtraService.updateAutoExtract(60);
|
| | | }
|
| | | }
|