select cpg.id, cpg.park_id, cpg.area, cpg.license, cpg.join_time, cpg.sn,cp.name park_name,se.name equipment_name,HOUR(TIMEDIFF(NOW(),cpg.join_time)) AS time_long
from car_pass_gather cpg
left join car_park cp on cp.id=cpg.park_id
left join sys_equipment se on se.sequence=cpg.sn and se.product_id = 4
insert into car_pass_gather
park_id,area,license,join_time,sn,#{parkId},#{area},#{license},#{joinTime},#{sn},
update car_pass_gather
park_id = #{parkId},area = #{area},license = #{license},join_time = #{joinTime},sn = #{sn},
where id = #{id}
delete from car_pass_gather where id = #{id}
delete from car_pass_gather where id in
#{id}