|  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  | this.baseMapper.updateById(orderInfo); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | agentProducer.sendOrderCancelDelayMsg(orderInfo.getId(), 15 * 60 * 1000L); | 
|---|
|  |  |  | return orderInfo.getId(); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 
|---|
|  |  |  | mallMqRecord.setRetryTimes(2); | 
|---|
|  |  |  | mallMqRecord.setCreateTime(orderInfo.getPayTime()); | 
|---|
|  |  |  | mallMqRecordMapper.insert(mallMqRecord); | 
|---|
|  |  |  | //发送补贴消息 | 
|---|
|  |  |  | agentProducer.sendPerkMoneyMsg(orderInfo.getId()); | 
|---|
|  |  |  | //发送代理自动升级消息 | 
|---|
|  |  |  | agentProducer.sendAutoLevelUpMsg(member.getId()); | 
|---|
|  |  |  | break; | 
|---|
|  |  |  | case "4": | 
|---|
|  |  |  | if (orderInfo.getOrderType() != 2) { | 
|---|
|  |  |  | 
|---|
|  |  |  | if(prizeScore.compareTo(score) < 0){ | 
|---|
|  |  |  | throw new FebsException("积分不足"); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | if(hasTc){ | 
|---|
|  |  |  | //系统设置的个人贡献点最大值 | 
|---|
|  |  |  | DataDictionaryCustom starGetDic = dataDictionaryCustomMapper.selectDicDataByTypeAndCode( | 
|---|
|  |  |  | DataDictionaryEnum.STAR_GET.getType(), | 
|---|
|  |  |  | DataDictionaryEnum.STAR_GET.getCode()); | 
|---|
|  |  |  | if(ObjectUtil.isNotEmpty(starGetDic)){ | 
|---|
|  |  |  | String starGetStr = StrUtil.isEmpty(starGetDic.getValue()) ? "0" : starGetDic.getValue(); | 
|---|
|  |  |  | BigDecimal starGet = new BigDecimal(starGetStr); | 
|---|
|  |  |  | BigDecimal star = new BigDecimal(mallMemberWallet.getStar()); | 
|---|
|  |  |  | if(starGet.compareTo(BigDecimal.ZERO) != 0 && starGet.compareTo(star) <= 0){ | 
|---|
|  |  |  | throw new FebsException("无法购买套餐"); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 使用积分折扣现金 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | 
|---|
|  |  |  | if(scorePercentMaxAmount.compareTo(score) < 0){ | 
|---|
|  |  |  | throw new FebsException("最多可使用"+scorePercentMaxAmount+"积分"); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | if(hasTc){ | 
|---|
|  |  |  | //系统设置的个人贡献点最大值 | 
|---|
|  |  |  | DataDictionaryCustom starGetDic = dataDictionaryCustomMapper.selectDicDataByTypeAndCode( | 
|---|
|  |  |  | DataDictionaryEnum.STAR_GET.getType(), | 
|---|
|  |  |  | DataDictionaryEnum.STAR_GET.getCode()); | 
|---|
|  |  |  | if(ObjectUtil.isNotEmpty(starGetDic)){ | 
|---|
|  |  |  | String starGetStr = StrUtil.isEmpty(starGetDic.getValue()) ? "0" : starGetDic.getValue(); | 
|---|
|  |  |  | BigDecimal starGet = new BigDecimal(starGetStr); | 
|---|
|  |  |  | BigDecimal star = new BigDecimal(mallMemberWallet.getStar()); | 
|---|
|  |  |  | if(starGet.compareTo(BigDecimal.ZERO) != 0 && starGet.compareTo(star) <= 0){ | 
|---|
|  |  |  |  | 
|---|
|  |  |  | return new FebsResponse().success().message("购买套餐不会获得贡献点"); | 
|---|
|  |  |  | //                    throw new FebsException("无法购买套餐"); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  | return new FebsResponse().success(); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|