【功能优化】IoT:重构上行请求处理逻辑,合并属性和事件上报处理,简化代码结构,删除冗余处理器

This commit is contained in:
安浩浩
2025-03-15 17:56:45 +08:00
parent 348c138749
commit 81739186c9
9 changed files with 201 additions and 264 deletions

View File

@@ -64,17 +64,6 @@
<artifactId>yudao-spring-boot-starter-excel</artifactId>
</dependency>
<!-- TODO @haohao貌似不需要这个 -->
<!-- <dependency>-->
<!-- <groupId>io.vertx</groupId>-->
<!-- <artifactId>vertx-web</artifactId>-->
<!-- </dependency>-->
<!-- TODO @haohao貌似 biz 模块,不需要 MQTT -->
<!-- <dependency>-->
<!-- <groupId>org.eclipse.paho</groupId> &lt;!&ndash; MQTT &ndash;&gt;-->
<!-- <artifactId>org.eclipse.paho.client.mqttv3</artifactId>-->
<!-- </dependency>-->
<!-- 消息队列相关 -->
<dependency>
<groupId>org.apache.rocketmq</groupId>

View File

@@ -10,7 +10,6 @@ import org.apache.kafka.common.serialization.StringSerializer;
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
import org.springframework.kafka.core.DefaultKafkaProducerFactory;
import org.springframework.kafka.core.KafkaTemplate;
import org.springframework.stereotype.Component;
import java.time.Duration;
import java.time.LocalDateTime;
@@ -24,7 +23,7 @@ import java.util.concurrent.TimeUnit;
* @author HUIHUI
*/
@ConditionalOnClass(name = "org.springframework.kafka.core.KafkaTemplate")
@Component
//@Component
@Slf4j
public class IotKafkaMQDataBridgeExecute extends
AbstractCacheableDataBridgeExecute<IotDataBridgeKafkaMQConfig, KafkaTemplate<String, String>> {