|
|
@@ -1770,6 +1770,9 @@ public class CmsOrderDonServiceImpl extends ServiceImpl<OrderDonMapper,OrderDon>
|
|
|
List<Long> userIdList = userBindRelationService.getRelationUserIdList(userId, null);
|
|
|
GroupsRelation relation = relationMapper.selectOne(Wrappers.lambdaQuery(GroupsRelation.class).eq(GroupsRelation::getId, relationId).in(GroupsRelation::getUserId, userIdList).gt(GroupsRelation::getExpiryTime, DateTime.now()));
|
|
|
if (relation != null && relation.getRechargeStatus() != null) {
|
|
|
+ if (relation.getRechargeRemainNum() == 0) {
|
|
|
+ return;
|
|
|
+ }
|
|
|
int update = 0;
|
|
|
while (update == 0) {
|
|
|
Integer rechargeRemainNum = relation.getRechargeRemainNum();
|