【代码评审】IoT:plugin 相关的实现

This commit is contained in:
YunaiV 2025-02-08 07:39:48 +08:00
parent 724512399a
commit d718f80108
2 changed files with 1 additions and 1 deletions

View File

@ -63,6 +63,7 @@
<artifactId>opengauss-jdbc</artifactId> <artifactId>opengauss-jdbc</artifactId>
<optional>true</optional> <optional>true</optional>
</dependency> </dependency>
<!-- TODO @haohao这个最好不要全局开启而是按需开启哈。 -->
<dependency> <dependency>
<groupId>com.taosdata.jdbc</groupId> <groupId>com.taosdata.jdbc</groupId>
<artifactId>taos-jdbcdriver</artifactId> <artifactId>taos-jdbcdriver</artifactId>

View File

@ -30,7 +30,6 @@ public class IotPluginStartRunner implements ApplicationRunner {
@Override @Override
public void run(ApplicationArguments args) { public void run(ApplicationArguments args) {
List<IotPluginConfigDO> pluginConfigList = TenantUtils.executeIgnore( List<IotPluginConfigDO> pluginConfigList = TenantUtils.executeIgnore(
// 查询运行中且部署类型为 JAR 的插件
() -> pluginConfigService.getPluginConfigListByStatusAndDeployType( () -> pluginConfigService.getPluginConfigListByStatusAndDeployType(
IotPluginStatusEnum.RUNNING.getStatus(), IotPluginDeployTypeEnum.JAR.getDeployType())); IotPluginStatusEnum.RUNNING.getStatus(), IotPluginDeployTypeEnum.JAR.getDeployType()));
if (CollUtil.isEmpty(pluginConfigList)) { if (CollUtil.isEmpty(pluginConfigList)) {