admin
2019-12-27 ff076ec18ccc61d9d03863d859000e4a46c19a76
fanli/src/main/java/com/yeshi/fanli/service/impl/user/integral/IntegralTaskRecordServiceImpl.java
@@ -252,7 +252,7 @@
      return totalGoldCoin + (userInfoExtra.getGoldCoin() == null ? 0 : userInfoExtra.getGoldCoin());
   }
   @Transactional(rollbackFor=Exception.class)
   @Transactional(rollbackFor = Exception.class)
   public boolean addDetail(Long uid, IntegralTaskRecord record) throws IntegralTaskRecordException {
      Long uid2 = record.getUid();
      if (uid2 == null || uid.longValue() != uid2.longValue())
@@ -350,7 +350,7 @@
      return integralTaskRecordMapper.countGetCountByTaskIdAndDay(taskId, uid, minTime, maxTime);
   }
   @Transactional(rollbackFor=Exception.class)
   @Transactional(rollbackFor = Exception.class)
   @Override
   public IntegralTaskRecord addRecord(IntegralTaskRecord record) throws IntegralTaskRecordException {
      if (record == null)
@@ -369,8 +369,7 @@
      long count = integralTaskRecordMapper.getTotalGoldCoinByUid(record.getUid());
      if (count >= 200) {// 大于200发送消息
         IntegralTaskMQMsg msg = new IntegralTaskMQMsg(record.getUid(), count, new Date());
         Message message = MQMsgBodyFactory.create(MQTopicName.TOPIC_USER, UserTopicTagEnum.integralTaskFinish,
               msg);
         Message message = MQMsgBodyFactory.create(MQTopicName.TOPIC_USER, UserTopicTagEnum.integralTaskFinish, msg);
         producer.send(message);
      }
@@ -506,8 +505,11 @@
         msgOther.setSource("首笔分享订单,系统奖励金币 ");
         msgOther.setExplain("首笔分享订单得到的奖金不足0.01元时奖励 ");
      } else {
         msgOther.setSource(level + "级队员首次下单,系统奖励金币 ");
         msgOther.setExplain("仅新邀请队员首下单你得到的奖金不足0.01元时奖励 ");
         if (level.equalsIgnoreCase("一") || level.equalsIgnoreCase("1"))
            msgOther.setSource("直接粉丝首次下单,系统奖励金币 ");
         else
            msgOther.setSource("间接粉丝首次下单,系统奖励金币 ");
         msgOther.setExplain("仅新邀请粉丝首下单你得到的奖金不足0.01元时奖励 ");
      }
      userOtherMsgNotificationService.firstOrderRewardMsg(uid, null, msgOther);
   }