Explorar o código

add:新增实体类

miloma93@163.com hai 3 meses
pai
achega
49ef244e7c

+ 20 - 0
src/main/java/com/sw/patroleditor/domain/dto/AreaDTO.java

@@ -0,0 +1,20 @@
+package com.sw.patroleditor.domain.dto;
+
+import com.baomidou.mybatisplus.annotation.TableName;
+import lombok.Data;
+
+@Data
+@TableName("area")
+public class AreaDTO {
+
+    private Integer id;
+
+    private String areaName;
+
+    private Integer type;
+
+    private String typeName;
+
+    private Integer preLevel;
+
+}

+ 58 - 0
src/main/java/com/sw/patroleditor/domain/dto/PointDTO.java

@@ -0,0 +1,58 @@
+package com.sw.patroleditor.domain.dto;
+
+import com.baomidou.mybatisplus.annotation.TableName;
+import lombok.Data;
+
+import java.io.Serializable;
+
+/**
+ * 点参数表。
+地图信息,点的种类和位置信息。
+ * point
+ */
+@Data
+@TableName("point")
+public class PointDTO{
+    /**
+     * 编号
+     */
+    private Integer id;
+
+    /**
+     * Point UID for mapping with RCPM
+     */
+    private String uuid;
+
+    /**
+     * 种类:起点、充电点、交点、停靠点。
+     */
+    private Integer type;
+
+    /**
+     * 绝对物理位置X坐标 unit:mm
+     */
+    private Integer absolutePosX;
+
+    /**
+     * 绝对物理位置Y坐标 unit:mm
+     */
+    private Integer absolutePosY;
+
+    /**
+     * 地图相对位置X坐标 unit:pix
+     */
+    private Integer relativePosX;
+
+    /**
+     * 地图相对位置Y坐标 unit:pix
+     */
+    private Integer relativePosY;
+
+    /**
+     * 机器人朝向
+     */
+    private Double yaw;
+
+    private String note;
+
+}

+ 159 - 0
src/main/java/com/sw/patroleditor/domain/dto/StrategyDTO.java

@@ -0,0 +1,159 @@
+package com.sw.patroleditor.domain.dto;
+
+import lombok.Data;
+
+import java.io.Serializable;
+
+/**
+ * 巡检策略参数表。
+算法信息,包含目标识别算法需要的所有参数。
+ * strategy
+ */
+@Data
+public class StrategyDTO {
+    /**
+     * 编号
+     */
+    private Integer id;
+
+    /**
+     * 巡检目标编号
+与巡检点编号对应
+     */
+    private Long targetId;
+
+    /**
+     * 算法种类
+     */
+    private Integer algorithm;
+
+    /**
+     * 量程下限
+     */
+    private Double rangeMin;
+
+    /**
+     * 量程上限
+     */
+    private Double rangeMax;
+
+    /**
+     * 量程范围
+     */
+    private Double resolution;
+
+    /**
+     * 阵列式巡检目标类型矩阵
+     */
+    private String matrix;
+
+    /**
+     * 瞄准图片模板
+     */
+    private String aimPic;
+
+    /**
+     * 抵近图片模板
+     */
+    private String zoominPic;
+
+    /**
+     * 通用参数
+     */
+    private String param0;
+
+    /**
+     * 通用参数:算法标记绘图点坐标
+     */
+    private String param1;
+
+    /**
+     * 通用参数:标记类型刻度范围
+     */
+    private String param2;
+
+    /**
+     * 通用参数
+     */
+    private String param3;
+
+    /**
+     * 通用参数
+     */
+    private String param4;
+
+    /**
+     * 通用参数
+     */
+    private String param5;
+
+    /**
+     * 通用参数
+     */
+    private String param6;
+
+    /**
+     * 通用参数
+     */
+    private String param7;
+
+    /**
+     * 通用参数
+     */
+    private String param8;
+
+    /**
+     * 通用参数
+     */
+    private String param9;
+
+    /**
+     * 通用参数
+     */
+    private String param10;
+
+    /**
+     * 通用参数
+     */
+    private String param11;
+
+    /**
+     * 通用参数
+     */
+    private String param12;
+
+    /**
+     * 通用参数
+     */
+    private String param13;
+
+    /**
+     * 通用参数
+     */
+    private String param14;
+
+    /**
+     * 通用参数
+     */
+    private String param15;
+
+    /**
+     * 通用参数
+     */
+    private String param16;
+
+    /**
+     * 通用参数
+     */
+    private String param17;
+
+    /**
+     * 通用参数
+     */
+    private String param18;
+
+    /**
+     * 通用参数:算法参照值(例:{"0":"开","1":"合","2":"","3":"","4":"","5":"","6":"","7":"","8":""})
+     */
+    private String param19;
+}

+ 133 - 0
src/main/java/com/sw/patroleditor/domain/dto/TargetDTO.java

@@ -0,0 +1,133 @@
+package com.sw.patroleditor.domain.dto;
+
+import lombok.Data;
+
+import java.io.Serializable;
+
+/**
+ * 巡检目标信息表
+描述信息,巡检目标物理信息及描述信息
+ * target
+ */
+@Data
+public class TargetDTO implements Serializable {
+    /**
+     * 编号
+     */
+    private Long id;
+
+    /**
+     * 停靠点编号与停靠点编号对应
+     */
+    private Integer pointId;
+
+    /**
+     * 巡检目标名称
+     */
+    private String name;
+
+    /**
+     * 数据单位
+     */
+    private String unit;
+
+    /**
+     * 通用描述信息:区域管理 lv1 id(供电公司id)
+     */
+    private Integer info0;
+
+    /**
+     * 通用描述信息:区域管理 lv2 id(变电站id)
+     */
+    private Integer info1;
+
+    /**
+     * 通用描述信息:区域管理 lv3 id(间隔/机柜id)
+     */
+    private Integer info2;
+
+    /**
+     * 通用描述信息:区域管理 lv4 id(小类设备id)
+     */
+    private Integer info3;
+
+    /**
+     * 通用描述信息
+     */
+    private Integer info4;
+
+    /**
+     * 通用描述信息
+     */
+    private Integer info5;
+
+    /**
+     * 通用描述信息
+     */
+    private Integer info6;
+
+    /**
+     * 通用描述信息
+     */
+    private Integer info7;
+
+    /**
+     * 通用描述信息
+     */
+    private Integer info8;
+
+    /**
+     * 通用描述信息:算法类型 大类编码(1:图像识别 2:红外检测 3:局放检测 4:环境检测 5:声音检测)
+     */
+    private Integer info9;
+
+    /**
+     * 通用描述信息
+     */
+    private Integer info10;
+
+    /**
+     * 通用描述信息
+     */
+    private Integer info11;
+
+    /**
+     * 通用描述信息
+     */
+    private Integer info12;
+
+    /**
+     * 通用描述信息
+     */
+    private Integer info13;
+
+    /**
+     * 通用描述信息
+     */
+    private Integer info14;
+
+    /**
+     * 通用描述信息
+     */
+    private Integer info15;
+
+    /**
+     * 通用描述信息
+     */
+    private Integer info16;
+
+    /**
+     * 通用描述信息
+     */
+    private Integer info17;
+
+    /**
+     * 通用描述信息
+     */
+    private Integer info18;
+
+    /**
+     * 通用描述信息
+     */
+    private Integer info19;
+}

+ 10 - 0
src/main/java/com/sw/patroleditor/mapper/AreaMapper.java

@@ -0,0 +1,10 @@
+package com.sw.patroleditor.mapper;
+
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import com.sw.patroleditor.domain.dto.AreaDTO;
+import org.springframework.stereotype.Component;
+
+@Component
+public interface AreaMapper extends BaseMapper<AreaDTO> {
+
+}

+ 10 - 0
src/main/java/com/sw/patroleditor/mapper/PointMapper.java

@@ -0,0 +1,10 @@
+package com.sw.patroleditor.mapper;
+
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import com.sw.patroleditor.domain.dto.PointDTO;
+import org.springframework.stereotype.Component;
+
+@Component
+public interface PointMapper extends BaseMapper<PointDTO> {
+
+}

+ 10 - 0
src/main/java/com/sw/patroleditor/mapper/StrategyMapper.java

@@ -0,0 +1,10 @@
+package com.sw.patroleditor.mapper;
+
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import com.sw.patroleditor.domain.dto.StrategyDTO;
+import org.springframework.stereotype.Component;
+
+@Component
+public interface StrategyMapper extends BaseMapper<StrategyDTO> {
+
+}

+ 10 - 0
src/main/java/com/sw/patroleditor/mapper/TargetMapper.java

@@ -0,0 +1,10 @@
+package com.sw.patroleditor.mapper;
+
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import com.sw.patroleditor.domain.dto.TargetDTO;
+import org.springframework.stereotype.Component;
+
+@Component
+public interface TargetMapper extends BaseMapper<TargetDTO> {
+
+}

+ 5 - 0
src/main/resources/mapper/AimMapper.xml

@@ -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.sw.patroleditor.mapper.AimMapper">
+
+</mapper>

+ 6 - 0
src/main/resources/mapper/AreaMapper.xml

@@ -0,0 +1,6 @@
+<?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.sw.patroleditor.mapper.AreaMapper">
+
+
+</mapper>

+ 5 - 0
src/main/resources/mapper/PointMapper.xml

@@ -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.sw.patroleditor.mapper.PointMapper">
+
+</mapper>

+ 6 - 0
src/main/resources/mapper/StrategyMapper.xml

@@ -0,0 +1,6 @@
+<?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.sw.patroleditor.mapper.StrategyMapper">
+
+
+</mapper>

+ 6 - 0
src/main/resources/mapper/TargetMapper.xml

@@ -0,0 +1,6 @@
+<?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.sw.patroleditor.mapper.TargetMapper">
+
+
+</mapper>

+ 5 - 0
src/main/resources/mapper/ZoominMapper.xml

@@ -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.sw.patroleditor.mapper.ZoominMapper">
+
+</mapper>