|
|
@ -347,9 +347,9 @@ public class StudyServiceImpl extends ServiceImpl implements |
|
|
throw new ServiceException("该试验已锁定"); |
|
|
throw new ServiceException("该试验已锁定"); |
|
|
} |
|
|
} |
|
|
checkPermit(study); |
|
|
checkPermit(study); |
|
|
String name = baseMapper.queryNotFinishFormName(study.getId()); |
|
|
|
|
|
if(StringUtils.isNoneBlank(name)){ |
|
|
|
|
|
throw new ServiceException("该试验下"+name+"还未结束,请先完成该表单后再进行锁定试验"); |
|
|
|
|
|
|
|
|
List<String> nameList = baseMapper.queryNotFinishFormName(study.getId()); |
|
|
|
|
|
if(nameList!=null && nameList.size()>0){ |
|
|
|
|
|
throw new ServiceException("该试验下"+String.join("、",nameList)+"还未结束,请先完成该表单后再进行锁定试验"); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|