Authored by tanling

邀请

... ... @@ -39,6 +39,7 @@
update invite_record
set status=#{status,jdbcType=INTEGER}
where inviter_uid = #{inviterUid,jdbcType=INTEGER}
and invite_activity_id!=0
</update>
... ...
... ... @@ -361,7 +361,7 @@ public class InviteServiceImpl implements IInviteService {
*/
public int quitInviter(int uid){
// 检查该退驻的商户是否是邀请人,则之前的所有绑定关系无效
// 检查该退驻的商户是否邀请人,将使用A类邀请码的绑定关系设置成无效
InviteRecord inviteRecord = new InviteRecord();
inviteRecord.setInviterUid(uid);
inviteRecord.setStatus(InviteRecordStatusEnum.INVALID.getCode());
... ... @@ -421,7 +421,7 @@ public class InviteServiceImpl implements IInviteService {
record.setInviterUid(inviter.getUid());
record.setInviteeUid(uid);
record.setInviterId(inviter.getId());
record.setInviteActivityId(inviteActivity.getId());
record.setInviteActivityId(inviterType == InviterType.STORED_SELLER ? inviteActivity.getId() : 0);
record.setCreateTime(DateUtils.getCurrentTimeSeconds());
inviteRecordMapper.insert(record);
... ...