| | |
| | | </foreach> |
| | | </delete> |
| | | |
| | | <select id="getArdTankWallTemporaryByCarId" parameterType="java.lang.String" resultMap="ArdTankWallTemporaryMarkResult"> |
| | | <!--<select id="getArdTankWallTemporaryByCarId" parameterType="java.lang.String" resultMap="ArdTankWallTemporaryMarkResult"> |
| | | select atwt.*,case process_mark |
| | | when '1' then 1 |
| | | when '0' then 2 |
| | |
| | | inner join ard_tank_wall_lock_temporary atwlt on atl."id" = atwlt.lock_id |
| | | inner join ard_tank_wall_temporary atwt on atwlt.wall_id = atwt."id" |
| | | where "asc".car_id = #{carId} order by mark asc,process_time desc |
| | | </select>--> |
| | | |
| | | <select id="getArdTankWallTemporaryByCarId" parameterType="java.lang.String" resultMap="ArdTankWallTemporaryResult"> |
| | | select atwt.* from ard_sy_car "asc" |
| | | inner join ard_tank_lock atl on "asc".car_id = atl.car_id |
| | | inner join ard_tank_wall_lock_temporary atwlt on atl."id" = atwlt.lock_id |
| | | inner join ard_tank_wall_temporary atwt on atwlt.wall_id = atwt."id" |
| | | where "asc".car_id = #{carId} and atwt.process_mark = '1' order by process_time desc |
| | | </select> |
| | | |
| | | <!--<select id="selectArdTankWallTemporaryTotalByCarId" parameterType="java.lang.String" resultType="java.lang.Long"> |
| | | select count(distinct atwt.*) from ard_sy_car "asc" |
| | | inner join ard_tank_lock atl on "asc".car_id = atl.car_id |
| | | inner join ard_tank_wall_lock_temporary atwlt on atl."id" = atwlt.lock_id |
| | | inner join ard_tank_wall_temporary atwt on atwlt.wall_id = atwt."id" |
| | | where "asc".car_id = #{carId} |
| | | </select>--> |
| | | |
| | | <select id="selectArdTankWallTemporaryTotalByCarId" parameterType="java.lang.String" resultType="java.lang.Long"> |
| | | select count(distinct atwt.*) from ard_sy_car "asc" |
| | | inner join ard_tank_lock atl on "asc".car_id = atl.car_id |
| | | inner join ard_tank_wall_lock_temporary atwlt on atl."id" = atwlt.lock_id |
| | | inner join ard_tank_wall_temporary atwt on atwlt.wall_id = atwt."id" |
| | | where "asc".car_id = #{carId} |
| | | where "asc".car_id = #{carId} and atwt.process_mark = '1' |
| | | </select> |
| | | |
| | | <select id="getAliveArdTankWallTemporaryWithCarId" resultType="java.util.Map"> |
| | | select distinct atwt."id",atwt.wall_name as "wallName", |
| | | atwt.longitude,atwt.latitude,atwt.distance,atwt."interval", |
| | | atwt.process_time as "processTime",atwt.process_mark as "processMark", |
| | | atwt.user_id as "userId",atwt.user_name as "userName", |
| | | "asy".car_id as "carId" from ard_tank_wall_temporary atwt |
| | | inner join ard_tank_wall_lock_temporary atwlt on atwt."id" = atwlt.wall_id |
| | | inner join ard_tank_lock atl on atwlt.lock_id = atl."id" |
| | | inner join ard_sy_car "asy" on atl.car_id = "asy".car_id |
| | | where atwt.process_mark = '1' |
| | | </select> |
| | | </mapper> |