| | |
| | | package com.yeshi.fanli.service.impl.msg;
|
| | |
|
| | | import javax.annotation.Resource;
|
| | |
|
| | | import org.springframework.stereotype.Service;
|
| | |
|
| | | import com.yeshi.fanli.entity.bus.msg.MsgInviteDetail;
|
| | | import com.yeshi.fanli.entity.bus.user.ThreeSale;
|
| | | import com.yeshi.fanli.exception.msg.MsgInviteDetailException;
|
| | | import com.yeshi.fanli.service.inter.msg.MsgInviteDetailService;
|
| | | import com.yeshi.fanli.service.inter.msg.UserInviteMsgNotificationService;
|
| | | import com.yeshi.fanli.util.factory.msg.MsgInviteDetailFactory;
|
| | |
|
| | | @Service
|
| | | public class UserInviteMsgNotificationServiceImpl implements UserInviteMsgNotificationService{
|
| | | public class UserInviteMsgNotificationServiceImpl implements UserInviteMsgNotificationService {
|
| | |
|
| | | @Resource
|
| | | private MsgInviteDetailService msgInviteDetailService;
|
| | |
|
| | | @Override
|
| | | public void inviteScan(Long uid, ThreeSale sale) {
|
| | | // TODO Auto-generated method stub
|
| | | |
| | | MsgInviteDetail detail = MsgInviteDetailFactory.createInviteScanSuccess(sale, uid, null);
|
| | | try {
|
| | | msgInviteDetailService.addMsgInviteDetail(detail);
|
| | | } catch (MsgInviteDetailException e) {
|
| | | e.printStackTrace();
|
| | | }
|
| | | }
|
| | |
|
| | | @Override
|
| | | public void inviteSuccess(Long uid, ThreeSale sale) {
|
| | | // TODO Auto-generated method stub
|
| | | |
| | | MsgInviteDetail detail = MsgInviteDetailFactory.createInviteSuccess(sale, uid, null);
|
| | | try {
|
| | | msgInviteDetailService.addMsgInviteDetail(detail);
|
| | | } catch (MsgInviteDetailException e) {
|
| | | e.printStackTrace();
|
| | | }
|
| | | }
|
| | |
|
| | | @Override
|
| | | public void inviteFail(Long uid, ThreeSale sale) {
|
| | | // TODO Auto-generated method stub
|
| | | |
| | | MsgInviteDetail detail = MsgInviteDetailFactory.createInviteFail(sale, uid, null);
|
| | | try {
|
| | | msgInviteDetailService.addMsgInviteDetail(detail);
|
| | | } catch (MsgInviteDetailException e) {
|
| | | e.printStackTrace();
|
| | | }
|
| | | }
|
| | |
|
| | | }
|