asn ip分组分组复用增加删除域加入用户自定义域ASN_ID
This commit is contained in:
@@ -36,6 +36,11 @@
|
||||
<result column="cfg_type" property="cfgType" jdbcType="VARCHAR" />
|
||||
<result column="asn_ip_group" property="asnIpGroup" jdbcType="INTEGER" />
|
||||
<result column="asn_ip_group_name" property="asnIpGroupName" jdbcType="VARCHAR" />
|
||||
<result column="user_region1" property="userRegion1" jdbcType="VARCHAR" />
|
||||
<result column="user_region2" property="userRegion2" jdbcType="VARCHAR" />
|
||||
<result column="user_region3" property="userRegion3" jdbcType="VARCHAR" />
|
||||
<result column="user_region4" property="userRegion4" jdbcType="VARCHAR" />
|
||||
<result column="user_region5" property="userRegion5" jdbcType="VARCHAR" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="columns">
|
||||
@@ -44,7 +49,8 @@
|
||||
,r.is_valid,r.is_audit,r.creator_id,r.create_time,r.editor_id
|
||||
,r.edit_time,r.auditor_id,r.audit_time,r.service_id,r.request_id,
|
||||
r.region_id,r.is_area_effective,r.classify,r.attribute,r.lable
|
||||
,r.area_effective_ids,r.function_id,r.cfg_region_code,r.asn_ip_group
|
||||
,r.area_effective_ids,r.function_id,r.cfg_region_code,r.asn_ip_group,r.user_region1
|
||||
,r.user_region2,r.user_region3,r.user_region4,r.user_region5
|
||||
</sql>
|
||||
|
||||
<select id="findPage" resultMap="asnIpCfgMap">
|
||||
@@ -234,7 +240,12 @@
|
||||
dest_ip_address,
|
||||
cfg_type,
|
||||
cfg_region_code,
|
||||
asn_ip_group
|
||||
asn_ip_group,
|
||||
user_region1,
|
||||
user_region2,
|
||||
user_region3,
|
||||
user_region4,
|
||||
user_region5
|
||||
)values (
|
||||
#{cfgDesc,jdbcType=VARCHAR},
|
||||
#{action,jdbcType=INTEGER},
|
||||
@@ -267,7 +278,12 @@
|
||||
#{destIpAddress,jdbcType=VARCHAR},
|
||||
#{cfgType,jdbcType=VARCHAR},
|
||||
#{cfgRegionCode,jdbcType=INTEGER},
|
||||
#{asnIpGroup,jdbcType=INTEGER}
|
||||
#{asnIpGroup,jdbcType=INTEGER},
|
||||
#{userRegion1,jdbcType=VARCHAR},
|
||||
#{userRegion2,jdbcType=VARCHAR},
|
||||
#{userRegion3,jdbcType=VARCHAR},
|
||||
#{userRegion4,jdbcType=VARCHAR},
|
||||
#{userRegion5,jdbcType=VARCHAR}
|
||||
)
|
||||
</insert>
|
||||
<update id="updateIssued" parameterType="com.nis.domain.basics.AsnIpCfg" >
|
||||
|
||||
@@ -752,6 +752,8 @@ public abstract class BaseService {
|
||||
BeanUtils.copyProperties(baseIpCfg, cfg);
|
||||
cfg.setGroupId(asnIpCfg.getAsnIpGroup());
|
||||
cfg.setRegionId(asnIpCfg.getRegionId());
|
||||
String userRegion = "ASN_ID=" + asnIpCfg.getUserRegion1();
|
||||
cfg.setUserRegion(userRegion);
|
||||
}else if(_cfg instanceof AppIpCfg) {
|
||||
AppIpCfg appIpCfg=(AppIpCfg)_cfg;
|
||||
BeanUtils.copyProperties(appIpCfg, baseIpCfg);
|
||||
|
||||
Reference in New Issue
Block a user