|
@@ -297,23 +297,29 @@ public class TaShareActivityController extends BaseController {
|
297
|
297
|
map.put("taShareActivity",taShareActivity);
|
298
|
298
|
|
299
|
299
|
//发起者团长信息
|
|
300
|
+ TaShareRecord taShareRecord = null;
|
300
|
301
|
if (null != recordId){
|
301
|
|
- TaShareRecord taShareRecord = taShareRecordService.getById(recordId);
|
302
|
|
- if (null != taShareRecord){
|
303
|
|
- //团长
|
304
|
|
- taShareActivity.setGroupStatus(CommConstant.HELP_STATUS_INITIATE);
|
305
|
|
- map.put("taShareRecord",taShareRecord);
|
306
|
|
-
|
307
|
|
- //团员
|
308
|
|
- QueryWrapper<TaShareChildRecord> childRecordQueryWrapper = new QueryWrapper<>();
|
309
|
|
- childRecordQueryWrapper.eq("org_id",orgId);
|
310
|
|
- childRecordQueryWrapper.eq("group_activity_id",taShareActivity.getGroupActicityId());
|
311
|
|
- childRecordQueryWrapper.eq("record_id",taShareRecord.getRecordId());
|
312
|
|
- List<TaShareChildRecord> shareChildRecordList = taShareChildRecordService.list(childRecordQueryWrapper);
|
313
|
|
- map.put("shareChildRecordList",shareChildRecordList);
|
314
|
|
- }
|
|
302
|
+ taShareRecord = taShareRecordService.getById(recordId);
|
|
303
|
+ }else {
|
|
304
|
+ QueryWrapper<TaShareRecord> recordQueryWrapper = new QueryWrapper<>();
|
|
305
|
+ recordQueryWrapper.eq("org_id",orgId);
|
|
306
|
+ recordQueryWrapper.eq("group_activity_id",taShareActivity.getGroupActicityId());
|
|
307
|
+ recordQueryWrapper.eq("person_id",person.getPersonId());
|
|
308
|
+ taShareRecord = taShareRecordService.getOne(recordQueryWrapper);
|
315
|
309
|
}
|
316
|
|
-
|
|
310
|
+ if (null != taShareRecord){
|
|
311
|
+ //团长
|
|
312
|
+ taShareActivity.setGroupStatus(CommConstant.HELP_STATUS_INITIATE);
|
|
313
|
+ map.put("taShareRecord",taShareRecord);
|
|
314
|
+
|
|
315
|
+ //团员
|
|
316
|
+ QueryWrapper<TaShareChildRecord> childRecordQueryWrapper = new QueryWrapper<>();
|
|
317
|
+ childRecordQueryWrapper.eq("org_id",orgId);
|
|
318
|
+ childRecordQueryWrapper.eq("group_activity_id",taShareActivity.getGroupActicityId());
|
|
319
|
+ childRecordQueryWrapper.eq("record_id",taShareRecord.getRecordId());
|
|
320
|
+ List<TaShareChildRecord> shareChildRecordList = taShareChildRecordService.list(childRecordQueryWrapper);
|
|
321
|
+ map.put("shareChildRecordList",shareChildRecordList);
|
|
322
|
+ }
|
317
|
323
|
|
318
|
324
|
//获取海报信息
|
319
|
325
|
QueryWrapper<TaPoster> posterQueryWrapper = new QueryWrapper<>();
|