|
|
@ -164,7 +164,7 @@ public class ParticipateService
|
|
|
|
QueryWrapper<Record> recordQueryWrapper=new QueryWrapper<>();
|
|
|
|
QueryWrapper<Record> recordQueryWrapper=new QueryWrapper<>();
|
|
|
|
recordQueryWrapper.eq("participation_id",participate.getParticipationId());
|
|
|
|
recordQueryWrapper.eq("participation_id",participate.getParticipationId());
|
|
|
|
recordDao.delete(recordQueryWrapper);
|
|
|
|
recordDao.delete(recordQueryWrapper);
|
|
|
|
if(group.getLeaderId().equals(participate.getUserId())&&count==2)
|
|
|
|
if(group.getLeaderId().equals(participate.getUserId())&&count==1)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
participateDao.deleteById(participationId);
|
|
|
|
participateDao.deleteById(participationId);
|
|
|
|
return groupDao.deleteById(group);
|
|
|
|
return groupDao.deleteById(group);
|
|
|
|