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