Commit d718f801084f9c92ce69b695e059a53a6adb04a5

Authored by YunaiV
1 parent 72451239

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

yudao-framework/yudao-spring-boot-starter-mybatis/pom.xml
@@ -63,6 +63,7 @@ @@ -63,6 +63,7 @@
63 <artifactId>opengauss-jdbc</artifactId> 63 <artifactId>opengauss-jdbc</artifactId>
64 <optional>true</optional> 64 <optional>true</optional>
65 </dependency> 65 </dependency>
  66 + <!-- TODO @haohao:这个最好不要全局开启,而是按需开启哈。 -->
66 <dependency> 67 <dependency>
67 <groupId>com.taosdata.jdbc</groupId> 68 <groupId>com.taosdata.jdbc</groupId>
68 <artifactId>taos-jdbcdriver</artifactId> 69 <artifactId>taos-jdbcdriver</artifactId>
yudao-module-iot/yudao-module-iot-biz/src/main/java/cn/iocoder/yudao/module/iot/framework/plugin/core/IotPluginStartRunner.java
@@ -30,7 +30,6 @@ public class IotPluginStartRunner implements ApplicationRunner { @@ -30,7 +30,6 @@ public class IotPluginStartRunner implements ApplicationRunner {
30 @Override 30 @Override
31 public void run(ApplicationArguments args) { 31 public void run(ApplicationArguments args) {
32 List<IotPluginConfigDO> pluginConfigList = TenantUtils.executeIgnore( 32 List<IotPluginConfigDO> pluginConfigList = TenantUtils.executeIgnore(
33 - // 查询运行中且部署类型为 JAR 的插件  
34 () -> pluginConfigService.getPluginConfigListByStatusAndDeployType( 33 () -> pluginConfigService.getPluginConfigListByStatusAndDeployType(
35 IotPluginStatusEnum.RUNNING.getStatus(), IotPluginDeployTypeEnum.JAR.getDeployType())); 34 IotPluginStatusEnum.RUNNING.getStatus(), IotPluginDeployTypeEnum.JAR.getDeployType()));
36 if (CollUtil.isEmpty(pluginConfigList)) { 35 if (CollUtil.isEmpty(pluginConfigList)) {