|
@@ -107,7 +107,10 @@ public class HelpRecordServiceImpl extends ServiceImpl<HelpRecordMapper, HelpRec
|
107
|
107
|
helpRecord.setCreateDate(LocalDateTime.now());
|
108
|
108
|
helpRecord.setPersonId(person.getPersonId());
|
109
|
109
|
helpRecordMapper.insert(helpRecord);
|
110
|
|
- if (helpActivity.getEnlistNum().equals(helpActivity.getPersonNum())){
|
|
110
|
+ if (null == helpInitiateRecord.getEnlistNum()){
|
|
111
|
+ helpInitiateRecord.setEnlistNum(0);
|
|
112
|
+ }
|
|
113
|
+ if (helpInitiateRecord.getEnlistNum().equals(helpActivity.getPersonNum())){
|
111
|
114
|
//发送微信模板消息所有人都发送
|
112
|
115
|
try{
|
113
|
116
|
sendWxMessage(helpInitiateRecord,orgId,helpActivity);
|
|
@@ -118,9 +121,7 @@ public class HelpRecordServiceImpl extends ServiceImpl<HelpRecordMapper, HelpRec
|
118
|
121
|
helpInitiateRecord.setSucceedDate(LocalDateTime.now());
|
119
|
122
|
helpInitiateRecord.setStatus(0);
|
120
|
123
|
}
|
121
|
|
- if (null == helpInitiateRecord.getEnlistNum()){
|
122
|
|
- helpInitiateRecord.setEnlistNum(0);
|
123
|
|
- }
|
|
124
|
+
|
124
|
125
|
helpInitiateRecord.setEnlistNum(helpInitiateRecord.getEnlistNum()+1);
|
125
|
126
|
helpInitiateRecordMapper.updateById(helpInitiateRecord);
|
126
|
127
|
Map<String,Object> map = new HashMap<>();
|