zhangnaisong
2024-07-08 be17f47d43596999f46e0b202d485ccba496b687
ard-work/src/main/resources/mapper/sy/ArdTankLockMapper.xml
@@ -127,8 +127,8 @@
        select count(distinct atl.car_id) from ard_tank_lock atl
    </select>
    <select id="getLockByCarIdList" >
        select * from ard_tank_lock where id in
    <select id="getLockByCarIdList" resultType="com.ruoyi.sy.domain.ArdTankLock" >
        select * from ard_tank_lock atl where car_id in
        <foreach item="id" collection="carIdList" open="(" separator="," close=")">
            #{id}
        </foreach>
@@ -139,10 +139,25 @@
        select count(*) from ard_tank_lock atl
    </select>
    <select id="selectArdTankLockTotalByCarIdList" >
        select count(*) from ard_tank_lock where id in
    <select id="selectArdTankLockTotalByCarIdList" resultType="java.lang.Long">
        select count(*) from ard_tank_lock where car_id in
        <foreach item="id" collection="carIdList" open="(" separator="," close=")">
            #{id}
        </foreach>
    </select>
    <delete id="deleteArdTankLockAndWallByCarIds" >
        delete from ard_tank_wall_lock atwl where atwl.lock_id in (
        select atl.id from ard_tank_lock atl
        where atl.car_id in
        <foreach item="carId" collection="carIds" open="(" separator="," close=")">
            #{carId}
        </foreach>
        );
        delete from ard_tank_lock atl
        where atl.car_id in
        <foreach item="carId" collection="carIds" open="(" separator="," close=")">
            #{carId}
        </foreach>
    </delete>
</mapper>