|
@@ -60,12 +60,14 @@ public class TaShareChildRecordServiceImpl extends ServiceImpl<TaShareChildRecor
|
60
|
60
|
TaPerson taPerson = taPersonMapper.getById(taShareChildRecord.getPersonId());
|
61
|
61
|
TaShareActivity taShareActivity = activityMapper.selectTaShareActivityById(taShareChildRecord.getGroupActivityId());
|
62
|
62
|
|
|
63
|
+ TaShareRecord record = tashareRecordmapper.selectById(taShareChildRecord.getRecordId());
|
|
64
|
+
|
63
|
65
|
if (taPerson.getPoints() == null || taPerson.getPoints() < taShareActivity.getIntegral()){
|
64
|
66
|
responseBean.addError("积分不足");
|
65
|
67
|
return responseBean;
|
66
|
68
|
}
|
67
|
69
|
//判断参团人数是否已满
|
68
|
|
- if (taShareActivity.getGroupBuyPeople().equals(taShareActivity.getJoinPeople())){
|
|
70
|
+ if (taShareActivity.getGroupBuyPeople().equals(record.getJoinPeople())){
|
69
|
71
|
TaShareRecord taShareRecord = new TaShareRecord();
|
70
|
72
|
taShareRecord.setStatus(0);
|
71
|
73
|
taShareRecord.setRecordId(taShareChildRecord.getRecordId());
|