wangmiaomiao 10 months ago
parent
commit
f1fea059d3

+ 1 - 1
slibra-admin/src/main/java/com/slibra/web/controller/business/FrontController.java

@@ -242,7 +242,7 @@ public class FrontController extends BaseController {
      * 标记问题是否满意
      * @return
      */
-    @GetMapping("/bigModel/chat/isSatisfiedAnswer/{id}")
+    @PutMapping("/bigModel/chat/isSatisfiedAnswer")
     public AjaxResult isSatisfiedAnswer(ChatReq chatReq)
     {
         log.info("进入了 标记问题是否满意  接口");

+ 2 - 1
slibra-admin/src/main/java/com/slibra/web/controller/business/GRPCController.java

@@ -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();