Browse Source

判断条件修改

master
wangchao 5 years ago
parent
commit
3a419e3b9d
  1. 2
      epmet-module/resi-group/resi-group-server/src/main/java/com/epmet/modules/topic/service/impl/ResiTopicServiceImpl.java

2
epmet-module/resi-group/resi-group-server/src/main/java/com/epmet/modules/topic/service/impl/ResiTopicServiceImpl.java

@ -1254,7 +1254,7 @@ public class ResiTopicServiceImpl extends BaseServiceImpl<ResiTopicDao, ResiTopi
//没有相应的话题
logger.error(ModuleConstant.NO_SUCH_TOPIC);
throw new RenException(ModuleConstant.NO_SUCH_TOPIC);
}else if(topic.getShiftIssue() || StringUtils.isNotBlank(topic.getIssueId()) || !StringUtils.equals(ModuleConstant.TOPIC_STATUS_DISCUSSING,topic.getStatus())){
}else if(topic.getShiftIssue() || StringUtils.isNotBlank(topic.getIssueId())){
throw new RenException(EpmetErrorCode.TOPIC_ALREADY_SHIFTED_TO_ISSUE.getCode());
}else if(StringUtils.equals(ModuleConstant.TOPIC_STATUS_HIDDEN,topic.getStatus())){
throw new RenException(EpmetErrorCode.TOPIC_IS_HIDDEN.getCode());

Loading…
Cancel
Save