| | |
| | | #{deptId} |
| | | </foreach> |
| | | </select> |
| | | <select id="getArdSyTankCarByCarId" parameterType="java.lang.String" resultMap="ArdSyCarResult"> |
| | | select distinct "asc".* from ard_sy_car "asc" |
| | | inner join ard_tank_lock atl on "asc".car_id = atl.car_id |
| | | where "asc".car_id = #{carId} |
| | | </select> |
| | | <select id="getCountByCarIdList" resultType="java.lang.Long"> |
| | | select count(*) from ard_sy_car "asc" |
| | | where "asc".car_id in |
| | | <foreach item="carId" collection="carIdList" open="(" separator="," close=")"> |
| | | #{carId} |
| | | </foreach> |
| | | </select> |
| | | </mapper> |