|
@ -197,7 +197,8 @@ public class RobotService {
|
|
|
*/
|
|
|
public void replyGuaidenceContent(String sessionId,String type,String content,String contentType,String businessType, String extend){
|
|
|
try {
|
|
|
BaseSystemDialogSetting setting = dialogSettingDao.findBySystemTypeAndFunctionType(sessionTypeToType(type),"7",1);
|
|
|
String systemType = sessionTypeToType(type);
|
|
|
BaseSystemDialogSetting setting = dialogSettingDao.findBySystemTypeAndFunctionType(systemType,"7",1);
|
|
|
if(setting==null){
|
|
|
return;
|
|
|
}
|
|
@ -230,6 +231,7 @@ public class RobotService {
|
|
|
contentTypes = ImUtil.ContentType.KnowCommonQuestions+"";
|
|
|
contentMsg = selectByContentType(contentTypes,flowConfigurationRelation.getRelationCode()).toJSONString();
|
|
|
}
|
|
|
|
|
|
imService.patientGuaidenceAppend(dictDO.getDictCode(),dictDO.getDictValue(),sessionId,
|
|
|
contentTypes+"", contentMsg, "1",null);
|
|
|
}
|
|
@ -380,7 +382,7 @@ public class RobotService {
|
|
|
|
|
|
//查找常见问题
|
|
|
public BaseKnowledgeQuestion findQuestionLikeName(String content){
|
|
|
if(StringUtils.isNotEmpty(content)){
|
|
|
if(!StringUtils.isNotEmpty(content)){
|
|
|
return null;
|
|
|
}
|
|
|
String sql = "select p.* from base_knowledge_question p where p.status = 1 and p.del=1 and " +
|
|
@ -395,7 +397,7 @@ public class RobotService {
|
|
|
|
|
|
//查找常见问题关联配置
|
|
|
public List<BaseKnowledgeFlowConfigurationRelation> findFlowConfigurationRelationLikeName(String content){
|
|
|
if(StringUtils.isNotEmpty(content)){
|
|
|
if(!StringUtils.isNotEmpty(content)){
|
|
|
return null;
|
|
|
}
|
|
|
String sql = "select p.* from base_knowledge_flow_configuration_relation p where " +
|
|
@ -436,20 +438,20 @@ public class RobotService {
|
|
|
* @return
|
|
|
*/
|
|
|
//会话类型转类型
|
|
|
private String sessionTypeToType(String type){
|
|
|
if(StringUtils.isNotEmpty(type)){
|
|
|
public String sessionTypeToType(String type){
|
|
|
if(!StringUtils.isNotEmpty(type)){
|
|
|
return type;
|
|
|
}
|
|
|
if("18".equals(type)){
|
|
|
if("18".equalsIgnoreCase(type)){
|
|
|
return "1";
|
|
|
}
|
|
|
if("26".equals(type)){
|
|
|
if("26".equalsIgnoreCase(type)){
|
|
|
return "2";
|
|
|
}
|
|
|
if("27".equals(type)){
|
|
|
if("27".equalsIgnoreCase(type)){
|
|
|
return "3";
|
|
|
}
|
|
|
if("1".equals(type)||"5".equals(type)||"9".equals(type)||"12".equals(type)||"15".equals(type)||"16".equals(type)){
|
|
|
if("1".equalsIgnoreCase(type)||"5".equalsIgnoreCase(type)||"9".equalsIgnoreCase(type)||"12".equalsIgnoreCase(type)||"15".equalsIgnoreCase(type)||"16".equalsIgnoreCase(type)){
|
|
|
return "4";
|
|
|
}
|
|
|
return type;
|