| 
					
				 | 
			
			
				@@ -0,0 +1,158 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+<?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.TlElectricDeviceMapper"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    <resultMap type="TlElectricDevice" id="TlElectricDeviceResult"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <result property="imei" column="imei"/> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <result property="deviceName" column="device_name"/> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <result property="mcType" column="mc_type"/> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <result property="mcTypeUseScope" column="mc_type_use_scope"/> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <result property="equipType" column="equip_type"/> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <result property="sim" column="sim"/> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <result property="expiration" column="expiration"/> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <result property="activationTime" column="activation_time"/> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <result property="remark" column="re_mark"/> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <result property="vehicleName" column="vehicle_name"/> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <result property="vehicleIcon" column="vehicle_icon"/> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <result property="vehicleNumber" column="vehicle_number"/> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <result property="vehicleModels" column="vehicle_models"/> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <result property="carFrame" column="car_frame"/> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <result property="driverName" column="driver_name"/> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <result property="driverPhone" column="driver_phone"/> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <result property="enabledFlag" column="enabled_flag"/> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <result property="engineNumber" column="engine_number"/> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    </resultMap> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    <sql id="selectTlElectricDeviceVo"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        select imei, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+               device_name, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+               mc_type, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+               mc_type_use_scope, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+               equip_type, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+               sim, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+               expiration, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+               activation_time, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+               re_mark, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+               vehicle_name, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+               vehicle_icon, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+               vehicle_number, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+               vehicle_models, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+               car_frame, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+               driver_name, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+               driver_phone, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+               enabled_flag, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+               engine_number 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        from tl_electric_device 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    </sql> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    <select id="selectTlElectricDeviceList" parameterType="TlElectricDevice" resultMap="TlElectricDeviceResult"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <include refid="selectTlElectricDeviceVo"/> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <where> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="deviceName != null  and deviceName != ''">and device_name like concat('%', #{deviceName}, '%')</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="mcType != null  and mcType != ''">and mc_type = #{mcType}</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="mcTypeUseScope != null  and mcTypeUseScope != ''">and mc_type_use_scope = #{mcTypeUseScope}</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="equipType != null  and equipType != ''">and equip_type = #{equipType}</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="sim != null  and sim != ''">and sim = #{sim}</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="expiration != null  and expiration != ''">and expiration = #{expiration}</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="activationTime != null  and activationTime != ''">and activation_time = #{activationTime}</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="remark != null  and remark != ''">and re_mark = #{remark}</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="vehicleName != null  and vehicleName != ''">and vehicle_name like concat('%', #{vehicleName}, '%')</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="vehicleIcon != null  and vehicleIcon != ''">and vehicle_icon = #{vehicleIcon}</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="vehicleNumber != null  and vehicleNumber != ''">and vehicle_number = #{vehicleNumber}</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="vehicleModels != null  and vehicleModels != ''">and vehicle_models = #{vehicleModels}</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="carFrame != null  and carFrame != ''">and car_frame = #{carFrame}</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="driverName != null  and driverName != ''">and driver_name like concat('%', #{driverName}, '%')</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="driverPhone != null  and driverPhone != ''">and driver_phone = #{driverPhone}</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="enabledFlag != null ">and enabled_flag = #{enabledFlag}</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="engineNumber != null  and engineNumber != ''">and engine_number = #{engineNumber}</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        </where> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    </select> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    <select id="selectTlElectricDeviceByImei" parameterType="String" resultMap="TlElectricDeviceResult"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <include refid="selectTlElectricDeviceVo"/> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        where imei = #{imei} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    </select> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    <insert id="insertTlElectricDevice" parameterType="TlElectricDevice"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        insert into tl_electric_device 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <trim prefix="(" suffix=")" suffixOverrides=","> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="imei != null">imei,</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="deviceName != null">device_name ,</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="mcType != null">mc_type ,</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="mcTypeUseScope != null">mc_type_use_scope,</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="equipType != null">equip_type ,</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="sim != null">sim ,</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="expiration != null">expiration ,</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="activationTime != null">activation_time,</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="remark != null">re_mark ,</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="vehicleName != null">vehicle_name ,</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="vehicleIcon != null">vehicle_icon ,</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="vehicleNumber != null">vehicle_number ,</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="vehicleModels != null">vehicle_models ,</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="carFrame != null">car_frame ,</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="driverName != null">driver_name ,</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="driverPhone != null">driver_phone ,</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="enabledFlag != null">enabled_flag ,</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="engineNumber != null">engine_number ,</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        </trim> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <trim prefix="values (" suffix=")" suffixOverrides=","> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="imei != null">#{imei},</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="deviceName != null">#{deviceName},</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="mcType != null">#{mcType},</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="mcTypeUseScope != null">#{mcTypeUseScope},</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="equipType != null">#{equipType},</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="sim != null">#{sim},</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="expiration != null">#{expiration},</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="activationTime != null">#{activationTime},</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="remark != null">#{remark},</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="vehicleName != null">#{vehicleName},</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="vehicleIcon != null">#{vehicleIcon},</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="vehicleNumber != null">#{vehicleNumber},</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="vehicleModels != null">#{vehicleModels},</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="carFrame != null">#{carFrame},</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="driverName != null">#{driverName},</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="driverPhone != null">#{driverPhone},</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="enabledFlag != null">#{enabledFlag},</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="engineNumber != null">#{engineNumber},</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        </trim> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    </insert> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    <update id="updateTlElectricDevice" parameterType="TlElectricDevice"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        update tl_electric_device 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <trim prefix="SET" suffixOverrides=","> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="deviceName != null">device_name = #{deviceName},</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="mcType != null">mc_type = #{mcType},</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="mcTypeUseScope != null">mc_type_use_scope = #{mcTypeUseScope},</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="equipType != null">equip_type = #{equipType},</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="sim != null">sim = #{sim},</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="expiration != null">expiration = #{expiration},</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="activationTime != null">activation_time = #{activationTime},</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="remark != null">re_mark = #{remark},</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="vehicleName != null">vehicle_name = #{vehicleName},</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="vehicleIcon != null">vehicle_icon = #{vehicleIcon},</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="vehicleNumber != null">vehicle_number = #{vehicleNumber},</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="vehicleModels != null">vehicle_models = #{vehicleModels},</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="carFrame != null">car_frame = #{carFrame},</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="driverName != null">driver_name = #{driverName},</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="driverPhone != null">driver_phone = #{driverPhone},</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="enabledFlag != null">enabled_flag = #{enabledFlag},</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="engineNumber != null">engine_number = #{engineNumber},</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        </trim> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        where imei = #{imei} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    </update> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    <delete id="deleteTlElectricDeviceByImei" parameterType="String"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        delete 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        from tl_electric_device 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        where imei = #{imei} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    </delete> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    <delete id="deleteTlElectricDeviceByImeis" parameterType="String"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        delete from tl_electric_device where imei in 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <foreach item="imei" collection="array" open="(" separator="," close=")"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            #{imei} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        </foreach> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    </delete> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+</mapper> 
			 |