insert into tb_cablewa_trans pro_id, tower_id, cableway_length, max_height, safety_distance, max_slope, create_time, create_user_id, cableway_width, source_type, name, is_active #{proId}, #{towerId}, #{cablewayLength}, #{maxHeight}, #{safetyDistance}, #{maxSlope}, #{createTime}, #{createUserId}, #{cablewayWidth}, #{sourceType}, #{name}, 1 INSERT INTO tb_cablewa_trans_point(pro_id,cablewa_trans_id,lng,lat,sort) VALUES ( ${proId},#{id},#{item.lng},#{item.lat},#{item.sort} ) update tb_cablewa_trans tower_id = #{towerId}, cableway_length = #{cablewayLength}, max_height = #{maxHeight}, safety_distance = #{safetyDistance}, max_slope = #{maxSlope}, cableway_width = #{cablewayWidth}, update_user_id = #{updateUserId}, source_type = #{sourceType}, name = #{name}, update_time = now() where id = #{id} update tb_cablewa_trans set is_active = '0' where id =#{id} DELETE FROM tb_cablewa_trans_point WHERE cablewa_trans_id = #{id}