| | |
| | | <result property="id" column="id" /> |
| | | <result property="wallName" column="wall_name" /> |
| | | <result property="wallPoi" column="wall_poi" /> |
| | | <result property="wallType" column="wall_type" /> |
| | | </resultMap> |
| | | |
| | | <sql id="selectArdTankWallVo"> |
| | | select id, wall_name, wall_poi from ard_tank_wall |
| | | select id, wall_name, wall_poi, wall_type from ard_tank_wall |
| | | </sql> |
| | | |
| | | <select id="selectArdTankWallList" parameterType="ArdTankWall" resultMap="ArdTankWallResult"> |
| | |
| | | <where> |
| | | <if test="wallName != null and wallName != ''"> and wall_name like '%'||#{wallName}||'%'</if> |
| | | <if test="wallPoi != null and wallPoi != ''"> and wall_poi = #{wallPoi}</if> |
| | | <if test="wallType != null and wallType != ''"> and wall_type = #{wallType}</if> |
| | | </where> |
| | | order by wall_name |
| | | </select> |
| | | |
| | | <select id="selectArdTankWallById" parameterType="String" resultMap="ArdTankWallResult"> |
| | |
| | | <if test="id != null">id,</if> |
| | | <if test="wallName != null">wall_name,</if> |
| | | <if test="wallPoi != null">wall_poi,</if> |
| | | <if test="wallType != null">wall_type,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="id != null">#{id},</if> |
| | | <if test="wallName != null">#{wallName},</if> |
| | | <if test="wallPoi != null">#{wallPoi},</if> |
| | | <if test="wallType != null">#{wallType},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="wallName != null">wall_name = #{wallName},</if> |
| | | <if test="wallPoi != null">wall_poi = #{wallPoi},</if> |
| | | <if test="wallType != null">wall_type = #{wallType},</if> |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |
| | |
| | | </select> |
| | | |
| | | <select id="getDistinctArdTankWallByCarId" resultMap="ArdTankWallResult" parameterType="java.lang.String"> |
| | | select distinct atw.* from ard_tank_lock atl |
| | | inner join ard_tank_wall_lock atwl on atl.id = atwl.lock_id |
| | | inner join ard_tank_wall atw on atwl.wall_id = atw.id |
| | | where atl.car_id = #{carId} |
| | | select distinct atw.* from ard_tank_lock atl |
| | | inner join ard_tank_wall_lock atwl on atl.id = atwl.lock_id |
| | | inner join ard_tank_wall atw on atwl.wall_id = atw.id |
| | | where atl.car_id = #{carId} |
| | | </select> |
| | | |
| | | <select id="getArdTankWallProcessByLockId" resultMap="ArdTankWallResult" parameterType="java.lang.String"> |