|
|
@@ -165,10 +165,10 @@ public class QuestionnaireUserResultServiceImpl extends BaseServiceImpl<Long, Qu
|
|
|
public void add(ReplacementInstrumentActivityDto replacementInstrumentActivity) {
|
|
|
Integer topicId = replacementInstrumentActivity.getTopicId();
|
|
|
QuestionnaireTopic topic = questionnaireTopicDao.get(topicId);
|
|
|
+ if(topic.getStatus() == 0){
|
|
|
+ throw new BizException("当前问卷已停用");
|
|
|
+ }
|
|
|
if(topic.getLoginFlag() == 1){
|
|
|
- if(topic.getStatus() == 0){
|
|
|
- throw new BizException("当前问卷已停用");
|
|
|
- }
|
|
|
SysUser sysUser = sysUserFeignService.queryUserInfo();
|
|
|
if (sysUser == null) {
|
|
|
throw new BizException("用户信息获取失败,请重新登陆");
|