APP策略新增修改.

This commit is contained in:
zhangwenqing
2018-08-24 15:32:11 +08:00
parent 5ef877121c
commit 0546a0c93c
4 changed files with 756 additions and 695 deletions

View File

@@ -69,17 +69,17 @@ public class AppPolicyCfg extends BaseCfg<AppPolicyCfg> {
@Expose @Expose
@ExcelField(title="expression_type") @ExcelField(title="expression_type")
@SerializedName("exprType") @SerializedName("exprType")
protected Integer exprType ; private Integer exprType ;
@Expose @Expose
@ExcelField(title="match_method") @ExcelField(title="match_method")
@SerializedName("matchMethod") @SerializedName("matchMethod")
protected Integer matchMethod ; private Integer matchMethod ;
@Expose @Expose
@ExcelField(title="whether_hexbinary") @ExcelField(title="whether_hexbinary")
@SerializedName("isHexbin") @SerializedName("isHexbin")
protected Integer isHexbin; private Integer isHexbin;
private List<IpPortCfg> ipPortList; private List<IpPortCfg> ipPortList;
private IpPortCfg ipPort; private IpPortCfg ipPort;
@@ -129,6 +129,8 @@ public class AppPolicyCfg extends BaseCfg<AppPolicyCfg> {
// TODO Auto-generated method stub // TODO Auto-generated method stub
super.initDefaultValue(); super.initDefaultValue();
this.isHexbin = 0; this.isHexbin = 0;
this.exprType=0;
this.matchMethod=0;
} }

View File

@@ -1974,7 +1974,16 @@
<if test="userRegion5 != null and userRegion5 != ''"> --> <if test="userRegion5 != null and userRegion5 != ''"> -->
USER_REGION1 =#{userRegion5,jdbcType=VARCHAR}, USER_REGION1 =#{userRegion5,jdbcType=VARCHAR},
<!-- </if> --> <!-- </if> -->
DO_LOG=#{doLog,jdbcType=INTEGER} DO_LOG=#{doLog,jdbcType=INTEGER},
<if test="exprType != null">
expr_type=#{exprType,jdbcType=INTEGER},
</if>
<if test="matchMethod != null">
match_method=#{matchMethod,jdbcType=INTEGER},
</if>
<if test="isHexbin != null">
is_hexbin=#{isHexbin,jdbcType=INTEGER},
</if>
</trim> </trim>
</set> </set>
where cfg_id = #{cfgId,jdbcType=BIGINT} where cfg_id = #{cfgId,jdbcType=BIGINT}

View File

@@ -46,7 +46,7 @@ $(function(){
top.$.jBox.tip("<spring:message code='one_more'/>", "<spring:message code='info'/>"); top.$.jBox.tip("<spring:message code='one_more'/>", "<spring:message code='info'/>");
return; return;
} }
$("input[name$='cfgKeywords']").each(function(){ $(".boxSolid:visible").find("input[name$='cfgKeywords']").each(function(){
if($(this).val()==''){ if($(this).val()==''){
$(this).parents(".form-group").find( $(this).parents(".form-group").find(
"div[for='" "div[for='"
@@ -54,7 +54,7 @@ $(function(){
+ "']").html("<label id=\"cfgKeywordsError\" class=\"error\">"+$("#keywordError").text()+"</label>"); + "']").html("<label id=\"cfgKeywordsError\" class=\"error\">"+$("#keywordError").text()+"</label>");
flag = false; flag = false;
} }
}) });
$("select[name$='isHexbin']").each(function(){ $("select[name$='isHexbin']").each(function(){
var isHexbin=$(this).val(); var isHexbin=$(this).val();
if(isHexbin == 1){ //十六进制 if(isHexbin == 1){ //十六进制