|
|
@ -20,6 +20,8 @@ import com.hxhq.business.service.IStudyService; |
|
|
import com.hxhq.business.service.IStudySubjectService; |
|
|
import com.hxhq.business.service.IStudySubjectService; |
|
|
import com.hxhq.business.utils.JctUtil; |
|
|
import com.hxhq.business.utils.JctUtil; |
|
|
import com.hxhq.common.core.exception.ServiceException; |
|
|
import com.hxhq.common.core.exception.ServiceException; |
|
|
|
|
|
import com.hxhq.common.core.utils.StringUtils; |
|
|
|
|
|
import com.hxhq.common.core.web.domain.AjaxResult; |
|
|
import com.hxhq.common.security.utils.SecurityUtils; |
|
|
import com.hxhq.common.security.utils.SecurityUtils; |
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
import org.springframework.stereotype.Service; |
|
|
import org.springframework.stereotype.Service; |
|
|
@ -63,7 +65,7 @@ public class StudySubjectUserServiceImpl extends ServiceImpl |
|
|
if(studySubject==null){ |
|
|
if(studySubject==null){ |
|
|
throw new ServiceException("试验不存在"); |
|
|
throw new ServiceException("试验不存在"); |
|
|
} |
|
|
} |
|
|
studyService.checkPassword(form.getSign()); |
|
|
|
|
|
|
|
|
|
|
|
//传入的成员信息 |
|
|
//传入的成员信息 |
|
|
List<StudySubjectUser> itemList = form.getSubjectUserList(); |
|
|
List<StudySubjectUser> itemList = form.getSubjectUserList(); |
|
|
//已经设置的学科信息 |
|
|
//已经设置的学科信息 |
|
|
@ -113,6 +115,16 @@ public class StudySubjectUserServiceImpl extends ServiceImpl |
|
|
updateBatchById(modifyList); |
|
|
updateBatchById(modifyList); |
|
|
} |
|
|
} |
|
|
if(deleteList.size()>0){ |
|
|
if(deleteList.size()>0){ |
|
|
|
|
|
String name = baseMapper.getHasFormNameList(study.getId(),deleteList.stream().map(o->o.getUserId()).collect(Collectors.toList())); |
|
|
|
|
|
if(StringUtils.isNoneBlank(name)){ |
|
|
|
|
|
throw new ServiceException(name+"已创建过表单,无法取消勾选"); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
if(StringUtils.isBlank(form.getSign().getQmrmm())){ |
|
|
|
|
|
return ; |
|
|
|
|
|
} |
|
|
|
|
|
studyService.checkPassword(form.getSign()); |
|
|
|
|
|
if(deleteList.size()>0){ |
|
|
removeBatchByIds(deleteList); |
|
|
removeBatchByIds(deleteList); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|