fix:删除无用方法

This commit is contained in:
rainv123
2025-11-13 14:08:39 +08:00
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);
/**
* 根据知识库ID删除插件映射记录
*
* @param knowledgeBaseId 知识库ID
*/
void deleteByKnowledgeBaseId(String knowledgeBaseId);
}
@@ -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);
}
}
}