|  |  |  | 
|---|
|  |  |  | <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"> | 
|---|
|  |  |  | 
|---|
|  |  |  | 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 | 
|---|
|  |  |  | 
|---|
|  |  |  | <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> | 
|---|
|  |  |  | 
|---|
|  |  |  | <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> | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 
|---|
|  |  |  | <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> | 
|---|