|  |  | 
 |  |  |       locate_time = #{locateTime,jdbcType=TIMESTAMP} | 
 |  |  |     where id = #{id,jdbcType=BIGINT} | 
 |  |  |   </update> | 
 |  |  |  | 
 |  |  |   <!--批量添加巡检轨迹--> | 
 |  |  |   <insert id="insertTracks"> | 
 |  |  |     INSERT INTO ope_track (id, inspect_id, lng, lat, locate_time) | 
 |  |  |     VALUES | 
 |  |  |     <foreach collection="list" item="item" index="index" separator=","> | 
 |  |  |       (#{item.id}, #{item.inspectId}, #{item.lng}, #{item.lat}, #{item.locateTime}) | 
 |  |  |     </foreach> | 
 |  |  |   </insert> | 
 |  |  |     <!--根据巡检id查询轨迹--> | 
 |  |  | <!--  <select id="selectByInspectId" resultMap="BaseResultMap">--> | 
 |  |  |   <select id="selectByInspectId" resultType="com.dy.pipIrrGlobal.pojoOp.OpeTrack"> | 
 |  |  |     SELECT | 
 |  |  |       id, | 
 |  |  |       inspect_id AS inspectId, | 
 |  |  |       lng, | 
 |  |  |       lat, | 
 |  |  |       locate_time AS locateTime | 
 |  |  |     FROM ope_track WHERE inspect_id = #{inspectId} | 
 |  |  |   </select> | 
 |  |  |  | 
 |  |  |   <!--获取指定巡检ID下的全部轨迹点--> | 
 |  |  |   <select id="getTrackPointsById" resultType="com.dy.pipIrrGlobal.voOp.VoTrackPoint"> | 
 |  |  |     SELECT lng, lat FROM ope_track WHERE inspect_id = #{inspectId} | 
 |  |  |   </select> | 
 |  |  | </mapper> |