| | |
| | | <select id="selectArdTankLockTotal" resultType="java.lang.Long"> |
| | | select count(distinct atl.car_id) from ard_tank_lock atl |
| | | </select> |
| | | |
| | | <select id="getLockByCarIdList" > |
| | | select * from ard_tank_lock where id in |
| | | <foreach item="id" collection="carIdList" open="(" separator="," close=")"> |
| | | #{id} |
| | | </foreach> |
| | | order by atl.car_id,lock_num |
| | | </select> |
| | | |
| | | <select id="selectArdTankLockAllTotal" resultType="java.lang.Long"> |
| | | select count(*) from ard_tank_lock atl |
| | | </select> |
| | | |
| | | <select id="selectArdTankLockTotalByCarIdList" > |
| | | select count(*) from ard_tank_lock where id in |
| | | <foreach item="id" collection="carIdList" open="(" separator="," close=")"> |
| | | #{id} |
| | | </foreach> |
| | | </select> |
| | | </mapper> |