‘liusuyi’
2023-09-04 678fb878eec1c670a685fe84d8b36f77315069b3
塔管理增加模型字段
已修改2个文件
68 ■■■■■ 文件已修改
ard-work/src/main/java/com/ruoyi/device/tower/domain/ArdTowers.java 21 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ard-work/src/main/resources/mapper/device/ArdTowersMapper.xml 47 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ard-work/src/main/java/com/ruoyi/device/tower/domain/ArdTowers.java
@@ -18,7 +18,9 @@
    private static final long serialVersionUID = 1L;
    /** id */
    /**
     * id
     */
    private String id;
    /**
@@ -45,7 +47,9 @@
    @Excel(name = "高程")
    private Double altitude;
    /** 用户id */
    /**
     * 用户id
     */
    @ApiModelProperty(hidden = true)
    private String userId;
@@ -54,4 +58,17 @@
     */
    private Long deptId;
    private String direction; // 塔方位角
    private String towerScale; // 塔比例
    private String towerPath;// 塔模型
    private String peOffset; // 光电偏移
    private String peScale; // 光电比例
    private String pePath; // 光电模型
    private String radarOffset; // 雷达偏移
    private String radarScale; // 雷达缩放
    private String radarPath; // 雷达模型
}
ard-work/src/main/resources/mapper/device/ArdTowersMapper.xml
@@ -16,6 +16,15 @@
        <result property="createTime" column="create_time"/>
        <result property="updateBy" column="update_by"/>
        <result property="updateTime" column="update_time"/>
        <result property="direction" column="direction"/>
        <result property="towerScale" column="tower_scale"/>
        <result property="towerPath" column="tower_path"/>
        <result property="peOffset" column="pe_offset"/>
        <result property="peScale" column="pe_scale"/>
        <result property="pePath" column="pe_path"/>
        <result property="radarOffset" column="radar_offset"/>
        <result property="radarScale" column="radar_scale"/>
        <result property="radarPath" column="radar_path"/>
    </resultMap>
    <sql id="selectArdTowersVo">
@@ -29,7 +38,16 @@
               c.create_by,
               c.create_time,
               c.update_by,
               c.update_time
               c.update_time,
               c.direction,
               c.tower_scale,
               c.tower_path,
               c.pe_offset,
               c.pe_scale,
               c.pe_path,
               c.radar_offset,
               c.radar_scale,
               c.radar_path
        from ard_towers c
                 left join sys_dept d on d.dept_id = c.dept_id
                 left join sys_user u on u.user_id = c.user_id
@@ -70,6 +88,15 @@
            <if test="createTime != null">create_time,</if>
            <if test="updateBy != null">update_by,</if>
            <if test="updateTime != null">update_time,</if>
            <if test="direction != null">direction,</if>
            <if test="towerScale != null">tower_scale,</if>
            <if test="towerPath != null">tower_path,</if>
            <if test="peOffset != null">pe_offset,</if>
            <if test="peScale != null">pe_scale,</if>
            <if test="pePath != null">pe_path,</if>
            <if test="radarOffset != null">radar_offset,</if>
            <if test="radarScale != null">radar_scale,</if>
            <if test="radarPath != null">radar_path,</if>
        </trim>
        <trim prefix="values (" suffix=")" suffixOverrides=",">
            <if test="id != null">#{id},</if>
@@ -83,6 +110,15 @@
            <if test="createTime != null">#{createTime},</if>
            <if test="updateBy != null">#{updateBy},</if>
            <if test="updateTime != null">#{updateTime},</if>
            <if test="direction != null">#{direction},</if>
            <if test="towerScale != null">#{towerScale},</if>
            <if test="towerPath != null">#{towerPath},</if>
            <if test="peOffset != null">#{peOffset},</if>
            <if test="peScale != null">#{peScale},</if>
            <if test="pePath != null">#{pePath},</if>
            <if test="radarOffset != null">#{radarOffset},</if>
            <if test="radarScale != null">#{radarScale},</if>
            <if test="radarPath != null">#{radarPath},</if>
        </trim>
    </insert>
@@ -99,6 +135,15 @@
            <if test="createTime != null">create_time = #{createTime},</if>
            <if test="updateBy != null">update_by = #{updateBy},</if>
            <if test="updateTime != null">update_time = #{updateTime},</if>
            <if test="direction != null">direction=#{direction},</if>
            <if test="towerScale != null">tower_scale=#{towerScale},</if>
            <if test="towerPath != null">tower_path=#{towerPath},</if>
            <if test="peOffset != null">pe_offset=#{peOffset},</if>
            <if test="peScale != null">pe_scale=#{peScale},</if>
            <if test="pePath != null">pe_path=#{pePath},</if>
            <if test="radarOffset != null">radar_offset=#{radarOffset},</if>
            <if test="radarScale != null">radar_scale=#{radarScale},</if>
            <if test="radarPath != null">radar_path=#{radarPath},</if>
        </trim>
        where id = #{id}
    </update>