select id, station_id, pile_sn, thirdparty_type, thirdparty_pile_sn, create_time, create_by, update_time, update_by, del_flag from thirdparty_sn_relation insert into thirdparty_sn_relation station_id, pile_sn, thirdparty_type, thirdparty_pile_sn, create_time, create_by, update_time, update_by, del_flag, #{stationId}, #{pileSn}, #{thirdpartyType}, #{thirdpartyPileSn}, #{createTime}, #{createBy}, #{updateTime}, #{updateBy}, #{delFlag}, update thirdparty_sn_relation station_id = #{stationId}, pile_sn = #{pileSn}, thirdparty_type = #{thirdpartyType}, thirdparty_pile_sn = #{thirdpartyPileSn}, create_time = #{createTime}, create_by = #{createBy}, update_time = #{updateTime}, update_by = #{updateBy}, del_flag = #{delFlag}, where id = #{id} delete from thirdparty_sn_relation where id = #{id} delete from thirdparty_sn_relation where id in #{id} UPDATE thirdparty_sn_relation SET thirdparty_pile_sn = #{dto.thirdPartySn,jdbcType=VARCHAR} WHERE pile_sn = #{dto.pileSn,jdbcType=VARCHAR} AND thirdparty_type = #{dto.thirdPartyType,jdbcType=VARCHAR}