pl_id, pl_no, pl_name, pl_address, pl_type, pl_type_prop, pl_province_id, pl_province_name, pl_city_id, pl_city_name, pl_country_id, pl_country_name, pl_berth_num, pl_charge_num, pl_entrance_num, pl_exit_num, pl_busi_time_start, pl_busi_time_end, busi_circle, source_type, service_tel, state, data_status, report_status, source_platform_code, source_platform_name, report_time INSERT INTO parking_lot ( pl_no, pl_name, pl_address, pl_type, pl_type_prop, pl_province_id, pl_province_name, pl_city_id, pl_city_name, pl_country_id, pl_country_name, pl_berth_num, pl_charge_num, pl_entrance_num, pl_exit_num, pl_busi_time_start, pl_busi_time_end, busi_circle, source_type, service_tel, state, data_status, report_status, source_platform_code, source_platform_name, report_time, create_time, modify_time ) VALUES ( #{plNo}, #{plName}, #{plAddress}, #{plType}, #{plTypeProp}, #{plProvinceId}, #{plProvinceName}, #{plCityId}, #{plCityName}, #{plCountryId}, #{plCountryName}, #{plBerthNum}, #{plChargeNum}, #{plEntranceNum}, #{plExitNum}, #{plBusiTimeStart}, #{plBusiTimeEnd}, #{busiCircle}, #{sourceType}, #{serviceTel}, #{state}, #{dataStatus}, #{reportStatus}, #{sourcePlatformCode}, #{sourcePlatformName}, #{reportTime}, #{createTime}, #{modifyTime} ) UPDATE parking_lot SET pl_name = #{plName}, pl_address = #{plAddress}, pl_type = #{plType}, pl_type_prop = #{plTypeProp}, pl_province_id = #{plProvinceId}, pl_province_name = #{plProvinceName}, pl_city_id = #{plCityId}, pl_city_name = #{plCityName}, pl_country_id = #{plCountryId}, pl_country_name = #{plCountryName}, pl_berth_num = #{plBerthNum}, pl_charge_num = #{plChargeNum}, pl_entrance_num = #{plEntranceNum}, pl_exit_num = #{plExitNum}, pl_busi_time_start = #{plBusiTimeStart}, pl_busi_time_end = #{plBusiTimeEnd}, busi_circle = #{busiCircle}, source_type = #{sourceType}, service_tel = #{serviceTel}, report_status = #{reportStatus}, source_platform_name = #{sourcePlatformName}, report_time = #{reportTime}, modify_time = #{modifyTime} WHERE pl_id = #{plId} UPDATE parking_lot SET pl_berth_num = #{plBerthNum}, report_time = #{reportTime}, modify_time = #{reportTime} WHERE pl_id = #{plId} UPDATE parking_lot SET report_status = #{reportStatus}, report_time = #{reportTime}, modify_time = #{reportTime} WHERE pl_id = #{plId} pl_id, organization_no, organization_name, maintain_department, property_owner, property_type, property_date, build_completed_time, staff_num, open_time, service_type, day_time_start, day_time_end, night_time_start, night_time_end, district_code, street_name, street_code, road_name, free_num, large_vehicle_num, light_vehicle_num, park_place_num01, park_place_num02, park_place_num03, park_place_num04, park_place_num05, specific_berth_num, available_berth_num, share_berth_num, deform_berth_num, new_energy_num, charge_pile_num, quick_charge_pile_num, slow_charge_pile_num, charge_pile_operation_unit, service_phone, contact_phone, manager_name, remark, info_service_sn, info_service_name, charge_standard_fee_sn, park_picture_url, picture_state, source_platform_code, report_time, create_time, modify_time INSERT INTO park_lot_ext () VALUES ( #{ext.plId}, #{ext.organizationNo}, #{ext.organizationName}, #{ext.maintainDepartment}, #{ext.propertyOwner}, #{ext.propertyType}, #{ext.propertyDate}, #{ext.buildCompletedTime}, #{ext.staffNum}, #{ext.openTime}, #{ext.serviceType}, #{ext.dayTimeStart}, #{ext.dayTimeEnd}, #{ext.nightTimeStart}, #{ext.nightTimeEnd}, #{ext.districtCode}, #{ext.streetName}, #{ext.streetCode}, #{ext.roadName}, #{ext.freeNum}, #{ext.largeVehicleNum}, #{ext.lightVehicleNum}, #{ext.parkPlaceNum01}, #{ext.parkPlaceNum02}, #{ext.parkPlaceNum03}, #{ext.parkPlaceNum04}, #{ext.parkPlaceNum05}, #{ext.specificBerthNum}, #{ext.availableBerthNum}, #{ext.shareBerthNum}, #{ext.deformBerthNum}, #{ext.newEnergyNum}, #{ext.chargePileNum}, #{ext.quickChargePileNum}, #{ext.slowChargePileNum}, #{ext.chargePileOperationUnit}, #{ext.servicePhone}, #{ext.contactPhone}, #{ext.managerName}, #{ext.remark}, #{ext.infoServiceSn}, #{ext.infoServiceName}, #{ext.chargeStandardFeeSn}, #{ext.parkPictureUrl}, #{ext.pictureState}, #{ext.sourcePlatformCode}, #{ext.reportTime}, #{ext.createTime}, #{ext.modifyTime} ) ON DUPLICATE KEY UPDATE organization_no = VALUES(organization_no), organization_name = VALUES(organization_name), maintain_department = VALUES(maintain_department), property_owner = VALUES(property_owner), property_type = VALUES(property_type), property_date = VALUES(property_date), build_completed_time = VALUES(build_completed_time), staff_num = VALUES(staff_num), open_time = VALUES(open_time), service_type = VALUES(service_type), day_time_start = VALUES(day_time_start), day_time_end = VALUES(day_time_end), night_time_start = VALUES(night_time_start), night_time_end = VALUES(night_time_end), district_code = VALUES(district_code), street_name = VALUES(street_name), street_code = VALUES(street_code), road_name = VALUES(road_name), free_num = VALUES(free_num), large_vehicle_num = VALUES(large_vehicle_num), light_vehicle_num = VALUES(light_vehicle_num), park_place_num01 = VALUES(park_place_num01), park_place_num02 = VALUES(park_place_num02), park_place_num03 = VALUES(park_place_num03), park_place_num04 = VALUES(park_place_num04), park_place_num05 = VALUES(park_place_num05), specific_berth_num = VALUES(specific_berth_num), available_berth_num = VALUES(available_berth_num), share_berth_num = VALUES(share_berth_num), deform_berth_num = VALUES(deform_berth_num), new_energy_num = VALUES(new_energy_num), charge_pile_num = VALUES(charge_pile_num), quick_charge_pile_num = VALUES(quick_charge_pile_num), slow_charge_pile_num = VALUES(slow_charge_pile_num), charge_pile_operation_unit = VALUES(charge_pile_operation_unit), service_phone = VALUES(service_phone), contact_phone = VALUES(contact_phone), manager_name = VALUES(manager_name), remark = VALUES(remark), info_service_sn = VALUES(info_service_sn), info_service_name = VALUES(info_service_name), charge_standard_fee_sn = VALUES(charge_standard_fee_sn), park_picture_url = VALUES(park_picture_url), report_time = VALUES(report_time), modify_time = VALUES(modify_time) INSERT INTO park_lot_ext ( pl_id, park_place_num01, park_place_num02, park_place_num03, park_place_num04, park_place_num05, available_berth_num, light_vehicle_num, large_vehicle_num, deform_berth_num, free_num, new_energy_num, charge_pile_num, quick_charge_pile_num, slow_charge_pile_num, charge_pile_operation_unit, source_platform_code, report_time, create_time, modify_time ) VALUES ( #{ext.plId}, #{ext.parkPlaceNum01}, #{ext.parkPlaceNum02}, #{ext.parkPlaceNum03}, #{ext.parkPlaceNum04}, #{ext.parkPlaceNum05}, #{ext.availableBerthNum}, #{ext.lightVehicleNum}, #{ext.largeVehicleNum}, #{ext.deformBerthNum}, #{ext.freeNum}, #{ext.newEnergyNum}, #{ext.chargePileNum}, #{ext.quickChargePileNum}, #{ext.slowChargePileNum}, #{ext.chargePileOperationUnit}, #{ext.sourcePlatformCode}, #{ext.reportTime}, #{ext.createTime}, #{ext.modifyTime} ) ON DUPLICATE KEY UPDATE park_place_num01 = VALUES(park_place_num01), park_place_num02 = VALUES(park_place_num02), park_place_num03 = VALUES(park_place_num03), park_place_num04 = VALUES(park_place_num04), park_place_num05 = VALUES(park_place_num05), available_berth_num = VALUES(available_berth_num), light_vehicle_num = VALUES(light_vehicle_num), large_vehicle_num = VALUES(large_vehicle_num), deform_berth_num = VALUES(deform_berth_num), free_num = VALUES(free_num), new_energy_num = VALUES(new_energy_num), charge_pile_num = VALUES(charge_pile_num), quick_charge_pile_num = VALUES(quick_charge_pile_num), slow_charge_pile_num = VALUES(slow_charge_pile_num), charge_pile_operation_unit = VALUES(charge_pile_operation_unit), report_time = VALUES(report_time), modify_time = VALUES(modify_time) INSERT INTO parking_lot_geo ( lon_id, lat_id, lon_lat_type, geo_type, pl_id, pl_name, pl_no, data_status, create_time ) VALUES ( #{lon}, #{lat}, #{lonLatType}, 2, #{plId}, #{plName}, #{plNo}, 1, NOW() ) UPDATE parking_lot_geo SET lon_id = #{lon}, lat_id = #{lat}, lon_lat_type = #{lonLatType}, modify_time = NOW() WHERE geo_id = #{geoId} INSERT INTO tp_p_region_area ( pl_no, park_area_code, park_area_name, data_state, create_time, modify_time ) VALUES ( #{plNo}, #{areaCode}, #{areaName}, 1, NOW(), NOW() ) INSERT INTO tp_p_berths ( pl_no, park_area_code, berth_no, road_position, direction, park_type, berth_type, busi_status, remark, data_state, is_occupy, create_time, modify_time ) VALUES ( #{plNo}, #{parkAreaCode}, #{berthNo}, #{roadPosition}, #{direction}, #{parkType}, #{berthType}, #{busiStatus}, #{remark}, 1, '2', #{createTime}, #{modifyTime} ) UPDATE tp_p_berths SET park_area_code = #{parkAreaCode}, road_position = #{roadPosition}, direction = #{direction}, park_type = #{parkType}, berth_type = #{berthType}, busi_status = #{busiStatus}, remark = #{remark}, modify_time = #{modifyTime} WHERE id = #{id} UPDATE parking_lot SET report_status = 2, data_status = 0, report_time = #{reportTime}, modify_time = #{reportTime} WHERE pl_id = #{plId} UPDATE tp_p_berths SET data_state = 0, modify_time = NOW() WHERE pl_no = #{plNo} AND data_state = 1 UPDATE tp_p_eqp SET data_state = 0, modify_time = NOW() WHERE pl_no = #{plNo} AND data_state = 1 UPDATE parking_lot_channel SET data_status = 0, modfiy_date = NOW() WHERE pl_no = #{plNo} AND data_status = 1 UPDATE park_device_berth_rel SET bind_status = 0, unbind_time = NOW(), modify_time = NOW() WHERE pl_no = #{plNo} AND bind_status = 1 id, pl_no, cr_sn, channel_name, channel_direction, relate_road, lon_id, lat_id, default_managed_equipment_id, picture_url, source_platform_code, report_time INSERT INTO parking_lot_channel ( pl_no, cr_sn, channel_name, channel_direction, relate_road, lon_id, lat_id, default_managed_equipment_id, picture_url, source_platform_code, report_time, data_status, create_date, modfiy_date ) VALUES ( #{plNo}, #{crSn}, #{channelName}, #{channelDirection}, #{relateRoad}, #{lon}, #{lat}, #{defaultManagedEquipmentId}, #{pictureUrl}, #{sourcePlatformCode}, #{reportTime}, 1, #{createTime}, #{modifyTime} ) UPDATE parking_lot_channel SET channel_name = #{channelName}, channel_direction = #{channelDirection}, relate_road = #{relateRoad}, lon_id = #{lon}, lat_id = #{lat}, default_managed_equipment_id = #{defaultManagedEquipmentId}, picture_url = #{pictureUrl}, report_time = #{reportTime}, modfiy_date = #{modifyTime} WHERE id = #{id} id, pl_id, pl_no, fee_sn, fee_standard_type, billing_period, timing_unit, small_charging_price, big_charging_price, count_charging_price, free_minutes, cap_day, cap_once, single_pay_duration, single_pay_price, charging_standards_detailed, charge_brand_front_url, charge_brand_opposite_url, day_time_start, day_time_end, night_time_start, night_time_end, source_platform_code, report_time INSERT INTO park_rate_standard ( pl_id, pl_no, fee_sn, fee_standard_type, billing_period, timing_unit, small_charging_price, big_charging_price, count_charging_price, free_minutes, cap_day, cap_once, single_pay_duration, single_pay_price, charging_standards_detailed, charge_brand_front_url, charge_brand_opposite_url, day_time_start, day_time_end, night_time_start, night_time_end, source_platform_code, report_time, deleted, create_time, modify_time ) VALUES ( #{rate.plId}, #{rate.plNo}, #{rate.feeSn}, #{rate.feeStandardType}, #{rate.billingPeriod}, #{rate.timingUnit}, #{rate.smallChargingPrice}, #{rate.bigChargingPrice}, #{rate.countChargingPrice}, #{rate.freeMinutes}, #{rate.capDay}, #{rate.capOnce}, #{rate.singlePayDuration}, #{rate.singlePayPrice}, #{rate.chargingStandardsDetailed}, #{rate.chargeBrandFrontUrl}, #{rate.chargeBrandOppositeUrl}, #{rate.dayTimeStart}, #{rate.dayTimeEnd}, #{rate.nightTimeStart}, #{rate.nightTimeEnd}, #{rate.sourcePlatformCode}, #{rate.reportTime}, 0, #{rate.createTime}, #{rate.modifyTime} ) ON DUPLICATE KEY UPDATE pl_id = VALUES(pl_id), pl_no = VALUES(pl_no), fee_standard_type = VALUES(fee_standard_type), billing_period = VALUES(billing_period), timing_unit = VALUES(timing_unit), small_charging_price = VALUES(small_charging_price), big_charging_price = VALUES(big_charging_price), count_charging_price = VALUES(count_charging_price), free_minutes = VALUES(free_minutes), cap_day = VALUES(cap_day), cap_once = VALUES(cap_once), single_pay_duration = VALUES(single_pay_duration), single_pay_price = VALUES(single_pay_price), charging_standards_detailed = VALUES(charging_standards_detailed), charge_brand_front_url = VALUES(charge_brand_front_url), charge_brand_opposite_url = VALUES(charge_brand_opposite_url), day_time_start = VALUES(day_time_start), day_time_end = VALUES(day_time_end), night_time_start = VALUES(night_time_start), night_time_end = VALUES(night_time_end), report_time = VALUES(report_time), deleted = 0, modify_time = VALUES(modify_time) id, pl_no, eqp_type, eqp_no, eqp_name, vendor_name, device_model, install_position, install_height, firmware_version, berth_no, is_bind_berth, eqp_is_online, remark, source_platform_code, report_time INSERT INTO tp_p_eqp ( pl_no, eqp_type, eqp_no, eqp_name, vendor_name, device_model, install_position, install_height, firmware_version, berth_no, is_bind_berth, eqp_is_online, remark, source_platform_code, report_time, data_state, create_time, modify_time ) VALUES ( #{plNo}, #{eqpType}, #{eqpNo}, #{eqpName}, #{vendorName}, #{deviceModel}, #{installPosition}, #{installHeight}, #{firmwareVersion}, #{berthNo}, #{isBindBerth}, #{eqpIsOnline}, #{remark}, #{sourcePlatformCode}, #{reportTime}, 1, #{createTime}, #{modifyTime} ) UPDATE tp_p_eqp SET pl_no = #{plNo}, eqp_type = #{eqpType}, eqp_name = #{eqpName}, vendor_name = #{vendorName}, device_model = #{deviceModel}, install_position = #{installPosition}, install_height = #{installHeight}, firmware_version = #{firmwareVersion}, berth_no = #{berthNo}, is_bind_berth = #{isBindBerth}, eqp_is_online = #{eqpIsOnline}, remark = #{remark}, report_time = #{reportTime}, data_state = 1, modify_time = #{modifyTime} WHERE id = #{id} id, pl_id, pl_no, device_sn, berth_sn, bind_status, bind_time, unbind_time, source_platform_code, report_time INSERT INTO park_device_berth_rel ( pl_id, pl_no, device_sn, berth_sn, bind_status, bind_time, unbind_time, source_platform_code, report_time, create_time, modify_time ) VALUES ( #{rel.plId}, #{rel.plNo}, #{rel.deviceSn}, #{rel.berthSn}, #{rel.bindStatus}, #{rel.bindTime}, #{rel.unbindTime}, #{rel.sourcePlatformCode}, #{rel.reportTime}, #{rel.createTime}, #{rel.modifyTime} ) ON DUPLICATE KEY UPDATE pl_id = VALUES(pl_id), pl_no = VALUES(pl_no), bind_status = VALUES(bind_status), bind_time = VALUES(bind_time), unbind_time = VALUES(unbind_time), report_time = VALUES(report_time), modify_time = VALUES(modify_time) UPDATE tp_p_eqp SET berth_no = #{berthNo}, is_bind_berth = #{isBindBerth}, modify_time = NOW() WHERE eqp_no = #{eqpNo}