zhangnaisong
2024-07-08 c8aaafaaf4b6ff674149db115a97e40ead5927bf
ard-work/src/main/resources/mapper/sy/ArdTankWallMapper.xml
@@ -74,4 +74,18 @@
        inner join ard_tank_wall atw on atwl.wall_id = atw.id
        where atwl.lock_id = #{id}
    </select>
    <select id="selectArdTankWallTotal" parameterType="java.lang.String" resultType="java.lang.Long">
        select count(*) from ard_tank_wall atw
        <where>
            <if test="wallName != null  and wallName != ''"> and wall_name like '%'||#{wallName}||'%'</if>
        </where>
    </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>
</mapper>