| | |
| | | import com.yeshi.fanli.service.inter.user.UserSystemCouponService;
|
| | | import com.yeshi.fanli.service.inter.user.integral.IntegralTaskRecordService;
|
| | | import com.yeshi.fanli.service.inter.user.invite.ThreeSaleSerivce;
|
| | | import com.yeshi.fanli.service.inter.user.invite.UserInviteMsgNotificationService;
|
| | | import com.yeshi.fanli.service.inter.user.tb.UserExtraTaoBaoInfoService;
|
| | | import com.yeshi.fanli.util.Constant;
|
| | | import com.yeshi.fanli.util.MoneyBigDecimalUtil;
|
| | |
| | |
|
| | | @Resource
|
| | | private UserSystemCouponService userSystemCouponService;
|
| | | |
| | | @Resource
|
| | | private UserInviteMsgNotificationService userInviteMsgNotificationService;
|
| | |
|
| | |
|
| | | @Override
|
| | |
| | | return;
|
| | | long registerTime = register.getCreateTime().getTime();
|
| | | // 注册48小时内下单限制
|
| | | if (downTime.getTime() > registerTime || downTime.getTime() < registerTime + 1000*60*60*48)
|
| | | if (downTime.getTime() < registerTime || downTime.getTime() > registerTime + 1000*60*60*48L)
|
| | | return;
|
| | |
|
| | | // 是否存在上下级关系
|
| | |
| | | continue;
|
| | | // 付款金额限制
|
| | | BigDecimal payment = commonOrder.getPayment();
|
| | | if (payment == null || payment.compareTo(limitPayMent) <= 0) |
| | | if (payment == null || payment.compareTo(limitPayMent) < 0) |
| | | continue;
|
| | |
|
| | | // 商品佣金比例限制
|
| | |
| | | winInvite.setType(RedPackWinInviteTypeEnum.inviteDownOrder);
|
| | | winInvite.setIdentifyCode(StringUtil.Md5(RedPackWinInviteTypeEnum.inviteDownOrder.name() + ":" + orderUid));
|
| | | redPackWinInviteMapper.insertSelective(winInvite);
|
| | | |
| | | // 消息提醒
|
| | | UserInfo userInfo = userInfoService.selectByPKey(orderUid);
|
| | | userInviteMsgNotificationService.pullNewRedPack(bossId, userInfo.getNickName(), userInfo.getPortrait());
|
| | | }
|
| | |
|
| | | @Override
|