<?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.sy.mapper.ArdTankLockAutoProcessLogMapper">
|
|
<resultMap type="ArdTankLockAutoProcessLog" id="ArdTankLockAutoProcessLogResult">
|
<result property="id" column="id" />
|
<result property="lockId" column="lock_id" />
|
<result property="lockNum" column="lock_num" />
|
<result property="carId" column="car_id" />
|
<result property="carPlate" column="car_plate" />
|
<result property="wallId" column="wall_id" />
|
<result property="wallName" column="wall_name" />
|
<result property="wallType" column="wall_type" />
|
<result property="process" column="process" />
|
<result property="processReason" column="process_reason" />
|
<result property="longitude" column="longitude" />
|
<result property="latitude" column="latitude" />
|
<result property="velocity" column="velocity" />
|
<result property="processTime" column="process_time" />
|
</resultMap>
|
|
<sql id="selectArdTankLockAutoProcessLogVo">
|
select id, lock_id, lock_num, car_id, car_plate, wall_id, wall_name, wall_type, process, process_reason, longitude, latitude, velocity, process_time from ard_tank_lock_auto_process_log
|
</sql>
|
|
<select id="selectArdTankLockAutoProcessLogList" parameterType="ArdTankLockAutoProcessLog" resultMap="ArdTankLockAutoProcessLogResult">
|
<include refid="selectArdTankLockAutoProcessLogVo"/>
|
<where>
|
<if test="lockId != null and lockId != ''"> and lock_id = #{lockId}</if>
|
<if test="lockNum != null and lockNum != ''"> and lock_num = #{lockNum}</if>
|
<if test="carId != null and carId != ''"> and car_id = #{carId}</if>
|
<if test="carPlate != null and carPlate != ''"> and car_plate = #{carPlate}</if>
|
<if test="wallId != null and wallId != ''"> and wall_id = #{wallId}</if>
|
<if test="wallName != null and wallName != ''"> and wall_name like '%'||#{wallName}||'%'</if>
|
<if test="wallType != null and wallType != ''"> and wall_type = #{wallType}</if>
|
<if test="process != null and process != ''"> and process = #{process}</if>
|
<if test="processReason != null and processReason != ''"> and process_reason = #{processReason}</if>
|
<if test="longitude != null and longitude != ''"> and longitude = #{longitude}</if>
|
<if test="latitude != null and latitude != ''"> and latitude = #{latitude}</if>
|
<if test="velocity != null and velocity != ''"> and velocity = #{velocity}</if>
|
<if test="processTime != null and processTime != ''"> and process_time = #{processTime}</if>
|
</where>
|
</select>
|
|
<select id="selectArdTankLockAutoProcessLogById" parameterType="String" resultMap="ArdTankLockAutoProcessLogResult">
|
<include refid="selectArdTankLockAutoProcessLogVo"/>
|
where id = #{id}
|
</select>
|
|
<insert id="insertArdTankLockAutoProcessLog" parameterType="ArdTankLockAutoProcessLog">
|
insert into ard_tank_lock_auto_process_log
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
<if test="id != null">id,</if>
|
<if test="lockId != null">lock_id,</if>
|
<if test="lockNum != null">lock_num,</if>
|
<if test="carId != null">car_id,</if>
|
<if test="carPlate != null">car_plate,</if>
|
<if test="wallId != null">wall_id,</if>
|
<if test="wallName != null">wall_name,</if>
|
<if test="wallType != null">wall_type,</if>
|
<if test="process != null">process,</if>
|
<if test="processReason != null">process_reason,</if>
|
<if test="longitude != null">longitude,</if>
|
<if test="latitude != null">latitude,</if>
|
<if test="velocity != null">velocity,</if>
|
<if test="processTime != null">process_time,</if>
|
</trim>
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
<if test="id != null">#{id},</if>
|
<if test="lockId != null">#{lockId},</if>
|
<if test="lockNum != null">#{lockNum},</if>
|
<if test="carId != null">#{carId},</if>
|
<if test="carPlate != null">#{carPlate},</if>
|
<if test="wallId != null">#{wallId},</if>
|
<if test="wallName != null">#{wallName},</if>
|
<if test="wallType != null">#{wallType},</if>
|
<if test="process != null">#{process},</if>
|
<if test="processReason != null">#{processReason},</if>
|
<if test="longitude != null">#{longitude},</if>
|
<if test="latitude != null">#{latitude},</if>
|
<if test="velocity != null">#{velocity},</if>
|
<if test="processTime != null">#{processTime},</if>
|
</trim>
|
</insert>
|
|
<update id="updateArdTankLockAutoProcessLog" parameterType="ArdTankLockAutoProcessLog">
|
update ard_tank_lock_auto_process_log
|
<trim prefix="SET" suffixOverrides=",">
|
<if test="lockId != null">lock_id = #{lockId},</if>
|
<if test="lockNum != null">lock_num = #{lockNum},</if>
|
<if test="carId != null">car_id = #{carId},</if>
|
<if test="carPlate != null">car_plate = #{carPlate},</if>
|
<if test="wallId != null">wall_id = #{wallId},</if>
|
<if test="wallName != null">wall_name = #{wallName},</if>
|
<if test="wallType != null">wall_type = #{wallType},</if>
|
<if test="process != null">process = #{process},</if>
|
<if test="processReason != null">process_reason = #{processReason},</if>
|
<if test="longitude != null">longitude = #{longitude},</if>
|
<if test="latitude != null">latitude = #{latitude},</if>
|
<if test="velocity != null">velocity = #{velocity},</if>
|
<if test="processTime != null">process_time = #{processTime},</if>
|
</trim>
|
where id = #{id}
|
</update>
|
|
<delete id="deleteArdTankLockAutoProcessLogById" parameterType="String">
|
delete from ard_tank_lock_auto_process_log where id = #{id}
|
</delete>
|
|
<delete id="deleteArdTankLockAutoProcessLogByIds" parameterType="String">
|
delete from ard_tank_lock_auto_process_log where id in
|
<foreach item="id" collection="array" open="(" separator="," close=")">
|
#{id}
|
</foreach>
|
</delete>
|
</mapper>
|