| 
					
				 | 
			
			
				@@ -0,0 +1,130 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+<?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.ruoyi.qdtl.mapper.TlInspectionLocationLogMapper"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    <resultMap type="TlInspectionLocationLog" id="TlInspectionLocationLogResult"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <result property="id" column="id"/> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <result property="checkpointId" column="checkpoint_id"/> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <result property="checkpointName" column="checkpoint_name"/> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <result property="checkpointCard" column="checkpoint_card"/> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <result property="patrolmanId" column="patrolman_id"/> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <result property="patrolmanName" column="patrolman_name"/> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <result property="patrolmanCard" column="patrolman_card"/> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <result property="createTime" column="create_time"/> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <result property="deviceId" column="device_id"/> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <result property="deviceName" column="device_name"/> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <result property="deviceCode" column="device_code"/> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <result property="areaId" column="area_id"/> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <result property="areaName" column="area_name"/> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    </resultMap> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    <sql id="selectTlInspectionLocationLogVo"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        select id, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+               checkpoint_id, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+               checkpoint_name, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+               checkpoint_card, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+               patrolman_id, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+               patrolman_name, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+               patrolman_card, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+               create_time, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+               device_id, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+               device_name, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+               device_code, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+               area_id, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+               area_name 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        from tl_inspection_location_log 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    </sql> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    <select id="selectTlInspectionLocationLogList" parameterType="TlInspectionLocationLog" resultMap="TlInspectionLocationLogResult"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <include refid="selectTlInspectionLocationLogVo"/> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <where> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="checkpointId != null  and checkpointId != ''">and checkpoint_id = #{checkpointId}</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="checkpointName != null  and checkpointName != ''">and checkpoint_name like concat('%', #{checkpointName}, '%')</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="checkpointCard != null  and checkpointCard != ''">and checkpoint_card = #{checkpointCard}</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="patrolmanId != null  and patrolmanId != ''">and patrolman_id = #{patrolmanId}</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="patrolmanName != null  and patrolmanName != ''">and patrolman_name like concat('%', #{patrolmanName}, '%')</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="patrolmanCard != null  and patrolmanCard != ''">and patrolman_card = #{patrolmanCard}</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="deviceId != null  and deviceId != ''">and device_id = #{deviceId}</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="deviceName != null  and deviceName != ''">and device_name like concat('%', #{deviceName}, '%')</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="deviceCode != null  and deviceCode != ''">and device_code = #{deviceCode}</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="areaId != null  and areaId != ''">and area_id = #{areaId}</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="areaName != null  and areaName != ''">and area_name like concat('%', #{areaName}, '%')</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        </where> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    </select> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    <select id="selectTlInspectionLocationLogById" parameterType="Long" resultMap="TlInspectionLocationLogResult"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <include refid="selectTlInspectionLocationLogVo"/> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        where id = #{id} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    </select> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    <select id="queryMaxDate" resultType="java.util.Date"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        select max(create_time) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        from tl_inspection_location_log 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    </select> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    <insert id="insertTlInspectionLocationLog" parameterType="TlInspectionLocationLog" useGeneratedKeys="true" keyProperty="id"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        insert into tl_inspection_location_log 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <trim prefix="(" suffix=")" suffixOverrides=","> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="checkpointId != null">checkpoint_id,</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="checkpointName != null">checkpoint_name,</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="checkpointCard != null">checkpoint_card,</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="patrolmanId != null">patrolman_id,</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="patrolmanName != null">patrolman_name,</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="patrolmanCard != null">patrolman_card,</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="createTime != null">create_time,</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="deviceId != null">device_id,</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="deviceName != null">device_name,</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="deviceCode != null">device_code,</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="areaId != null">area_id,</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="areaName != null">area_name,</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        </trim> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <trim prefix="values (" suffix=")" suffixOverrides=","> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="checkpointId != null">#{checkpointId},</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="checkpointName != null">#{checkpointName},</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="checkpointCard != null">#{checkpointCard},</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="patrolmanId != null">#{patrolmanId},</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="patrolmanName != null">#{patrolmanName},</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="patrolmanCard != null">#{patrolmanCard},</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="createTime != null">#{createTime},</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="deviceId != null">#{deviceId},</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="deviceName != null">#{deviceName},</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="deviceCode != null">#{deviceCode},</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="areaId != null">#{areaId},</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="areaName != null">#{areaName},</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        </trim> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    </insert> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    <update id="updateTlInspectionLocationLog" parameterType="TlInspectionLocationLog"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        update tl_inspection_location_log 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <trim prefix="SET" suffixOverrides=","> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="checkpointId != null">checkpoint_id = #{checkpointId},</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="checkpointName != null">checkpoint_name = #{checkpointName},</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="checkpointCard != null">checkpoint_card = #{checkpointCard},</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="patrolmanId != null">patrolman_id = #{patrolmanId},</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="patrolmanName != null">patrolman_name = #{patrolmanName},</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="patrolmanCard != null">patrolman_card = #{patrolmanCard},</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="createTime != null">create_time = #{createTime},</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="deviceId != null">device_id = #{deviceId},</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="deviceName != null">device_name = #{deviceName},</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="deviceCode != null">device_code = #{deviceCode},</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="areaId != null">area_id = #{areaId},</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="areaName != null">area_name = #{areaName},</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        </trim> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        where id = #{id} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    </update> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    <delete id="deleteTlInspectionLocationLogById" parameterType="Long"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        delete 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        from tl_inspection_location_log 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        where id = #{id} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    </delete> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    <delete id="deleteTlInspectionLocationLogByIds" parameterType="String"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        delete from tl_inspection_location_log where id in 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <foreach item="id" collection="array" open="(" separator="," close=")"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            #{id} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        </foreach> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    </delete> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+</mapper> 
			 |