diff --git a/riis-system/src/main/java/com/yfd/platform/modules/algorithm/controller/AlgorithmClassComponentController.java b/riis-system/src/main/java/com/yfd/platform/modules/algorithm/controller/AlgorithmClassComponentController.java new file mode 100644 index 0000000..b0b27ad --- /dev/null +++ b/riis-system/src/main/java/com/yfd/platform/modules/algorithm/controller/AlgorithmClassComponentController.java @@ -0,0 +1,21 @@ +package com.yfd.platform.modules.algorithm.controller; + + +import org.springframework.web.bind.annotation.RequestMapping; + +import org.springframework.web.bind.annotation.RestController; + +/** + *
+ * 算法分类和部件关联 + * 前端控制器 + *
+ * + * @author zhengsl + * @since 2025-05-13 + */ +@RestController +@RequestMapping("/algorithm/algorithm-class-component") +public class AlgorithmClassComponentController { + +} diff --git a/riis-system/src/main/java/com/yfd/platform/modules/algorithm/controller/AlgorithmClassController.java b/riis-system/src/main/java/com/yfd/platform/modules/algorithm/controller/AlgorithmClassController.java new file mode 100644 index 0000000..5aca996 --- /dev/null +++ b/riis-system/src/main/java/com/yfd/platform/modules/algorithm/controller/AlgorithmClassController.java @@ -0,0 +1,21 @@ +package com.yfd.platform.modules.algorithm.controller; + + +import org.springframework.web.bind.annotation.RequestMapping; + +import org.springframework.web.bind.annotation.RestController; + +/** + *+ * 算法分类 + * 前端控制器 + *
+ * + * @author zhengsl + * @since 2025-05-13 + */ +@RestController +@RequestMapping("/algorithm/algorithm-class") +public class AlgorithmClassController { + +} diff --git a/riis-system/src/main/java/com/yfd/platform/modules/algorithm/controller/AlgorithmDeviceController.java b/riis-system/src/main/java/com/yfd/platform/modules/algorithm/controller/AlgorithmDeviceController.java new file mode 100644 index 0000000..9fac875 --- /dev/null +++ b/riis-system/src/main/java/com/yfd/platform/modules/algorithm/controller/AlgorithmDeviceController.java @@ -0,0 +1,21 @@ +package com.yfd.platform.modules.algorithm.controller; + + +import org.springframework.web.bind.annotation.RequestMapping; + +import org.springframework.web.bind.annotation.RestController; + +/** + *+ * 算法分类部件点位关联 + * 前端控制器 + *
+ * + * @author zhengsl + * @since 2025-05-13 + */ +@RestController +@RequestMapping("/algorithm/algorithm-device") +public class AlgorithmDeviceController { + +} diff --git a/riis-system/src/main/java/com/yfd/platform/modules/algorithm/controller/AlgorithmParamsController.java b/riis-system/src/main/java/com/yfd/platform/modules/algorithm/controller/AlgorithmParamsController.java new file mode 100644 index 0000000..c3b4a4a --- /dev/null +++ b/riis-system/src/main/java/com/yfd/platform/modules/algorithm/controller/AlgorithmParamsController.java @@ -0,0 +1,21 @@ +package com.yfd.platform.modules.algorithm.controller; + + +import org.springframework.web.bind.annotation.RequestMapping; + +import org.springframework.web.bind.annotation.RestController; + +/** + *+ * 算法分类参数 + * 前端控制器 + *
+ * + * @author zhengsl + * @since 2025-05-13 + */ +@RestController +@RequestMapping("/algorithm/algorithm-params") +public class AlgorithmParamsController { + +} diff --git a/riis-system/src/main/java/com/yfd/platform/modules/algorithm/domain/AlgorithmClass.java b/riis-system/src/main/java/com/yfd/platform/modules/algorithm/domain/AlgorithmClass.java new file mode 100644 index 0000000..c45ef01 --- /dev/null +++ b/riis-system/src/main/java/com/yfd/platform/modules/algorithm/domain/AlgorithmClass.java @@ -0,0 +1,52 @@ +package com.yfd.platform.modules.algorithm.domain; + +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableId; +import com.baomidou.mybatisplus.annotation.TableName; +import java.io.Serializable; +import lombok.Data; +import lombok.EqualsAndHashCode; + +/** + *+ * + *
+ * + * @author zhengsl + * @since 2025-05-13 + */ +@Data +@EqualsAndHashCode(callSuper = false) +@TableName("iis_algorithm_class") +public class AlgorithmClass implements Serializable { + + private static final long serialVersionUID = 1L; + + /** + * 算法分类id + */ + @TableId(type = IdType.ASSIGN_UUID) + private String id; + + /** + * 算法分类编号 + */ + private String algorithmClassCode; + + /** + * 算法分类名称 + */ + private String algorithmClassName; + + /** + * 描述 + */ + private String description; + + /** + * 服务地址 + */ + private String serviceAddress; + + +} diff --git a/riis-system/src/main/java/com/yfd/platform/modules/algorithm/domain/AlgorithmClassComponent.java b/riis-system/src/main/java/com/yfd/platform/modules/algorithm/domain/AlgorithmClassComponent.java new file mode 100644 index 0000000..c0024d3 --- /dev/null +++ b/riis-system/src/main/java/com/yfd/platform/modules/algorithm/domain/AlgorithmClassComponent.java @@ -0,0 +1,92 @@ +package com.yfd.platform.modules.algorithm.domain; + +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableId; +import com.baomidou.mybatisplus.annotation.TableName; +import java.io.Serializable; +import lombok.Data; +import lombok.EqualsAndHashCode; + +/** + *+ * + *
+ * + * @author zhengsl + * @since 2025-05-13 + */ +@Data +@EqualsAndHashCode(callSuper = false) +@TableName("iis_algorithm_class_component") +public class AlgorithmClassComponent implements Serializable { + + private static final long serialVersionUID = 1L; + + /** + * id + */ + @TableId(type = IdType.ASSIGN_UUID) + private String id; + + /** + * 算法分类id + */ + private String algorithmId; + + /** + * 变电站编号 + */ + private String stationCode; + + /** + * 变电站名称 + */ + private String stationName; + + /** + * 区域id + */ + private String areaId; + + /** + * 区域名称 + */ + private String areaName; + + /** + * 间隔id + */ + private String bayId; + + /** + * 间隔名称 + */ + private String bayName; + + /** + * 主设备id + */ + private String mainDeviceId; + + /** + * 主设备类型 + */ + private String deviceType; + + /** + * 主设备名称 + */ + private String mainDeviceName; + + /** + * 部件id + */ + private String componentId; + + /** + * 部件名称 + */ + private String componentName; + + +} diff --git a/riis-system/src/main/java/com/yfd/platform/modules/algorithm/domain/AlgorithmDevice.java b/riis-system/src/main/java/com/yfd/platform/modules/algorithm/domain/AlgorithmDevice.java new file mode 100644 index 0000000..b1d9cd9 --- /dev/null +++ b/riis-system/src/main/java/com/yfd/platform/modules/algorithm/domain/AlgorithmDevice.java @@ -0,0 +1,103 @@ +package com.yfd.platform.modules.algorithm.domain; + +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableId; +import com.baomidou.mybatisplus.annotation.TableName; +import java.time.LocalDateTime; +import java.io.Serializable; +import lombok.Data; +import lombok.EqualsAndHashCode; + +/** + *+ * + *
+ * + * @author zhengsl + * @since 2025-05-13 + */ +@Data +@EqualsAndHashCode(callSuper = false) +@TableName("iis_algorithm_device") +public class AlgorithmDevice implements Serializable { + + private static final long serialVersionUID = 1L; + + /** + * ID + */ + @TableId(type = IdType.ASSIGN_UUID) + private String id; + + /** + * 算法分类id + */ + private String dictionaryId; + + /** + * 参数id + */ + private String paramId; + + /** + * 参数名称 + */ + private String paramName; + + /** + * 参数值 + */ + private String paramValue; + + /** + * 部件id + */ + private String componentId; + + /** + * 巡视点位名称(信号名称) + */ + private String deviceName; + + /** + * 巡视点位id(信号id) + */ + private String deviceId; + + /** + * 来源类型(1:巡视点位;2:辅控信号) + */ + private String sourceType; + + /** + * 数据状态 + */ + private String datastatus; + + /** + * 修改人 + */ + private String lastmodifier; + + /** + * 最近修改时间 + */ + private LocalDateTime lastmodifydate; + + /** + * 备用1 + */ + private String custom1; + + /** + * 备用2 + */ + private String custom2; + + /** + * 备用3 + */ + private String custom3; + + +} diff --git a/riis-system/src/main/java/com/yfd/platform/modules/algorithm/domain/AlgorithmParams.java b/riis-system/src/main/java/com/yfd/platform/modules/algorithm/domain/AlgorithmParams.java new file mode 100644 index 0000000..ac0e849 --- /dev/null +++ b/riis-system/src/main/java/com/yfd/platform/modules/algorithm/domain/AlgorithmParams.java @@ -0,0 +1,113 @@ +package com.yfd.platform.modules.algorithm.domain; + +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableId; +import com.baomidou.mybatisplus.annotation.TableName; +import java.time.LocalDateTime; +import java.io.Serializable; +import lombok.Data; +import lombok.EqualsAndHashCode; + +/** + *+ * + *
+ * + * @author zhengsl + * @since 2025-05-13 + */ +@Data +@EqualsAndHashCode(callSuper = false) +@TableName("iis_algorithm_params") +public class AlgorithmParams implements Serializable { + + private static final long serialVersionUID = 1L; + + /** + * id + */ + @TableId(type = IdType.ASSIGN_UUID) + private String id; + + /** + * 算法分类id + */ + private String algorithmId; + + /** + * 参数序号 + */ + private String paramOrder; + + /** + * 参数名称 + */ + private String paramName; + + /** + * 参数中文描述 + */ + private String paramDesc; + + /** + * 参数类型:[('01', '单个文本'), ('02', '文本数组'), ('03', '单个数值'), ('04', '数值数组'), ('05', 'Json对象'),('06', 'Json数组'), ('07', 'csv数据文件'), ('08', '单张图片'),('09', '图片文件包'),('10', 'Json文件')] + */ + private String paramType; + + /** + * 自定义描述参数单位 + */ + private String paramUnit; + + /** + * 参数范围 + */ + private String paramRange; + + /** + * 默认值 + */ + private String defaultValues; + + /** + * 参数描述 + */ + private String description; + + /** + * 是否固定参数,0:否;1:是;当为否时需要关联巡视点位或者信号 + */ + private String paramFixed; + + /** + * 数据状态 + */ + private String datastatus; + + /** + * 修改人 + */ + private String lastmodifier; + + /** + * 最近修改时间 + */ + private LocalDateTime lastmodifydate; + + /** + * 备用1 + */ + private String custom1; + + /** + * 备用2 + */ + private String custom2; + + /** + * 备用3 + */ + private String custom3; + + +} diff --git a/riis-system/src/main/java/com/yfd/platform/modules/algorithm/mapper/AlgorithmClassComponentMapper.java b/riis-system/src/main/java/com/yfd/platform/modules/algorithm/mapper/AlgorithmClassComponentMapper.java new file mode 100644 index 0000000..7de38b9 --- /dev/null +++ b/riis-system/src/main/java/com/yfd/platform/modules/algorithm/mapper/AlgorithmClassComponentMapper.java @@ -0,0 +1,16 @@ +package com.yfd.platform.modules.algorithm.mapper; + +import com.yfd.platform.modules.algorithm.domain.AlgorithmClassComponent; +import com.baomidou.mybatisplus.core.mapper.BaseMapper; + +/** + *+ * Mapper 接口 + *
+ * + * @author zhengsl + * @since 2025-05-13 + */ +public interface AlgorithmClassComponentMapper extends BaseMapper+ * Mapper 接口 + *
+ * + * @author zhengsl + * @since 2025-05-13 + */ +public interface AlgorithmClassMapper extends BaseMapper+ * Mapper 接口 + *
+ * + * @author zhengsl + * @since 2025-05-13 + */ +public interface AlgorithmDeviceMapper extends BaseMapper+ * Mapper 接口 + *
+ * + * @author zhengsl + * @since 2025-05-13 + */ +public interface AlgorithmParamsMapper extends BaseMapper+ * 服务类 + *
+ * + * @author zhengsl + * @since 2025-05-13 + */ +public interface IAlgorithmClassComponentService extends IService+ * 服务类 + *
+ * + * @author zhengsl + * @since 2025-05-13 + */ +public interface IAlgorithmClassService extends IService+ * 服务类 + *
+ * + * @author zhengsl + * @since 2025-05-13 + */ +public interface IAlgorithmDeviceService extends IService+ * 服务类 + *
+ * + * @author zhengsl + * @since 2025-05-13 + */ +public interface IAlgorithmParamsService extends IService+ * 服务实现类 + *
+ * + * @author zhengsl + * @since 2025-05-13 + */ +@Service +public class AlgorithmClassComponentServiceImpl extends ServiceImpl+ * 服务实现类 + *
+ * + * @author zhengsl + * @since 2025-05-13 + */ +@Service +public class AlgorithmClassServiceImpl extends ServiceImpl+ * 服务实现类 + *
+ * + * @author zhengsl + * @since 2025-05-13 + */ +@Service +public class AlgorithmDeviceServiceImpl extends ServiceImpl+ * 服务实现类 + *
+ * + * @author zhengsl + * @since 2025-05-13 + */ +@Service +public class AlgorithmParamsServiceImpl extends ServiceImpl