Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
Litemall
Commits
d0a5ee23
Commit
d0a5ee23
authored
Jul 03, 2020
by
linlinjava
Committed by
Gitee
Jul 03, 2020
Browse files
!46 限制加入自己开团团购部分加入判空,否则其他用户无法惨团
Merge pull request !46 from 滑稽刘/master
parents
1a6e2e9a
27e6d275
Changes
1
Hide whitespace changes
Inline
Side-by-side
litemall-wx-api/src/main/java/org/linlinjava/litemall/wx/service/WxOrderService.java
View file @
d0a5ee23
...
@@ -290,8 +290,13 @@ public class WxOrderService {
...
@@ -290,8 +290,13 @@ public class WxOrderService {
}
}
// (2)不允许参加自己开团的团购
// (2)不允许参加自己开团的团购
LitemallGroupon
groupon
=
grouponService
.
queryById
(
userId
,
grouponLinkId
);
LitemallGroupon
groupon
=
grouponService
.
queryById
(
userId
,
grouponLinkId
);
if
(
groupon
.
getCreatorUserId
().
equals
(
userId
)){
// if(groupon.getCreatorUserId().equals(userId)){
return
ResponseUtil
.
fail
(
GROUPON_JOIN
,
"团购活动已经参加!"
);
// return ResponseUtil.fail(GROUPON_JOIN, "团购活动已经参加!");
// }
if
(
groupon
!=
null
)
{
if
(
groupon
.
getCreatorUserId
().
equals
(
userId
)){
return
ResponseUtil
.
fail
(
GROUPON_JOIN
,
"团购活动已经参加!"
);
}
}
}
}
}
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment