Authored by wangnan

自动客服 fix

@@ -58,8 +58,10 @@ public class RobotRelatedQuestionMqListener extends AbstractMqListener { @@ -58,8 +58,10 @@ public class RobotRelatedQuestionMqListener extends AbstractMqListener {
58 RobotQuestionIndexBO robotQuestionIndexBO = new RobotQuestionIndexBO(); 58 RobotQuestionIndexBO robotQuestionIndexBO = new RobotQuestionIndexBO();
59 robotQuestionIndexBO.setId(robotRelatedQuestion.getId()); 59 robotQuestionIndexBO.setId(robotRelatedQuestion.getId());
60 robotQuestionIndexBO.setQuestion(robotRelatedQuestion.getQuestion()); 60 robotQuestionIndexBO.setQuestion(robotRelatedQuestion.getQuestion());
  61 + if(robotKnowledgeBase!=null){
61 robotQuestionIndexBO.setKeywords(robotKnowledgeBase.getKeywords()); 62 robotQuestionIndexBO.setKeywords(robotKnowledgeBase.getKeywords());
62 robotQuestionIndexBO.setSynonym(robotKnowledgeBase.getSynonym()); 63 robotQuestionIndexBO.setSynonym(robotKnowledgeBase.getSynonym());
  64 + }
63 String idValue = robotQuestionIndexBO.getId().toString(); 65 String idValue = robotQuestionIndexBO.getId().toString();
64 indexService.updateIndexData(this.getIndexName(), idValue, robotQuestionIndexBO); 66 indexService.updateIndexData(this.getIndexName(), idValue, robotQuestionIndexBO);
65 } 67 }