select oil_gun_id, oil_gun_no, oil_name, oil_price, station_id, station_name, date, status, oil_gun_type from station_oil_gun insert into station_oil_gun oil_gun_no, oil_name, oil_price, station_id, station_name, date, status, oil_gun_type, #{oilGunNo}, #{oilName}, #{oilPrice}, #{stationId}, #{stationName}, #{date}, #{status}, #{oilGunType}, update station_oil_gun oil_gun_no = #{oilGunNo}, oil_name = #{oilName}, oil_price = #{oilPrice}, station_id = #{stationId}, station_name = #{stationName}, date = #{date}, status = #{status}, oil_gun_type = #{oilGunType}, where oil_gun_id = #{oilGunId} delete from station_oil_gun where oil_gun_id = #{oilGunId} delete from station_oil_gun where oil_gun_id in #{oilGunId}