liusuyi
2024-07-17 2ab35000026ccd58238e6a504b1b5f79f8c262c3
ard-work/src/main/resources/mapper/sy/ArdTankWallMapper.xml
@@ -81,4 +81,17 @@
            <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>
    <select id="getArdTankWallProcessByLockId" resultMap="ArdTankWallResult" parameterType="java.lang.String">
        select atw.* from ard_tank_wall_lock atwl
        inner join ard_tank_wall atw on atwl.wall_id = atw.id
        where atwl.lock_id = #{lockId} and atwl.process_type != '0'
    </select>
</mapper>