| | |
| | |
|
| | | import javax.annotation.Resource;
|
| | |
|
| | | import com.yeshi.fanli.entity.SystemEnum;
|
| | | import org.springframework.core.task.TaskExecutor;
|
| | | import org.springframework.stereotype.Service;
|
| | |
|
| | |
| | | throw new IntegralExchangeException(1, "当前账户中可用金币不足,无法兑换该奖品!");
|
| | | }
|
| | |
|
| | | SystemEnum system= userInfoService.getUserSystem(uid);
|
| | |
|
| | | String thing = "";
|
| | | String thingNum = "";
|
| | | int couponNews = 0;
|
| | |
| | | } else if (ExchangeTypeEnum.rebatePercentCoupon == type) {
|
| | | thing = "返利奖励券";
|
| | | thingNum = "1张";
|
| | | String percent = configService.get(ConfigKeyEnum.exchangeRebatePercent.getKey());
|
| | | String percent = configService.getValue(ConfigKeyEnum.exchangeRebatePercent.getKey(),system);
|
| | | userSystemCouponService.rewardCouponWin(uid, UserSystemCoupon.SOURCE_EXCHANGE, 1,
|
| | | true, new BigDecimal(percent));
|
| | | couponNews = 1;
|