| | |
| | | import org.springframework.stereotype.Component;
|
| | |
|
| | | import com.yeshi.fanli.entity.bus.user.ThreeSale;
|
| | | import com.yeshi.fanli.entity.bus.user.UserInfo;
|
| | | import com.yeshi.fanli.service.inter.hongbao.ThreeSaleSerivce;
|
| | | import com.yeshi.fanli.service.inter.msg.UserInviteMsgNotificationService;
|
| | | import com.yeshi.fanli.service.inter.user.UserInfoService;
|
| | | import com.yeshi.fanli.util.Constant;
|
| | |
|
| | |
| | |
|
| | | @Resource
|
| | | private ThreeSaleSerivce ThreeSaleSerivce;
|
| | | @Resource
|
| | | private UserInviteMsgNotificationService userInviteMsgNotificationService;
|
| | |
|
| | | @Resource
|
| | | private UserInfoService userInfoService;
|
| | |
| | | // 更新邀请过期: 60天未被邀请成功、60天未登陆系统
|
| | | if (list.size() > 0) {
|
| | | ThreeSaleSerivce.updateExpire(list);
|
| | | for (Long id : listFailed) {
|
| | | // 通知
|
| | | ThreeSale ts = ThreeSaleSerivce.selectByPrimaryKey(id);
|
| | | if (ts != null)
|
| | | userInviteMsgNotificationService.inviteFail(ts.getBoss().getId(), ts);
|
| | | }
|
| | | }
|
| | |
|
| | | } catch (Exception e) {
|