Merge branch 'master' of https://gitee.com/linlinjava/litemall
This commit is contained in:
@@ -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, "团购活动已经参加!");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user