id,
station_id,
third_party_type,
start_mode,
create_time,
create_by,
update_time,
update_by,
del_flag
select
from thirdparty_station_relation
insert into thirdparty_station_relation
station_id,
third_party_type,
start_mode,
create_time,
create_by,
update_time,
update_by,
del_flag,
#{stationId},
#{thirdPartyType},
#{startMode},
#{createTime},
#{createBy},
#{updateTime},
#{updateBy},
#{delFlag},
update thirdparty_station_relation
station_id = #{stationId},
third_party_type = #{thirdPartyType},
start_mode = #{startMode},
create_time = #{createTime},
create_by = #{createBy},
update_time = #{updateTime},
update_by = #{updateBy},
del_flag = #{delFlag},
where station_id = #{stationId,jdbcType=BIGINT}
delete
from thirdparty_station_relation
where id = #{id}
delete
from thirdparty_station_relation where id in
#{id}
delete
from thirdparty_station_relation
where station_id = #{stationId}
insert into thirdparty_station_relation
(station_id, third_party_type, start_mode, create_time, create_by, update_time, update_by,
del_flag)
values
(#{item.stationId,jdbcType=INTEGER}, #{item.thirdPartyType,jdbcType=VARCHAR}, #{item.startMode,jdbcType=VARCHAR},
#{item.createTime,jdbcType=TIMESTAMP}, #{item.createBy,jdbcType=VARCHAR}, #{item.updateTime,jdbcType=TIMESTAMP},
#{item.updateBy,jdbcType=VARCHAR}, #{item.delFlag,jdbcType=CHAR})
update
thirdparty_station_relation
set del_flag = '1'
where station_id = #{stationId,jdbcType=VARCHAR}
and third_party_type in
#{type,jdbcType=VARCHAR}
insert into thirdparty_station_relation
id,
station_id,
third_party_type,
start_mode,
create_by,
update_by,
del_flag,
values
#{id,jdbcType=INTEGER},
#{stationId,jdbcType=INTEGER},
#{thirdPartyType,jdbcType=VARCHAR},
#{startMode,jdbcType=VARCHAR},
#{createBy,jdbcType=VARCHAR},
#{updateBy,jdbcType=VARCHAR},
#{delFlag,jdbcType=CHAR},
on duplicate key update
id = #{id,jdbcType=INTEGER},
station_id = #{stationId,jdbcType=INTEGER},
third_party_type = #{thirdPartyType,jdbcType=VARCHAR},
start_mode = #{startMode,jdbcType=VARCHAR},
create_by = #{createBy,jdbcType=VARCHAR},
update_by = #{updateBy,jdbcType=VARCHAR},
del_flag = #{delFlag,jdbcType=CHAR},