|
|
|
|
85
|
//反更新在入库
|
85
|
//反更新在入库
|
86
|
helpActivity.setEnlistNum(helpActivity.getEnlistNum()+1);
|
86
|
helpActivity.setEnlistNum(helpActivity.getEnlistNum()+1);
|
87
|
helpActivityMapper.updateById(helpActivity);
|
87
|
helpActivityMapper.updateById(helpActivity);
|
88
|
- helpInitiateRecord.setEnlistNum(helpInitiateRecord.getEnlistNum()+1);
|
|
|
89
|
- helpInitiateRecordMapper.updateById(helpInitiateRecord);
|
|
|
90
|
//插入数据
|
88
|
//插入数据
|
91
|
helpRecord.setOrgId(orgId);
|
89
|
helpRecord.setOrgId(orgId);
|
92
|
helpRecord.setCreateDate(LocalDateTime.now());
|
90
|
helpRecord.setCreateDate(LocalDateTime.now());
|
93
|
helpRecord.setPersionId(person.getPersonId());
|
91
|
helpRecord.setPersionId(person.getPersonId());
|
94
|
helpRecordMapper.insert(helpRecord);
|
92
|
helpRecordMapper.insert(helpRecord);
|
|
|
93
|
+ if (helpActivity.getEnlistNum()+1 == helpActivity.getPersionNum()){
|
|
|
94
|
+ //发送微信模板消息所有人都发送--todo
|
|
|
95
|
+
|
|
|
96
|
+ //生成核销码
|
|
|
97
|
+ helpInitiateRecord.setVerification(helpInitiateRecord.getHelpActivityId()+System.currentTimeMillis());
|
|
|
98
|
+ }
|
|
|
99
|
+ helpInitiateRecord.setEnlistNum(helpInitiateRecord.getEnlistNum()+1);
|
|
|
100
|
+ helpInitiateRecordMapper.updateById(helpInitiateRecord);
|
95
|
return ResponseBean.success(helpRecord);
|
101
|
return ResponseBean.success(helpRecord);
|
96
|
}
|
102
|
}
|
97
|
}
|
103
|
}
|