Procházet zdrojové kódy

Merge commit 'd66fcf3ab599297c1d8378e6aa757b56213c5275'

lihao16 před 4 měsíci
rodič
revize
739a3bac73

+ 1 - 0
smsb-admin/src/main/resources/application.yml

@@ -15,6 +15,7 @@ sc:
     secretKey: ExperienceCenterKey01
     publicKey: 0430e45e154b4e73278b0e05d81c530377d4fbade470aefdba484542bb49a04b15aae372084fd7f0792df40d3b6caabccac585027091321b034e1ab0dee258341b
     interfaceId: ZT49DigitalHuman
+    # tenantId: 000000
 
 
 captcha:

+ 3 - 1
smsb-modules/smsb-digital-promotion/src/main/java/com/inspur/digital/service/impl/SmsbAppointmentInfoServiceImpl.java

@@ -79,6 +79,8 @@ public class SmsbAppointmentInfoServiceImpl implements ISmsbAppointmentInfoServi
     private String scApiInterfaceId;
     @Value("${sc.api.appId}")
     private String scApiAppId;
+    // @Value("${sc.api.tenantId}")
+    private static final String scTenantId = "000000";
     @Value("${dify.url}")
     private String difyBaseUrl;
     @Value("${dify.sc_agent.apiKey}")
@@ -641,7 +643,7 @@ public class SmsbAppointmentInfoServiceImpl implements ISmsbAppointmentInfoServi
                 // 同步四个知识库为公共知识库
                 List<SmsbDifyDatasetsQuestionVo> questionVoList = smsbDifyDatasetsQuestionMapper
                     .selectVoList(new LambdaQueryWrapper<SmsbDifyDatasetsQuestion>()
-                        .eq(SmsbDifyDatasetsQuestion::getTenantId, appointmentInfo.getTenantId()));
+                        .eq(SmsbDifyDatasetsQuestion::getTenantId, scTenantId));
                 List<String> qaList = questionVoList.stream()
                     .map(questionVo -> questionVo.getQuestion() + ":" + questionVo.getAnswer())
                     .toList();