select charging_station_id,
name,
operator_id,
type,
construction_site,
service_facilities,
periphery_facilities,
area_code,
address,
detailed_address,
longitude,
latitude,
parking_instructions,
serial_number,
client_visible,
status,
del_flag,
create_time,
create_by,
update_time,
update_by,
remark,
rate_model_id
from xhpc_charging_station
insert into xhpc_charging_station
charging_station_id,
name,
operator_id,
type,
construction_site,
service_facilities,
periphery_facilities,
area_code,
address,
detailed_address,
longitude,
latitude,
parking_instructions,
serial_number,
client_visible,
status,
del_flag,
create_time,
create_by,
update_time,
update_by,
remark,
rate_model_id,
#{chargingStationId},
#{name},
#{operatorId},
#{type},
#{constructionSite},
#{serviceFacilities},
#{peripheryFacilities},
#{areaCode},
#{address},
#{detailedAddress},
#{longitude},
#{latitude},
#{parkingInstructions},
#{serialNumber},
#{clientVisible},
#{status},
#{delFlag},
#{createTime},
#{createBy},
#{updateTime},
#{updateBy},
#{remark},
#{rateModelId},
update xhpc_charging_station
name = #{name},
operator_id = #{operatorId},
type = #{type},
construction_site = #{constructionSite},
service_facilities = #{serviceFacilities},
periphery_facilities = #{peripheryFacilities},
area_code = #{areaCode},
address = #{address},
detailed_address = #{detailedAddress},
longitude = #{longitude},
latitude = #{latitude},
parking_instructions = #{parkingInstructions},
serial_number = #{serialNumber},
client_visible = #{clientVisible},
status = #{status},
del_flag = #{delFlag},
create_time = #{createTime},
create_by = #{createBy},
update_time = #{updateTime},
update_by = #{updateBy},
remark = #{remark},
rate_model_id = #{rateModelId},
business_instructions = #{businessInstructions},
reminder_instructions = #{reminderInstructions},
img_id = #{imgId},
station_type = #{stationType}
where charging_station_id = #{chargingStationId}
update xhpc_charging_station
set del_flag =1
where charging_station_id = #{chargingStationId}
update xhpc_charging_station set del_flag =1 where charging_station_id in
#{chargingStationId}
update xhpc_charging_station
set status =#{status}
where charging_station_id = #{chargingStationId}
and del_flag = 0
update xhpc_charging_station
set client_visible =#{clientVisible}
where charging_station_id = #{chargingStationId}
and del_flag = 0
insert into xhpc_rate_model
status,
del_flag,
create_time,
create_by,
update_time,
update_by,
remark
#{status},
#{delFlag},
#{createTime},
#{createBy},
#{updateTime},
#{updateBy},
#{remark}
insert into xhpc_charging_station
name,
operator_id,
type,
construction_site,
service_facilities,
periphery_facilities,
area_code,
address,
detailed_address,
longitude,
latitude,
parking_instructions,
serial_number,
client_visible,
rate_model_id,
img_id,
business_instructions,
reminder_instructions,
status,
del_flag,
create_time,
create_by,
update_time,
update_by,
remark,
station_type
#{name},
#{operatorId},
#{type},
#{constructionSite},
#{serviceFacilities},
#{peripheryFacilities},
#{areaCode},
#{address},
#{detailedAddress},
#{longitude},
#{latitude},
#{parkingInstructions},
#{serialNumber},
#{clientVisible},
#{rateModelId},
#{imgId},
#{businessInstructions},
#{reminderInstructions},
#{status},
#{delFlag},
#{createTime},
#{createBy},
#{updateTime},
#{updateBy},
#{remark},
#{stationType}
insert into xhpc_rate
charging_station_id,
power_fee,
service_fee,
name,
del_flag,
create_time,
create_by,
update_time,
update_by,
remark,
rate_value,
rate_model_id
#{chargingStationId},
#{powerFee},
#{serviceFee},
#{name},
#{status},
#{delFlag},
#{createTime},
#{createBy},
#{updateTime},
#{updateBy},
#{remark},
#{rateValue},
#{rateModelId}
insert into xhpc_rate_time
charging_station_id,
rate_id,
start_time,
end_time,
rate_model_id,
sort,
status,
del_flag,
create_time,
create_by,
update_time,
update_by,
remark,
type,
rate_value
#{chargingStationId},
#{rateId},
#{startTime},
#{endTime},
#{rateModelId},
#{sort},
#{status},
#{delFlag},
#{createTime},
#{createBy},
#{updateTime},
#{updateBy},
#{remark},
#{type},
#{rateValue}
update xhpc_rate
set del_flag =1
where charging_station_id = #{chargingStationId}
and del_flag = 0
update xhpc_rate_time
set del_flag =1
where charging_station_id = #{chargingStationId}
and del_flag = 0