mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-07-22 07:03:53 +08:00
fix:删除无用方法
This commit is contained in:
-7
@@ -27,10 +27,3 @@ public interface AgentPluginMappingService extends IService<AgentPluginMapping>
|
||||
*/
|
||||
void deleteByAgentId(String agentId);
|
||||
|
||||
/**
|
||||
* 根据知识库ID删除插件映射记录
|
||||
*
|
||||
* @param knowledgeBaseId 知识库ID
|
||||
*/
|
||||
void deleteByKnowledgeBaseId(String knowledgeBaseId);
|
||||
}
|
||||
|
||||
-15
@@ -106,19 +106,4 @@ public class AgentPluginMappingServiceImpl extends ServiceImpl<AgentPluginMappin
|
||||
agentPluginMappingMapper.delete(updateWrapper);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void deleteByKnowledgeBaseId(String knowledgeBaseId) {
|
||||
if (StringUtils.isBlank(knowledgeBaseId)) {
|
||||
return;
|
||||
}
|
||||
|
||||
UpdateWrapper<AgentPluginMapping> updateWrapper = new UpdateWrapper<>();
|
||||
updateWrapper.eq("plugin_id", knowledgeBaseId);
|
||||
int deletedCount = agentPluginMappingMapper.delete(updateWrapper);
|
||||
|
||||
if (deletedCount > 0) {
|
||||
log.info("已删除 {} 条与知识库ID '{}' 相关的插件映射记录", deletedCount, knowledgeBaseId);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user