|
|
@ -101,13 +101,14 @@ public class ActPeriodServiceImpl extends BaseServiceImpl<ActPeriodDao, ActPerio |
|
|
|
|
|
|
|
@Override |
|
|
|
@Transactional(rollbackFor = Exception.class) |
|
|
|
public void removeActPeriodsByActId(String actId) { |
|
|
|
public boolean removeActPeriodsByActId(String actId) { |
|
|
|
// 校验活动是否已有人报名,有人报名后不能修改活动时间段
|
|
|
|
List<ActPeriodDTO> periods = baseDao.selectPeriodsAlreadySignIn(actId); |
|
|
|
if (CollectionUtil.isNotEmpty(periods)) { |
|
|
|
throw new RenException("活动时间段已有人报名,不能修改"); |
|
|
|
return false; |
|
|
|
} |
|
|
|
baseDao.modifyDelFlagByActId(actId); |
|
|
|
return true; |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|