id
,pid,group_id,dept_id,
`name`,name_en,address,address_en,longitude,
latitude,capacity,rate_power,
status,type,create_time,
contact,contact_details,grid_time,
update_time,deleted,is_enable,cabin_num,district,ad_code,is_daily_count,topology_type,cupboard_type,plan_version,inverter_flag,icc_id,province,city,
electricity_type,customer_type,voltage_level,batch_number,nation
delete
from station
where id = #{id,jdbcType=INTEGER}
insert into station
( id, pid, group_id, dept_id
, name, address, longitude
, latitude, capacity, rate_power
, contact, contact_details, grid_time
, status, type, create_time
, update_time, deleted, is_enable,batch_number)
values ( #{record.id,jdbcType=INTEGER}, #{record.pId,jdbcType=INTEGER}, #{record.groupId,jdbcType=INTEGER}
, #{record.deptId,jdbcType=INTEGER}
, #{record.name,jdbcType=VARCHAR}, #{record.address,jdbcType=VARCHAR}
, #{record.longitude,jdbcType=DECIMAL}
, #{record.latitude,jdbcType=DECIMAL}, #{record.capacity,jdbcType=DECIMAL}
, #{record.ratePower,jdbcType=DECIMAL}
, #{record.contact,jdbcType=VARCHAR}, #{record.contactDetails,jdbcType=VARCHAR}
, #{record.gridTime,jdbcType=TIMESTAMP}
, #{record.status,jdbcType=VARCHAR}, #{record.type,jdbcType=VARCHAR}
, #{record.createTime,jdbcType=TIMESTAMP}
, #{record.updateTime,jdbcType=TIMESTAMP}, #{record.deleted,jdbcType=TINYINT}
, #{record.isEnable}
, #{record.cabinNum}
,#{record.batchNumber})
insert into station
id,
pid,
group_id,
dept_id,
name,
address,
longitude,
latitude,
capacity,
rate_power,
contact,
contact_details,
grid_time,
status,
type,
create_time,
update_time,
deleted,
is_enable,
cabin_num,
district,
ad_code,
is_daily_count,
topology_type,
cupboard_type,
plan_version,
inverter_flag,
icc_id,
province,
city,
electricity_type,
customer_type,
voltage_level,
batch_number,
nation,
#{record.id,jdbcType=INTEGER},
#{record.pId,jdbcType=INTEGER},
#{record.groupId,jdbcType=INTEGER},
#{record.deptId,jdbcType=INTEGER},
#{record.name,jdbcType=VARCHAR},
#{record.address,jdbcType=VARCHAR},
#{record.longitude,jdbcType=DECIMAL},
#{record.latitude,jdbcType=DECIMAL},
#{record.capacity,jdbcType=DECIMAL},
#{record.ratePower,jdbcType=DECIMAL},
#{record.contact,jdbcType=VARCHAR},
#{record.contactDetails,jdbcType=VARCHAR},
#{record.gridTime,jdbcType=TIMESTAMP},
#{record.status,jdbcType=VARCHAR},
#{record.type,jdbcType=VARCHAR},
#{record.createTime,jdbcType=TIMESTAMP},
#{record.updateTime,jdbcType=TIMESTAMP},
#{record.deleted,jdbcType=TINYINT},
#{record.isEnable},
#{record.cabinNum},
#{record.district},
#{record.adCode},
#{record.isDailyCount},
#{record.topologyType},
#{record.cupboardType},
#{record.planVersion},
#{record.inverterFlag},
#{record.iccId},
#{record.province},
#{record.city},
#{record.electricityType},
#{record.customerType},
#{record.voltageLevel},
#{record.batchNumber},
#{record.nation},
update station
group_id = #{record.groupId,jdbcType=INTEGER},
dept_id = #{record.deptId,jdbcType=INTEGER},
name = #{record.name,jdbcType=VARCHAR},
address = #{record.address,jdbcType=VARCHAR},
longitude = #{record.longitude,jdbcType=DECIMAL},
latitude = #{record.latitude,jdbcType=DECIMAL},
capacity = #{record.capacity,jdbcType=DECIMAL},
rate_power = #{record.ratePower,jdbcType=DECIMAL},
contact = #{record.contact,jdbcType=VARCHAR},
contact_details = #{record.contactDetails,jdbcType=VARCHAR},
grid_time = #{record.gridTime,jdbcType=TIMESTAMP},
status = #{record.status,jdbcType=VARCHAR},
type = #{record.type,jdbcType=VARCHAR},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
deleted = #{record.deleted,jdbcType=TINYINT},
is_enable = #{record.isEnable,jdbcType=TINYINT},
cabin_num = #{record.cabinNum},
district = #{record.district},
ad_code = #{record.adCode},
is_daily_count = #{record.isDailyCount},
topology_type = #{record.topologyType},
cupboard_type = #{record.cupboardType},
plan_version = #{record.planVersion},
inverter_flag = #{record.inverterFlag},
icc_id = #{record.iccId},
icc_id = null,
province = #{record.province},
city = #{record.city},
electricity_type = #{record.electricityType},
customer_type = #{record.customerType},
voltage_level = #{record.voltageLevel},
batch_number = #{record.batchNumber},
nation = #{record.nation},
where id = #{record.id,jdbcType=INTEGER}
update station
set group_id = #{groupId,jdbcType=INTEGER},
dept_id = #{deptId,jdbcType=INTEGER},
name = #{name,jdbcType=VARCHAR},
address = #{address,jdbcType=VARCHAR},
longitude = #{longitude,jdbcType=DECIMAL},
latitude = #{latitude,jdbcType=DECIMAL},
capacity = #{capacity,jdbcType=DECIMAL},
rate_power = #{ratePower,jdbcType=DECIMAL},
contact = #{contact,jdbcType=VARCHAR},
contact_details = #{contactDetails,jdbcType=VARCHAR},
grid_time = #{gridTime,jdbcType=VARCHAR},
status = #{status,jdbcType=VARCHAR},
type = #{type,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP},
deleted = #{deleted,jdbcType=TINYINT},
is_enable = #{isEnable,jdbcType=TINYINT},
cabin_num = #{cabinNum},
batch_number = #{batchNumber},
where id = #{id,jdbcType=INTEGER}
update station set name = #{item.name},name_en = #{item.nameEn},address = #{item.address},address_en = #{item.addressEn} where id = #{item.id}