|
@@ -56,7 +56,7 @@ public class HelpRecordServiceImpl extends ServiceImpl<HelpRecordMapper, HelpRec
|
56
|
56
|
|
57
|
57
|
HelpActivity helpActivity = helpActivityMapper.selectById(helpRecord.getHelpActivityId());
|
58
|
58
|
//是否助力成功
|
59
|
|
- if (helpActivity.getEnlistNum() >= helpActivity.getPersionNum()){
|
|
59
|
+ if (helpActivity.getEnlistNum() >= helpActivity.getPersonNum()){
|
60
|
60
|
return ResponseBean.error("已经助力成功", ResponseBean.ERROR_UNAVAILABLE);
|
61
|
61
|
}
|
62
|
62
|
if (helpActivity.getEndDate().isBefore(LocalDateTime.now())){
|
|
@@ -88,9 +88,9 @@ public class HelpRecordServiceImpl extends ServiceImpl<HelpRecordMapper, HelpRec
|
88
|
88
|
//插入数据
|
89
|
89
|
helpRecord.setOrgId(orgId);
|
90
|
90
|
helpRecord.setCreateDate(LocalDateTime.now());
|
91
|
|
- helpRecord.setPersionId(person.getPersonId());
|
|
91
|
+ helpRecord.setPersonId(person.getPersonId());
|
92
|
92
|
helpRecordMapper.insert(helpRecord);
|
93
|
|
- if (helpActivity.getEnlistNum().equals(helpActivity.getPersionNum())){
|
|
93
|
+ if (helpActivity.getEnlistNum().equals(helpActivity.getPersonNum())){
|
94
|
94
|
//发送微信模板消息所有人都发送--todo
|
95
|
95
|
|
96
|
96
|
//生成核销码
|
|
@@ -98,6 +98,6 @@ public class HelpRecordServiceImpl extends ServiceImpl<HelpRecordMapper, HelpRec
|
98
|
98
|
}
|
99
|
99
|
helpInitiateRecord.setEnlistNum(helpInitiateRecord.getEnlistNum()+1);
|
100
|
100
|
helpInitiateRecordMapper.updateById(helpInitiateRecord);
|
101
|
|
- return ResponseBean.success(helpRecord);
|
|
101
|
+ return ResponseBean.success(helpInitiateRecord);
|
102
|
102
|
}
|
103
|
103
|
}
|