Toggle navigation
Toggle navigation
This project
Loading...
Sign in
ufo
/
yohoufo-fore
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
tanling
6 years ago
Commit
bfd39ec564a4703b2140b879cc4b7253cf3bcde3
1 parent
d81acb6b
邀请
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
dal/src/main/resources/META-INF/mybatis/order/InviteRecordMapper.xml
order/src/main/java/com/yohoufo/order/service/impl/InviteServiceImpl.java
dal/src/main/resources/META-INF/mybatis/order/InviteRecordMapper.xml
View file @
bfd39ec
...
...
@@ -39,6 +39,7 @@
update invite_record
set status=#{status,jdbcType=INTEGER}
where inviter_uid = #{inviterUid,jdbcType=INTEGER}
and invite_activity_id!=0
</update>
...
...
order/src/main/java/com/yohoufo/order/service/impl/InviteServiceImpl.java
View file @
bfd39ec
...
...
@@ -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
(
invite
Activity
.
getId
()
);
record
.
setInviteActivityId
(
invite
rType
==
InviterType
.
STORED_SELLER
?
inviteActivity
.
getId
()
:
0
);
record
.
setCreateTime
(
DateUtils
.
getCurrentTimeSeconds
());
inviteRecordMapper
.
insert
(
record
);
...
...
Please
register
or
login
to post a comment