| | |
| | | <result property="imgPositionLeft" column="img_position_left" /> |
| | | <result property="carId" column="car_id" /> |
| | | <result property="enable" column="enable" /> |
| | | <result property="restartState" column="restart_state" /> |
| | | <result property="onlineTime" column="online_time" /> |
| | | </resultMap> |
| | | |
| | | <sql id="selectArdTankLockVo"> |
| | | select id, lock_num, lock_name, img_position_top, img_position_left, car_id, enable, online_time from ard_tank_lock |
| | | select id, lock_num, lock_name, img_position_top, img_position_left, car_id, enable, restart_state, online_time from ard_tank_lock |
| | | </sql> |
| | | |
| | | <select id="selectArdTankLockList" parameterType="ArdTankLock" resultMap="ArdTankLockResult"> |
| | |
| | | <if test="imgPositionLeft != null and imgPositionLeft != ''"> and img_position_left = #{imgPositionLeft}</if> |
| | | <if test="carId != null and carId != ''"> and car_id = #{carId}</if> |
| | | <if test="enable != null and enable != ''"> and enable = #{enable}</if> |
| | | <if test="restartState != null and restartState != ''"> and restart_state = #{restartState}</if> |
| | | <if test="onlineTime != null and onlineTime != ''"> and online_time = #{onlineTime}</if> |
| | | </where> |
| | | </select> |
| | |
| | | <if test="imgPositionLeft != null">img_position_left,</if> |
| | | <if test="carId != null">car_id,</if> |
| | | <if test="enable != null">enable,</if> |
| | | <if test="restartState != null">restart_state,</if> |
| | | <if test="onlineTime != null">online_time,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | |
| | | <if test="imgPositionLeft != null">#{imgPositionLeft},</if> |
| | | <if test="carId != null">#{carId},</if> |
| | | <if test="enable != null">#{enable},</if> |
| | | <if test="restartState != null">#{restartState},</if> |
| | | <if test="onlineTime != null">#{onlineTime},</if> |
| | | </trim> |
| | | </insert> |
| | |
| | | <if test="imgPositionLeft != null">img_position_left = #{imgPositionLeft},</if> |
| | | <if test="carId != null">car_id = #{carId},</if> |
| | | <if test="enable != null">enable = #{enable},</if> |
| | | <if test="restartState != null">restart_state = #{restartState},</if> |
| | | <if test="onlineTime != null">online_time = #{onlineTime},</if> |
| | | </trim> |
| | | where id = #{id} |
| | |
| | | #{id} |
| | | </foreach> |
| | | </delete> |
| | | |
| | | <select id="getAll" resultMap="ArdTankLockResult"> |
| | | select * from ard_tank_lock atl order by atl.car_id |
| | | </select> |
| | | </mapper> |