admin
2020-07-03 651a15c78f668bef3859d9ed1bb7ad0b669d3600
fanli/src/main/java/com/yeshi/fanli/service/impl/user/integral/IntegralTaskRecordServiceImpl.java
@@ -9,6 +9,8 @@
import javax.annotation.Resource;
import com.yeshi.fanli.entity.SystemEnum;
import com.yeshi.fanli.service.inter.user.UserInfoService;
import org.springframework.context.annotation.Lazy;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;
@@ -67,6 +69,9 @@
   @Resource
   private RocketMQManager rocketMQManager;
    @Resource
    private UserInfoService userInfoService;
   @Override
   public Integer getTotalGoldCoin(long uid, Long cid, Integer dateType) {
@@ -397,7 +402,9 @@
      if (uid == null || originUid == null)
         return;
      String reward = configService.get(ConfigKeyEnum.firstOrderRewardBoss.getKey());
        SystemEnum system = userInfoService.getUserSystem(uid);
        String reward = configService.getValue(ConfigKeyEnum.firstOrderRewardBoss.getKey(), system);
      if (StringUtil.isNullOrEmpty(reward))
         return;
      firstOrderReward(uid, originUid, Integer.parseInt(reward), "一", beizu);
@@ -408,8 +415,8 @@
   public void firstRebateOrderRewardBossSuper(Long uid, Long originUid, String beizu) {
      if (uid == null || originUid == null)
         return;
      String reward = configService.get(ConfigKeyEnum.firstOrderRewardBossSuper.getKey());
        SystemEnum system = userInfoService.getUserSystem(uid);
        String reward = configService.getValue(ConfigKeyEnum.firstOrderRewardBossSuper.getKey(),system);
      if (StringUtil.isNullOrEmpty(reward))
         return;
      firstOrderReward(uid, originUid, Integer.parseInt(reward), "二", beizu);
@@ -420,8 +427,8 @@
   public void firstShareOrderReward(Long uid, String beizu) {
      if (uid == null)
         return;
      String reward = configService.get(ConfigKeyEnum.firstShareOrderReward.getKey());
        SystemEnum system = userInfoService.getUserSystem(uid);
        String reward = configService.getValue(ConfigKeyEnum.firstShareOrderReward.getKey(),system);
      if (StringUtil.isNullOrEmpty(reward))
         return;
      //firstOrderReward(uid, null, Integer.parseInt(reward), null, beizu);
@@ -432,8 +439,8 @@
   public void firstSharerOrderRewardBoss(Long uid, Long originUid, String beizu) {
      if (uid == null || originUid == null)
         return;
      String reward = configService.get(ConfigKeyEnum.firstShareOrderRewardBoss.getKey());
        SystemEnum system = userInfoService.getUserSystem(uid);
        String reward = configService.getValue(ConfigKeyEnum.firstShareOrderRewardBoss.getKey(),system);
      if (StringUtil.isNullOrEmpty(reward))
         return;
      firstOrderReward(uid, originUid, Integer.parseInt(reward), "一", beizu);
@@ -444,8 +451,7 @@
    * 
    * @param uid
    * @param addGoldCoin
    * @param level
    *            所属哪级队员
     * @param level       所属哪级队员
    * @param beizu
    */
   private void firstOrderReward(Long uid, Long originUid, Integer addGoldCoin, String level, String beizu) {