mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-11-27 04:49:47 +01:00
fix:删除无用方法
This commit is contained in:
parent
8ad22dc082
commit
918c47669c
2 changed files with 0 additions and 22 deletions
|
|
@ -27,10 +27,3 @@ public interface AgentPluginMappingService extends IService<AgentPluginMapping>
|
||||||
*/
|
*/
|
||||||
void deleteByAgentId(String agentId);
|
void deleteByAgentId(String agentId);
|
||||||
|
|
||||||
/**
|
|
||||||
* 根据知识库ID删除插件映射记录
|
|
||||||
*
|
|
||||||
* @param knowledgeBaseId 知识库ID
|
|
||||||
*/
|
|
||||||
void deleteByKnowledgeBaseId(String knowledgeBaseId);
|
|
||||||
}
|
|
||||||
|
|
|
||||||
|
|
@ -106,19 +106,4 @@ public class AgentPluginMappingServiceImpl extends ServiceImpl<AgentPluginMappin
|
||||||
agentPluginMappingMapper.delete(updateWrapper);
|
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);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue