r.id,r.group_id,r.compile_id,r.organization,r.country,r.detail,r.is_valid,r.create_time,r.edit_time,
r.creator_id,r.editor_id,r.asn_id,r.issued_ips,r.is_used,r.region_id,r.org_group_id,r.only_group_id
insert into asn_group_info(
group_id,
compile_id,
organization,
country,
detail,
is_valid,
creator_id,
create_time,
editor_id,
edit_time,
asn_id,
is_used,
region_id,
org_group_id,
only_group_id
)values (
#{groupId,jdbcType=INTEGER},
#{compileId,jdbcType=INTEGER},
#{organization,jdbcType=VARCHAR},
#{country,jdbcType=VARCHAR},
#{detail,jdbcType=VARCHAR},
#{isValid,jdbcType=INTEGER},
#{creatorId,jdbcType=INTEGER},
#{createTime,jdbcType=TIMESTAMP},
#{editorId,jdbcType=INTEGER},
#{editTime,jdbcType=TIMESTAMP},
#{asnId,jdbcType=INTEGER},
#{isUsed,jdbcType=INTEGER},
#{regionId,jdbcType=INTEGER},
#{orgGroupId,jdbcType=INTEGER},
#{onlyGroupId,jdbcType=INTEGER}
)
insert into asn_group_info(
group_id,
compile_id,
organization,
country,
detail,
is_valid,
creator_id,
create_time,
editor_id,
edit_time,
asn_id,
is_used,
region_id,
org_group_id
)values (
#{groupId,jdbcType=INTEGER},
#{compileId,jdbcType=INTEGER},
#{organization,jdbcType=VARCHAR},
#{country,jdbcType=VARCHAR},
#{detail,jdbcType=VARCHAR},
#{isValid,jdbcType=INTEGER},
#{creatorId,jdbcType=INTEGER},
#{createTime,jdbcType=TIMESTAMP},
#{editorId,jdbcType=INTEGER},
#{editTime,jdbcType=TIMESTAMP},
#{asnId,jdbcType=INTEGER},
#{isUsed,jdbcType=INTEGER},
#{regionId,jdbcType=INTEGER},
#{orgGroupId,jdbcType=INTEGER}
)
insert into asn_group_info(
id,
group_id,
compile_id,
organization,
country,
detail,
is_valid,
creator_id,
create_time,
editor_id,
edit_time,
asn_id,
is_used,
region_id,
org_group_id,
only_group_id
)values (
#{id,jdbcType=INTEGER},
#{groupId,jdbcType=INTEGER},
#{compileId,jdbcType=INTEGER},
#{organization,jdbcType=VARCHAR},
#{country,jdbcType=VARCHAR},
#{detail,jdbcType=VARCHAR},
#{isValid,jdbcType=INTEGER},
#{creatorId,jdbcType=INTEGER},
#{createTime,jdbcType=TIMESTAMP},
#{editorId,jdbcType=INTEGER},
#{editTime,jdbcType=TIMESTAMP},
#{asnId,jdbcType=INTEGER},
#{isUsed,jdbcType=INTEGER},
#{regionId,jdbcType=INTEGER},
#{orgGroupId,jdbcType=INTEGER},
#{onlyGroupId,jdbcType=INTEGER}
)
update asn_group_info
organization = #{organization,jdbcType=VARCHAR},
country = #{country,jdbcType=VARCHAR},
detail = #{detail,jdbcType=VARCHAR},
asn_id = #{asnId,jdbcType=INTEGER},
is_valid = #{isValid,jdbcType=INTEGER},
group_id = #{groupId,jdbcType=INTEGER},
issued_ips = issued_ips+#{issuedIPs,jdbcType=INTEGER},
compile_id = #{compileId,jdbcType=INTEGER},
editor_id = #{editorId,jdbcType=INTEGER},
edit_time = #{editTime,jdbcType=TIMESTAMP},
is_used = #{isUsed,jdbcType=INTEGER},
region_id = #{regionId,jdbcType=INTEGER},
org_group_id = #{orgGroupId,jdbcType=INTEGER},
and id = #{id,jdbcType=INTEGER}
update asn_group_info
is_used = #{isUsed,jdbcType=INTEGER},
is_valid = #{isValid,jdbcType=INTEGER},
and group_id in
#{groupId}
and is_valid != #{isValid,jdbcType=INTEGER}
update asn_group_info
is_valid = #{isValid,jdbcType=INTEGER},
issued_ips = issued_ips+#{issuedIPs,jdbcType=INTEGER},
and group_id = #{groupId,jdbcType=INTEGER}
and asn_id = #{asnId,jdbcType=INTEGER}
and id = #{id,jdbcType=INTEGER}
and is_valid != -1
update asn_group_info
issued_ips = issued_ips+#{issuedIPs,jdbcType=INTEGER},
and group_id = #{groupId,jdbcType=INTEGER}
and asn_id = #{asnId,jdbcType=INTEGER}
and id = #{id,jdbcType=INTEGER}
and is_valid != -1
delete from asn_group_info
update asn_group_info set v4_num=#{v4Num},v6_num=#{v6Num} where group_id=#{groupId}