新增告警分类配置

This commit is contained in:
weitang 2025-05-13 10:56:07 +08:00
parent 82f58dc262
commit 224b12c226
24 changed files with 672 additions and 0 deletions

View File

@ -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;
/**
* <p>
* 算法分类和部件关联
* 前端控制器
* </p>
*
* @author zhengsl
* @since 2025-05-13
*/
@RestController
@RequestMapping("/algorithm/algorithm-class-component")
public class AlgorithmClassComponentController {
}

View File

@ -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;
/**
* <p>
* 算法分类
* 前端控制器
* </p>
*
* @author zhengsl
* @since 2025-05-13
*/
@RestController
@RequestMapping("/algorithm/algorithm-class")
public class AlgorithmClassController {
}

View File

@ -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;
/**
* <p>
* 算法分类部件点位关联
* 前端控制器
* </p>
*
* @author zhengsl
* @since 2025-05-13
*/
@RestController
@RequestMapping("/algorithm/algorithm-device")
public class AlgorithmDeviceController {
}

View File

@ -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;
/**
* <p>
* 算法分类参数
* 前端控制器
* </p>
*
* @author zhengsl
* @since 2025-05-13
*/
@RestController
@RequestMapping("/algorithm/algorithm-params")
public class AlgorithmParamsController {
}

View File

@ -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;
/**
* <p>
*
* </p>
*
* @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;
}

View File

@ -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;
/**
* <p>
*
* </p>
*
* @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;
}

View File

@ -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;
/**
* <p>
*
* </p>
*
* @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;
}

View File

@ -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;
/**
* <p>
*
* </p>
*
* @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;
/**
* 是否固定参数01当为否时需要关联巡视点位或者信号
*/
private String paramFixed;
/**
* 数据状态
*/
private String datastatus;
/**
* 修改人
*/
private String lastmodifier;
/**
* 最近修改时间
*/
private LocalDateTime lastmodifydate;
/**
* 备用1
*/
private String custom1;
/**
* 备用2
*/
private String custom2;
/**
* 备用3
*/
private String custom3;
}

View File

@ -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;
/**
* <p>
* Mapper 接口
* </p>
*
* @author zhengsl
* @since 2025-05-13
*/
public interface AlgorithmClassComponentMapper extends BaseMapper<AlgorithmClassComponent> {
}

View File

@ -0,0 +1,16 @@
package com.yfd.platform.modules.algorithm.mapper;
import com.yfd.platform.modules.algorithm.domain.AlgorithmClass;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
* <p>
* Mapper 接口
* </p>
*
* @author zhengsl
* @since 2025-05-13
*/
public interface AlgorithmClassMapper extends BaseMapper<AlgorithmClass> {
}

View File

@ -0,0 +1,16 @@
package com.yfd.platform.modules.algorithm.mapper;
import com.yfd.platform.modules.algorithm.domain.AlgorithmDevice;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
* <p>
* Mapper 接口
* </p>
*
* @author zhengsl
* @since 2025-05-13
*/
public interface AlgorithmDeviceMapper extends BaseMapper<AlgorithmDevice> {
}

View File

@ -0,0 +1,16 @@
package com.yfd.platform.modules.algorithm.mapper;
import com.yfd.platform.modules.algorithm.domain.AlgorithmParams;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
* <p>
* Mapper 接口
* </p>
*
* @author zhengsl
* @since 2025-05-13
*/
public interface AlgorithmParamsMapper extends BaseMapper<AlgorithmParams> {
}

View File

@ -0,0 +1,16 @@
package com.yfd.platform.modules.algorithm.service;
import com.yfd.platform.modules.algorithm.domain.AlgorithmClassComponent;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* <p>
* 服务类
* </p>
*
* @author zhengsl
* @since 2025-05-13
*/
public interface IAlgorithmClassComponentService extends IService<AlgorithmClassComponent> {
}

View File

@ -0,0 +1,16 @@
package com.yfd.platform.modules.algorithm.service;
import com.yfd.platform.modules.algorithm.domain.AlgorithmClass;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* <p>
* 服务类
* </p>
*
* @author zhengsl
* @since 2025-05-13
*/
public interface IAlgorithmClassService extends IService<AlgorithmClass> {
}

View File

@ -0,0 +1,16 @@
package com.yfd.platform.modules.algorithm.service;
import com.yfd.platform.modules.algorithm.domain.AlgorithmDevice;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* <p>
* 服务类
* </p>
*
* @author zhengsl
* @since 2025-05-13
*/
public interface IAlgorithmDeviceService extends IService<AlgorithmDevice> {
}

View File

@ -0,0 +1,16 @@
package com.yfd.platform.modules.algorithm.service;
import com.yfd.platform.modules.algorithm.domain.AlgorithmParams;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* <p>
* 服务类
* </p>
*
* @author zhengsl
* @since 2025-05-13
*/
public interface IAlgorithmParamsService extends IService<AlgorithmParams> {
}

View File

@ -0,0 +1,20 @@
package com.yfd.platform.modules.algorithm.service.impl;
import com.yfd.platform.modules.algorithm.domain.AlgorithmClassComponent;
import com.yfd.platform.modules.algorithm.mapper.AlgorithmClassComponentMapper;
import com.yfd.platform.modules.algorithm.service.IAlgorithmClassComponentService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
/**
* <p>
* 服务实现类
* </p>
*
* @author zhengsl
* @since 2025-05-13
*/
@Service
public class AlgorithmClassComponentServiceImpl extends ServiceImpl<AlgorithmClassComponentMapper, AlgorithmClassComponent> implements IAlgorithmClassComponentService {
}

View File

@ -0,0 +1,20 @@
package com.yfd.platform.modules.algorithm.service.impl;
import com.yfd.platform.modules.algorithm.domain.AlgorithmClass;
import com.yfd.platform.modules.algorithm.mapper.AlgorithmClassMapper;
import com.yfd.platform.modules.algorithm.service.IAlgorithmClassService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
/**
* <p>
* 服务实现类
* </p>
*
* @author zhengsl
* @since 2025-05-13
*/
@Service
public class AlgorithmClassServiceImpl extends ServiceImpl<AlgorithmClassMapper, AlgorithmClass> implements IAlgorithmClassService {
}

View File

@ -0,0 +1,20 @@
package com.yfd.platform.modules.algorithm.service.impl;
import com.yfd.platform.modules.algorithm.domain.AlgorithmDevice;
import com.yfd.platform.modules.algorithm.mapper.AlgorithmDeviceMapper;
import com.yfd.platform.modules.algorithm.service.IAlgorithmDeviceService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
/**
* <p>
* 服务实现类
* </p>
*
* @author zhengsl
* @since 2025-05-13
*/
@Service
public class AlgorithmDeviceServiceImpl extends ServiceImpl<AlgorithmDeviceMapper, AlgorithmDevice> implements IAlgorithmDeviceService {
}

View File

@ -0,0 +1,20 @@
package com.yfd.platform.modules.algorithm.service.impl;
import com.yfd.platform.modules.algorithm.domain.AlgorithmParams;
import com.yfd.platform.modules.algorithm.mapper.AlgorithmParamsMapper;
import com.yfd.platform.modules.algorithm.service.IAlgorithmParamsService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
/**
* <p>
* 服务实现类
* </p>
*
* @author zhengsl
* @since 2025-05-13
*/
@Service
public class AlgorithmParamsServiceImpl extends ServiceImpl<AlgorithmParamsMapper, AlgorithmParams> implements IAlgorithmParamsService {
}

View File

@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.yfd.platform.modules.algorithm.mapper.AlgorithmClassComponentMapper">
</mapper>

View File

@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.yfd.platform.modules.algorithm.mapper.AlgorithmClassMapper">
</mapper>

View File

@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.yfd.platform.modules.algorithm.mapper.AlgorithmDeviceMapper">
</mapper>

View File

@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.yfd.platform.modules.algorithm.mapper.AlgorithmParamsMapper">
</mapper>