|
@@ -209,6 +209,7 @@ public class GRPCController extends BaseController {
|
|
|
StringBuilder sb = new StringBuilder();
|
|
|
String sessionId = chatReq.getSessionId();
|
|
|
String question = chatReq.getQuestion();
|
|
|
+ Integer module = chatReq.getModule();//来自那个模块
|
|
|
int counts = 1;//默认是第一次
|
|
|
List<String> historyDates = new ArrayList<>();
|
|
|
//查询历史数据,放入集合中
|
|
@@ -277,7 +278,7 @@ public class GRPCController extends BaseController {
|
|
|
chatReq.setSessionId(sessionId);
|
|
|
chatReq.setAnswer(sb.toString());
|
|
|
chatReq.setType(0);//0问答 1决策
|
|
|
- chatReq.setModule(0);//0=专家问答,1=智能工单,2=智能体助手,3.告警
|
|
|
+ chatReq.setModule(module);//0=专家问答,1=智能工单,2=智能体助手,3.告警
|
|
|
chatReq.setShowVal(question);
|
|
|
chatReq.setCounts(counts);//问答次数
|
|
|
String userId = SecurityUtils.getUserId().toString();
|