修改字符串配置编译ID

修改更新sql
This commit is contained in:
wangxin
2018-02-26 13:53:37 +08:00
parent 0da7f0b5fa
commit f83f0a7a16
2 changed files with 107 additions and 91 deletions

View File

@@ -45,7 +45,7 @@ public class BaseStringCfg extends BaseCfg<BaseStringCfg> {
/** /**
* 编译id * 编译id
*/ */
protected Integer compile_id ; protected Long compileId ;
/** /**
* 表达式类型 * 表达式类型
*/ */
@@ -109,5 +109,19 @@ public class BaseStringCfg extends BaseCfg<BaseStringCfg> {
super.initDefaultValue(); super.initDefaultValue();
this.isHexbin = 0; this.isHexbin = 0;
} }
/**
* compile_id
* @return compile_id
*/
public Long getCompileId() {
return compileId;
}
/**
* @param compile_id the compile_id to set
*/
public void setCompileId(Long compileId) {
this.compileId = compileId;
}
} }

View File

@@ -399,96 +399,98 @@
<update id="updateByPrimaryKeySelective" parameterType="com.nis.domain.configuration.BaseIpCfg" > <update id="updateByPrimaryKeySelective" parameterType="com.nis.domain.configuration.BaseIpCfg" >
update ${tableName} update ${tableName}
<set > <set >
<if test="cfgDesc != null" > <trim suffixOverrides=",">
cfg_desc = #{cfgDesc,jdbcType=VARCHAR}, <if test="cfgDesc != null" >
</if> cfg_desc = #{cfgDesc,jdbcType=VARCHAR},
<if test="ipType != null" > </if>
ip_type = #{ipType,jdbcType=INTEGER}, <if test="ipType != null" >
</if> ip_type = #{ipType,jdbcType=INTEGER},
<if test="srcIp != null" > </if>
src_ip = #{srcIp,jdbcType=VARCHAR}, <if test="srcIp != null" >
</if> src_ip = #{srcIp,jdbcType=VARCHAR},
<if test="srcIpMask != null" > </if>
src_ip_mask = #{srcIpMask,jdbcType=VARCHAR}, <if test="srcIpMask != null" >
</if> src_ip_mask = #{srcIpMask,jdbcType=VARCHAR},
<if test="srcPort != null" > </if>
src_port = #{srcPort,jdbcType=VARCHAR}, <if test="srcPort != null" >
</if> src_port = #{srcPort,jdbcType=VARCHAR},
<if test="srcPortMask != null" > </if>
src_port_mask = #{srcPortMask,jdbcType=VARCHAR}, <if test="srcPortMask != null" >
</if> src_port_mask = #{srcPortMask,jdbcType=VARCHAR},
<if test="dstIp != null" > </if>
dst_ip = #{dstIp,jdbcType=VARCHAR}, <if test="dstIp != null" >
</if> dst_ip = #{dstIp,jdbcType=VARCHAR},
<if test="dstIpMask != null" > </if>
dst_ip_mask = #{dstIpMask,jdbcType=VARCHAR}, <if test="dstIpMask != null" >
</if> dst_ip_mask = #{dstIpMask,jdbcType=VARCHAR},
<if test="dstPort != null" > </if>
dst_port = #{dstPort,jdbcType=VARCHAR}, <if test="dstPort != null" >
</if> dst_port = #{dstPort,jdbcType=VARCHAR},
<if test="srcPortMask != null" > </if>
dst_port_mask = #{srcPortMask,jdbcType=VARCHAR}, <if test="srcPortMask != null" >
</if> dst_port_mask = #{srcPortMask,jdbcType=VARCHAR},
<if test="direction != null" > </if>
direction = #{direction,jdbcType=INTEGER}, <if test="direction != null" >
</if> direction = #{direction,jdbcType=INTEGER},
<if test="protocol != null" > </if>
protocol = #{protocol,jdbcType=INTEGER}, <if test="protocol != null" >
</if> protocol = #{protocol,jdbcType=INTEGER},
<if test="protocolId != null" > </if>
protocol_id = #{protocolId,jdbcType=INTEGER}, <if test="protocolId != null" >
</if> protocol_id = #{protocolId,jdbcType=INTEGER},
<if test="action != null" > </if>
action = #{action,jdbcType=INTEGER}, <if test="action != null" >
</if> action = #{action,jdbcType=INTEGER},
<if test="isValid != null" > </if>
is_valid = #{isValid,jdbcType=INTEGER}, <if test="isValid != null" >
</if> is_valid = #{isValid,jdbcType=INTEGER},
<if test="isAudit != null" > </if>
is_audit = #{isAudit,jdbcType=INTEGER}, <if test="isAudit != null" >
</if> is_audit = #{isAudit,jdbcType=INTEGER},
<if test="creatorId != null" > </if>
creator_id = #{creatorId,jdbcType=INTEGER}, <if test="creatorId != null" >
</if> creator_id = #{creatorId,jdbcType=INTEGER},
<if test="createTime != null" > </if>
create_time = #{createTime,jdbcType=TIMESTAMP}, <if test="createTime != null" >
</if> create_time = #{createTime,jdbcType=TIMESTAMP},
<if test="editorId != null" > </if>
editor_id = #{editorId,jdbcType=INTEGER}, <if test="editorId != null" >
</if> editor_id = #{editorId,jdbcType=INTEGER},
<if test="editTime != null" > </if>
edit_time = #{editTime,jdbcType=TIMESTAMP}, <if test="editTime != null" >
</if> edit_time = #{editTime,jdbcType=TIMESTAMP},
<if test="auditorId != null" > </if>
auditor_id = #{auditorId,jdbcType=INTEGER}, <if test="auditorId != null" >
</if> auditor_id = #{auditorId,jdbcType=INTEGER},
<if test="auditTime != null" > </if>
audit_time = #{auditTime,jdbcType=TIMESTAMP}, <if test="auditTime != null" >
</if> audit_time = #{auditTime,jdbcType=TIMESTAMP},
<if test="serviceId != null" > </if>
service_id = #{serviceId,jdbcType=INTEGER}, <if test="serviceId != null" >
</if> service_id = #{serviceId,jdbcType=INTEGER},
<if test="requestId != null" > </if>
request_id = #{requestId,jdbcType=INTEGER}, <if test="requestId != null" >
</if> request_id = #{requestId,jdbcType=INTEGER},
<if test="compileId != null" > </if>
compile_id = #{compileId,jdbcType=INTEGER}, <if test="compileId != null" >
</if> compile_id = #{compileId,jdbcType=INTEGER},
<if test="isAreaEffective != null" > </if>
is_area_effective = #{isAreaEffective,jdbcType=INTEGER}, <if test="isAreaEffective != null" >
</if> is_area_effective = #{isAreaEffective,jdbcType=INTEGER},
<if test="classify != null" > </if>
classify = #{classify,jdbcType=VARCHAR}, <if test="classify != null" >
</if> classify = #{classify,jdbcType=VARCHAR},
<if test="attribute != null" > </if>
attribute = #{attribute,jdbcType=VARCHAR}, <if test="attribute != null" >
</if> attribute = #{attribute,jdbcType=VARCHAR},
<if test="lable != null" > </if>
lable = #{lable,jdbcType=VARCHAR}, <if test="lable != null" >
</if> lable = #{lable,jdbcType=VARCHAR},
<if test="areaEffectiveIds != null" > </if>
area_effective_ids = #{areaEffectiveIds,jdbcType=VARCHAR} <if test="areaEffectiveIds != null" >
</if> area_effective_ids = #{areaEffectiveIds,jdbcType=VARCHAR}
</if>
</trim>
</set> </set>
where cfg_id = #{cfgId,jdbcType=BIGINT} where cfg_id = #{cfgId,jdbcType=BIGINT}
</update> </update>