【修改】 名称替换

This commit is contained in:
DESKTOP-932OMT8\REN
2025-05-21 17:28:26 +08:00
parent 3bd8a424ec
commit b5f18ba897
1212 changed files with 1262 additions and 1270 deletions

View File

@@ -9,7 +9,7 @@ import lombok.*;
/**
* IoT 设备分组 DO
*
* @author 芋道源码
* @author 朋辰
*/
@TableName("iot_device_group")
@KeySequence("iot_device_group_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。

View File

@@ -11,7 +11,7 @@ import lombok.*;
*
* @see <a href="阿里云 IoT - OTA 升级">https://help.aliyun.com/zh/iot/user-guide/ota-upgrade-overview</a>
*
* @author 芋道源码
* @author 朋辰
*/
@TableName(value = "iot_ota_firmware", autoResultMap = true)
@KeySequence("iot_ota_firmware_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。

View File

@@ -12,7 +12,7 @@ import java.time.LocalDateTime;
/**
* IoT OTA 升级记录 DO
*
* @author 芋道源码
* @author 朋辰
*/
@TableName(value = "iot_ota_upgrade_record", autoResultMap = true)
@KeySequence("iot_ota_upgrade_record_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。

View File

@@ -13,7 +13,7 @@ import java.util.List;
/**
* IoT OTA 升级任务 DO
*
* @author 芋道源码
* @author 朋辰
*/
@TableName(value = "iot_ota_upgrade_task", autoResultMap = true)
@KeySequence("iot_ota_upgrade_task_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。

View File

@@ -12,7 +12,7 @@ import lombok.*;
/**
* IoT 插件配置 DO
*
* @author 芋道源码
* @author 朋辰
*/
@TableName("iot_plugin_config")
@KeySequence("iot_plugin_config_seq")

View File

@@ -11,7 +11,7 @@ import java.time.LocalDateTime;
/**
* IoT 插件实例 DO
*
* @author 芋道源码
* @author 朋辰
*/
@TableName("iot_plugin_instance")
@KeySequence("iot_plugin_instance_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。

View File

@@ -9,7 +9,7 @@ import lombok.*;
/**
* IoT 产品分类 DO
*
* @author 芋道源码
* @author 朋辰
*/
@TableName("iot_product_category")
@KeySequence("iot_product_category_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。

View File

@@ -15,7 +15,7 @@ import java.util.List;
/**
* IoT 告警配置 DO
*
* @author 芋道源码
* @author 朋辰
*/
@TableName("iot_alert_config")
@KeySequence("iot_alert_config_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。

View File

@@ -13,7 +13,7 @@ import lombok.*;
/**
* IoT 告警记录 DO
*
* @author 芋道源码
* @author 朋辰
*/
@TableName("iot_alert_record")
@KeySequence("iot_alert_record_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。

View File

@@ -15,7 +15,7 @@ import lombok.*;
/**
* IoT 数据桥梁 DO
*
* @author 芋道源码
* @author 朋辰
*/
@TableName(value = "iot_data_bridge", autoResultMap = true)
@KeySequence("iot_data_bridge_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。

View File

@@ -22,7 +22,7 @@ import java.util.Map;
/**
* IoT 规则场景(场景联动) DO
*
* @author 芋道源码
* @author 朋辰
*/
@TableName("iot_rule_scene")
@KeySequence("iot_rule_scene_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。

View File

@@ -21,7 +21,7 @@ import lombok.NoArgsConstructor;
* <p>
* 每个 {@link IotProductDO} 和 {@link IotThingModelDO} 是“一对多”的关系,它的每个属性、事件、服务都对应一条记录
*
* @author 芋道源码
* @author 朋辰
*/
@TableName(value = "iot_thing_model", autoResultMap = true)
@KeySequence("iot_thing_model_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。

View File

@@ -12,7 +12,7 @@ import java.util.List;
/**
* IoT 设备分组 Mapper
*
* @author 芋道源码
* @author 朋辰
*/
@Mapper
public interface IotDeviceGroupMapper extends BaseMapperX<IotDeviceGroupDO> {

View File

@@ -17,7 +17,7 @@ import java.util.Map;
/**
* IoT 设备 Mapper
*
* @author 芋道源码
* @author 朋辰
*/
@Mapper
public interface IotDeviceMapper extends BaseMapperX<IotDeviceDO> {

View File

@@ -14,7 +14,7 @@ import java.util.List;
/**
* IoT 产品分类 Mapper
*
* @author 芋道源码
* @author 朋辰
*/
@Mapper
public interface IotProductCategoryMapper extends BaseMapperX<IotProductCategoryDO> {

View File

@@ -14,7 +14,7 @@ import java.util.List;
/**
* IoT 产品物模型 Mapper
*
* @author 芋道源码
* @author 朋辰
*/
@Mapper
public interface IotThingModelMapper extends BaseMapperX<IotThingModelDO> {

View File

@@ -6,7 +6,7 @@ import pc.exam.pp.module.iot.dal.dataobject.plugin.IotPluginInstanceDO;
/**
* IoT Redis Key 枚举类
*
* @author 芋道源码
* @author 朋辰
*/
public interface RedisKeyConstants {

View File

@@ -12,7 +12,7 @@ import java.util.Set;
/**
* 设备的最后上报时间的 Redis DAO
*
* @author 芋道源码
* @author 朋辰
*/
@Repository
public class DeviceReportTimeRedisDAO {

View File

@@ -10,7 +10,7 @@ import javax.sql.DataSource;
/**
* IoT 模块的 Job 自动配置类
*
* @author 芋道源码
* @author 朋辰
*/
@Configuration
public class IotJobConfiguration {

View File

@@ -16,7 +16,7 @@ import java.util.Properties;
* 疑问:为什么 IoT 模块不复用全局的 SchedulerManager 呢?
* 回复exam-cloud 项目,使用的是 XXL-Job 作为调度中心,无法动态添加任务。
*
* @author 芋道源码
* @author 朋辰
*/
@Slf4j
public class IotSchedulerManager {

View File

@@ -7,7 +7,7 @@ import java.lang.annotation.*;
/**
* TDEngine 数据源
*
* @author 芋道源码
* @author 朋辰
*/
@Target({ElementType.TYPE, ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)

View File

@@ -25,7 +25,7 @@ import java.util.Set;
*
* 检测逻辑:设备最后一条 {@link pc.exam.pp.module.iot.mq.message.IotDeviceMessage} 消息超过一定时间,则认为设备离线
*
* @author 芋道源码
* @author 朋辰
*/
@Component
public class IotDeviceOfflineCheckJob implements JobHandler {

View File

@@ -13,7 +13,7 @@ import java.time.LocalDateTime;
/**
* IoT 插件实例离线检查 Job
*
* @author 芋道源码
* @author 朋辰
*/
@Component
public class IotPluginInstancesJob implements JobHandler {

View File

@@ -13,7 +13,7 @@ import java.util.Map;
/**
* IoT 规则场景 Job用于执行 {@link IotRuleSceneTriggerTypeEnum#TIMER} 类型的规则场景
*
* @author 芋道源码
* @author 朋辰
*/
@Slf4j
public class IotRuleSceneJob extends QuartzJobBean {

View File

@@ -11,7 +11,7 @@ import org.springframework.stereotype.Component;
/**
* 针对 {@link IotDeviceMessage} 的消费者,记录设备日志
*
* @author 芋道源码
* @author 朋辰
*/
@Component
@Slf4j

View File

@@ -24,7 +24,7 @@ import java.util.Objects;
*
* 注意:只有设备上行消息,才会触发该逻辑
*
* @author 芋道源码
* @author 朋辰
*/
@Component
@Slf4j

View File

@@ -11,7 +11,7 @@ import org.springframework.stereotype.Component;
/**
* 针对 {@link IotDeviceMessage} 的消费者,处理规则场景
*
* @author 芋道源码
* @author 朋辰
*/
@Component
@Slf4j

View File

@@ -16,7 +16,7 @@ import static pc.exam.pp.framework.common.util.collection.CollectionUtils.conver
/**
* IoT 设备分组 Service 接口
*
* @author 芋道源码
* @author 朋辰
*/
public interface IotDeviceGroupService {

View File

@@ -19,7 +19,7 @@ import static pc.exam.pp.module.iot.enums.ErrorCodeConstants.DEVICE_GROUP_NOT_EX
/**
* IoT 设备分组 Service 实现类
*
* @author 芋道源码
* @author 朋辰
*/
@Service
@Validated

View File

@@ -16,7 +16,7 @@ import java.util.Map;
/**
* IoT 设备 Service 接口
*
* @author 芋道源码
* @author 朋辰
*/
public interface IotDeviceService {

View File

@@ -44,7 +44,7 @@ import static pc.exam.pp.module.iot.enums.ErrorCodeConstants.*;
/**
* IoT 设备 Service 实现类
*
* @author 芋道源码
* @author 朋辰
*/
@Service
@Validated

View File

@@ -9,7 +9,7 @@ import jakarta.validation.Valid;
*
* 目的:服务端 -> 插件 -> 设备
*
* @author 芋道源码
* @author 朋辰
*/
public interface IotDeviceDownstreamService {

View File

@@ -35,7 +35,7 @@ import static pc.exam.pp.module.iot.enums.ErrorCodeConstants.DEVICE_DOWNSTREAM_F
/**
* IoT 设备下行 Service 实现类
*
* @author 芋道源码
* @author 朋辰
*/
@Service
@Validated

View File

@@ -9,7 +9,7 @@ import jakarta.validation.Valid;
*
* 目的:设备 -> 插件 -> 服务端
*
* @author 芋道源码
* @author 朋辰
*/
public interface IotDeviceUpstreamService {

View File

@@ -34,7 +34,7 @@ import java.util.Objects;
/**
* IoT 设备上行 Service 实现类
*
* @author 芋道源码
* @author 朋辰
*/
@Service
@Validated

View File

@@ -14,7 +14,7 @@ import java.util.Set;
/**
* IoT 设备【属性】数据 Service 接口
*
* @author 芋道源码
* @author 朋辰
*/
public interface IotDevicePropertyService {

View File

@@ -38,7 +38,7 @@ import static pc.exam.pp.framework.common.util.collection.CollectionUtils.*;
/**
* IoT 设备【属性】数据 Service 实现类
*
* @author 芋道源码
* @author 朋辰
*/
@Service
@Slf4j

View File

@@ -10,7 +10,7 @@ import java.time.LocalDateTime;
/**
* IoT 插件实例 Service 接口
*
* @author 芋道源码
* @author 朋辰
*/
public interface IotPluginInstanceService {

View File

@@ -37,7 +37,7 @@ import static pc.exam.pp.framework.common.exception.util.ServiceExceptionUtil.ex
/**
* IoT 插件实例 Service 实现类
*
* @author 芋道源码
* @author 朋辰
*/
@Service
@Validated

View File

@@ -17,7 +17,7 @@ import static pc.exam.pp.framework.common.util.collection.CollectionUtils.conver
/**
* IoT 产品分类 Service 接口
*
* @author 芋道源码
* @author 朋辰
*/
public interface IotProductCategoryService {

View File

@@ -22,7 +22,7 @@ import static pc.exam.pp.module.iot.enums.ErrorCodeConstants.PRODUCT_CATEGORY_NO
/**
* IoT 产品分类 Service 实现类
*
* @author 芋道源码
* @author 朋辰
*/
@Service
@Validated

View File

@@ -9,7 +9,7 @@ import java.util.List;
/**
* IoT 规则场景 Service 接口
*
* @author 芋道源码
* @author 朋辰
*/
public interface IotRuleSceneService {

View File

@@ -45,7 +45,7 @@ import static pc.exam.pp.framework.common.util.collection.CollectionUtils.filter
/**
* IoT 规则场景 Service 实现类
*
* @author 芋道源码
* @author 朋辰
*/
@Service
@Validated

View File

@@ -9,7 +9,7 @@ import javax.annotation.Nullable;
/**
* IoT 规则场景的场景执行器接口
*
* @author 芋道源码
* @author 朋辰
*/
public interface IotRuleSceneAction {

View File

@@ -10,7 +10,7 @@ import javax.annotation.Nullable;
/**
* IoT 告警的 {@link IotRuleSceneAction} 实现类
*
* @author 芋道源码
* @author 朋辰
*/
@Component
public class IotRuleSceneAlertAction implements IotRuleSceneAction {

View File

@@ -17,7 +17,7 @@ import java.util.List;
/**
* IoT 数据桥梁的 {@link IotRuleSceneAction} 实现类
*
* @author 芋道源码
* @author 朋辰
*/
@Component
@Slf4j

View File

@@ -15,7 +15,7 @@ import org.springframework.stereotype.Component;
/**
* IoT 设备控制的 {@link IotRuleSceneAction} 实现类
*
* @author 芋道源码
* @author 朋辰
*/
@Component
@Slf4j

View File

@@ -13,7 +13,7 @@ import java.util.List;
/**
* IoT 产品物模型 Service 接口
*
* @author 芋道源码
* @author 朋辰
*/
public interface IotThingModelService {

View File

@@ -39,7 +39,7 @@ import static pc.exam.pp.module.iot.enums.ErrorCodeConstants.*;
/**
* IoT 产品物模型 Service 实现类
*
* @author 芋道源码
* @author 朋辰
*/
@Service
@Validated