yujian
2020-04-01 8a57b3a0ee3fa70e8d43eb12865f1c27d0d385d8
fanli/src/main/java/com/yeshi/fanli/service/impl/user/vip/UserVIPPreInfoServiceImpl.java
@@ -108,6 +108,12 @@
      Collections.sort(infoList, cm);
      return infoList.get(0);
   }
   @Override
   public UserVIPPreInfo getVipByProcess(Long uid, int process){
      return userVIPPreInfoMapper.selectByUidAndProcess(uid, process);
   }
   @Override
   public UserVIPPreInfo getProcessInfo(Long uid, Date time) {
@@ -265,13 +271,15 @@
               IntegralDetail detail = new IntegralDetail();
               detail.setTitle("升级VIP福利");
               detail.setUid(uid);
               detail.setMoney(Constant.VIP_COLDCOIN_NUM);
               detail.setMoney(Integer.parseInt(goldcoin));
               detail.setCreateTime(new Date());
               detail.setUniqueKey("VIP-3-" + uid);
               integralDetailService.insertSelective(detail);
               
               // 添加金币
               userInfoExtraService.addGoldCoinByUid(uid, Integer.parseInt(goldcoin));
               //TODO 消息
            }
            
            // 是否存在下级脱离期限 -更新不脱离
@@ -384,6 +392,9 @@
                        UserSystemCoupon.SOURCE_SYSTEM_PUSH, percent, false);
               }
            }
            // TODO 发券消息
         } catch (Exception e) {
            e.printStackTrace();
            LogHelper.error(e);