修改spoofing
group分解为snat组和dnat组,仿冒IP池引用snat组direction=2,引用dnat组direction=1
This commit is contained in:
@@ -173,7 +173,8 @@
|
||||
group_id,
|
||||
compile_Id,
|
||||
cfg_region_code,
|
||||
user_region
|
||||
user_region,
|
||||
port
|
||||
)values (
|
||||
#{cfgId,jdbcType=VARCHAR},
|
||||
#{cfgDesc,jdbcType=VARCHAR},
|
||||
@@ -202,8 +203,8 @@
|
||||
#{groupId, jdbcType=INTEGER},
|
||||
#{compileId,jdbcType=INTEGER},
|
||||
#{cfgRegionCode,jdbcType=INTEGER},
|
||||
#{userRegion,jdbcType=VARCHAR}
|
||||
|
||||
#{userRegion,jdbcType=VARCHAR},
|
||||
#{port,jdbcType=VARCHAR}
|
||||
)
|
||||
</insert>
|
||||
<update id="update" parameterType="com.nis.domain.configuration.PxyObjSpoofingIpPool" >
|
||||
@@ -261,6 +262,9 @@
|
||||
<if test="port != null and port!=''" >
|
||||
port=#{port, jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="direction != null and direction!=''" >
|
||||
direction=#{direction, jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="ipType != null" >
|
||||
ip_type=#{ipType, jdbcType=INTEGER},
|
||||
</if>
|
||||
|
||||
@@ -89,7 +89,6 @@ public class PxyObjSpoofingIpPoolService extends BaseService{
|
||||
setAreaEffectiveIds(entity);
|
||||
//新增
|
||||
if(StringUtil.isEmpty(entity.getCfgId())){
|
||||
entity.initDefaultValue();
|
||||
entity.setCreatorId(UserUtils.getUser().getId());
|
||||
entity.setCreateTime(createTime);
|
||||
//调用服务接口获取compileId
|
||||
|
||||
Reference in New Issue
Block a user