insert into tb_cablewa_trans pro_id, tower_id, cableway_length, max_height, safety_distance, max_slope, create_time, create_user_id, is_active #{proId}, #{towerId}, #{cablewayLength}, #{maxHeight}, #{safetyDistance}, #{maxSlope}, #{createTime}, #{createUserId}, 1 update tb_cablewa_trans tower_id = #{towerId}, cableway_length = #{cablewayLength}, max_height = #{maxHeight}, safety_distance = #{safetyDistance}, max_slope = #{maxSlope}, update_user_id = #{updateUserId}, update_time = now() where id = #{id} update tb_cablewa_trans set is_active = '0' where id =#{id}