| | |
| | | // TODO 验证是否是导师
|
| | |
|
| | | JSONObject inner = new JSONObject();
|
| | | inner.put("link", userVipConfigService.getByKey("vip_link"));
|
| | | inner.put("link", userVipConfigService.getValueByKey("vip_link"));
|
| | | inner.put("ion", "http://img.flqapp.com/resource/vip/icon_vip.png");
|
| | | inner.put("title", "免费升级 享会员权益");
|
| | | inner.put("btnName", "升级会员");
|
| | | if (uid != null) {
|
| | | // 是否导师 TODO
|
| | | if (userVIPInfoService.isVIP(uid)) {
|
| | | inner.put("link", userVipConfigService.getByKey("vip_link"));
|
| | | inner.put("link", userVipConfigService.getValueByKey("vip_link"));
|
| | | inner.put("ion", "http://img.flqapp.com/resource/vip/icon_tearcher.png");
|
| | | inner.put("title", "拿五险与津贴 享导师权益");
|
| | | inner.put("btnName", "升级会员");
|
| | |
| | | lowerSubsidy = MoneyBigDecimalUtil.div(teamSubsidy.multiply(daRenRate), originRate);
|
| | | }
|
| | |
|
| | | if (userLevel != UserLevelEnum.superVIP && userLevel != UserLevelEnum.superVIP) {
|
| | | if (userLevel != UserLevelEnum.superVIP && userLevel != UserLevelEnum.tearcher) {
|
| | | BigDecimal vipRate = orderHongBaoMoneyComputeService.getTeamSubsidyRate(downTime, buyerUserLevel,
|
| | | UserLevelEnum.superVIP, direct);
|
| | | upperTotalMoney = upperTotalMoney.add(MoneyBigDecimalUtil.div(teamSubsidy.multiply(vipRate), originRate));
|
| | |
| | |
|
| | | // 上级返利
|
| | | if (upperLevel != null) {
|
| | | upperTotalMoney = upperTotalMoney.add(hongBao);
|
| | | orderRebateVO.setUpperFanLi("¥" + upperTotalMoney);
|
| | | orderRebateVO.setJumpLink(upperLevel.getDetailLink());
|
| | | }
|
| | |
| | |
|
| | | @Override
|
| | | public void teamReceive(Long uid, BigDecimal money, BigDecimal balance, Date receivedDate) {
|
| | | if (money == null || money.compareTo(new BigDecimal(0)) <= 0) {
|
| | | return;
|
| | | }
|
| | | MsgMoneyDetail detail = MsgMoneyDetailFactory.createTeamReceivedMsg(uid, money, balance, receivedDate, "团队收益");
|
| | | try {
|
| | | msgMoneyDetailService.addMsgMoneyDetail(detail);
|