a.CFG_ID,a.CFG_DESC,a.ACTION,a.IS_VALID,a.IS_AUDIT, a.CREATOR_ID,a.CREATE_TIME,a.EDITOR_ID,a.EDIT_TIME,a.AUDITOR_ID,a.AUDIT_TIME, a.SERVICE_ID,a.REQUEST_ID,a.COMPILE_ID,a.IS_AREA_EFFECTIVE,a.CLASSIFY, a.ATTRIBUTE,a.LABLE,a.AREA_EFFECTIVE_IDS,a.function_id,a.do_log,a.do_blacklist a.cfg_id,a.cfg_desc,a.ip_type,a.src_ip_address,a.ip_pattern,a.port_pattern,a.src_port ,a.protocol,a.protocol_id,a.direction,a.cfg_type,a.action,a.dest_port,a.dest_ip_address ,a.is_valid,a.is_audit,a.creator_id,a.create_time,a.editor_id ,a.edit_time,a.auditor_id,a.audit_time,a.service_id,a.request_id, a.compile_id,a.is_area_effective,a.classify,a.attribute,a.lable ,a.area_effective_ids,a.function_id,a.cfg_region_code a.cfg_id,a.cfg_desc,a.cfg_keywords,a.cfg_type,a.district, a.action,a.is_valid,a.is_audit,a.creator_id,a.create_time,a.editor_id,a.edit_time, a.auditor_id, a.audit_time,a.service_id,a.request_id,a.compile_id,a.is_area_effective,a.classify,a.attribute,a.lable, a.expr_type,a.match_method,a.is_hexbin,a.area_effective_ids,a.function_id,a.cfg_region_code a.CFG_ID,a.CFG_DESC,a.raw_len,a.digest,a.cfds_level,a.file_url,a.ACTION,a.IS_VALID,a.IS_AUDIT, a.CREATOR_ID,a.CREATE_TIME,a.EDITOR_ID,a.EDIT_TIME,a.AUDITOR_ID,a.AUDIT_TIME, a.SERVICE_ID,a.REQUEST_ID,a.COMPILE_ID,a.IS_AREA_EFFECTIVE,a.CLASSIFY, a.ATTRIBUTE,a.LABLE,a.AREA_EFFECTIVE_IDS,a.function_id,cfg_type,cfg_region_code SELECT LAST_INSERT_ID() insert into cfg_index_info( CFG_DESC, ACTION, IS_VALID, IS_AUDIT, CREATOR_ID, CREATE_TIME, EDITOR_ID, EDIT_TIME, AUDITOR_ID, AUDIT_TIME, SERVICE_ID, REQUEST_ID, COMPILE_ID, IS_AREA_EFFECTIVE, CLASSIFY, ATTRIBUTE, LABLE, AREA_EFFECTIVE_IDS, function_id, do_log, do_blacklist )values ( #{cfgDesc,jdbcType=VARCHAR}, #{action,jdbcType=INTEGER}, 0, 0, #{creatorId,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, #{editorId,jdbcType=INTEGER}, #{editTime,jdbcType=TIMESTAMP}, #{auditorId,jdbcType=INTEGER}, #{auditTime,jdbcType=TIMESTAMP}, #{serviceId,jdbcType=INTEGER}, #{requestId,jdbcType=INTEGER}, #{compileId,jdbcType=INTEGER}, #{isAreaEffective,jdbcType=INTEGER}, #{classify,jdbcType=VARCHAR}, #{attribute,jdbcType=VARCHAR}, #{lable,jdbcType=VARCHAR}, #{areaEffectiveIds,jdbcType=VARCHAR}, #{functionId,jdbcType=INTEGER}, #{doLog,jdbcType=INTEGER}, #{doBlackList,jdbcType=INTEGER} ) SELECT LAST_INSERT_ID() insert into ip_port_cfg ( CFG_DESC, ACTION, IS_VALID, IS_AUDIT, CREATOR_ID, CREATE_TIME, EDITOR_ID, EDIT_TIME, AUDITOR_ID, AUDIT_TIME, SERVICE_ID, REQUEST_ID, COMPILE_ID, IS_AREA_EFFECTIVE, CLASSIFY, ATTRIBUTE, LABLE, AREA_EFFECTIVE_IDS, function_id, ip_type, src_ip_address, ip_pattern, port_pattern, src_port, protocol, protocol_id, direction, dest_port, dest_ip_address, cfg_type, cfg_region_code )values ( #{cfgDesc,jdbcType=VARCHAR}, #{action,jdbcType=INTEGER}, 0, 0, #{creatorId,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, #{editorId,jdbcType=INTEGER}, #{editTime,jdbcType=TIMESTAMP}, #{auditorId,jdbcType=INTEGER}, #{auditTime,jdbcType=TIMESTAMP}, #{serviceId,jdbcType=INTEGER}, #{requestId,jdbcType=INTEGER}, #{compileId,jdbcType=INTEGER}, #{isAreaEffective,jdbcType=INTEGER}, #{classify,jdbcType=VARCHAR}, #{attribute,jdbcType=VARCHAR}, #{lable,jdbcType=VARCHAR}, #{areaEffectiveIds,jdbcType=VARCHAR}, #{functionId,jdbcType=INTEGER}, #{ipType,jdbcType=INTEGER}, #{srcIpAddress,jdbcType=VARCHAR}, #{ipPattern,jdbcType=INTEGER}, #{portPattern,jdbcType=INTEGER}, #{srcPort,jdbcType=VARCHAR}, #{protocol,jdbcType=INTEGER}, #{protocolId,jdbcType=INTEGER}, #{direction,jdbcType=INTEGER}, #{destPort,jdbcType=VARCHAR}, #{destIpAddress,jdbcType=VARCHAR}, #{cfgType,jdbcType=VARCHAR}, #{cfgRegionCode,jdbcType=INTEGER} ) update cfg_index_info cfg_desc = #{cfgDesc,jdbcType=VARCHAR}, action = #{action,jdbcType=INTEGER}, is_valid = #{isValid,jdbcType=INTEGER}, is_audit = #{isAudit,jdbcType=INTEGER}, creator_id = #{creatorId,jdbcType=INTEGER}, create_time = #{createTime,jdbcType=TIMESTAMP}, editor_id = #{editorId,jdbcType=INTEGER}, edit_time = #{editTime,jdbcType=TIMESTAMP}, service_id = #{serviceId,jdbcType=INTEGER}, request_id = #{requestId,jdbcType=INTEGER}, is_area_effective = #{isAreaEffective,jdbcType=INTEGER}, classify = #{classify,jdbcType=VARCHAR}, attribute = #{attribute,jdbcType=VARCHAR}, lable = #{lable,jdbcType=VARCHAR}, area_effective_ids = #{areaEffectiveIds,jdbcType=VARCHAR}, function_id = #{functionId,jdbcType=INTEGER}, do_log = #{doLog,jdbcType=INTEGER}, do_blacklist = #{doBlackList,jdbcType=INTEGER} where cfg_id = #{cfgId,jdbcType=BIGINT} update ${tableName} set is_valid = #{isValid,jdbcType=INTEGER}, editor_id = #{editorId,jdbcType=INTEGER} , edit_time = #{editTime,jdbcType=TIMESTAMP} AND cfg_id = #{cfgId,jdbcType=BIGINT} AND compile_id = #{compileId,jdbcType=INTEGER} and function_id=#{functionId,jdbcType=INTEGER} update ${tableName} set is_audit = #{isAudit,jdbcType=INTEGER}, auditor_id = #{auditorId,jdbcType=INTEGER}, audit_time = #{auditTime,jdbcType=TIMESTAMP} ,is_valid = #{isValid,jdbcType=INTEGER} AND cfg_id = #{cfgId,jdbcType=BIGINT} AND compile_id = #{compileId,jdbcType=INTEGER} and function_id=#{functionId,jdbcType=INTEGER} SELECT LAST_INSERT_ID() insert into mail_keyword_cfg ( CFG_DESC, ACTION, IS_VALID, IS_AUDIT, CREATOR_ID, CREATE_TIME, EDITOR_ID, EDIT_TIME, AUDITOR_ID, AUDIT_TIME, SERVICE_ID, REQUEST_ID, COMPILE_ID, IS_AREA_EFFECTIVE, CLASSIFY, ATTRIBUTE, LABLE, AREA_EFFECTIVE_IDS, function_id, district, cfg_keywords, cfg_type, cfg_region_code, expr_type, match_method, is_hexbin )values ( #{cfgDesc,jdbcType=VARCHAR}, #{action,jdbcType=INTEGER}, 0, 0, #{creatorId,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, #{editorId,jdbcType=INTEGER}, #{editTime,jdbcType=TIMESTAMP}, #{auditorId,jdbcType=INTEGER}, #{auditTime,jdbcType=TIMESTAMP}, #{serviceId,jdbcType=INTEGER}, #{requestId,jdbcType=INTEGER}, #{compileId,jdbcType=INTEGER}, #{isAreaEffective,jdbcType=INTEGER}, #{classify,jdbcType=VARCHAR}, #{attribute,jdbcType=VARCHAR}, #{lable,jdbcType=VARCHAR}, #{areaEffectiveIds,jdbcType=VARCHAR}, #{functionId,jdbcType=INTEGER}, #{district,jdbcType=VARCHAR}, #{cfgKeywords,jdbcType=VARCHAR}, #{cfgType,jdbcType=VARCHAR}, #{cfgRegionCode,jdbcType=INTEGER}, #{exprType,jdbcType=INTEGER}, #{matchMethod,jdbcType=INTEGER}, #{isHexbin,jdbcType=INTEGER} ) SELECT LAST_INSERT_ID() insert into file_digest_cfg( CFG_DESC, RAW_LEN, DIGEST, CFDS_LEVEL, ACTION, IS_VALID, IS_AUDIT, CREATOR_ID, CREATE_TIME, EDITOR_ID, EDIT_TIME, AUDITOR_ID, AUDIT_TIME, SERVICE_ID, REQUEST_ID, COMPILE_ID, IS_AREA_EFFECTIVE, CLASSIFY, ATTRIBUTE, LABLE, AREA_EFFECTIVE_IDS, function_id, cfg_type, cfg_region_code, file_url, do_log )values ( #{cfgDesc,jdbcType=VARCHAR}, #{rawLen,jdbcType=BIGINT}, #{digest,jdbcType=VARCHAR}, #{cfdsLevel,jdbcType=INTEGER}, #{action,jdbcType=INTEGER}, 0, 0, #{creatorId,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, #{editorId,jdbcType=INTEGER}, #{editTime,jdbcType=TIMESTAMP}, #{auditorId,jdbcType=INTEGER}, #{auditTime,jdbcType=TIMESTAMP}, #{serviceId,jdbcType=INTEGER}, #{requestId,jdbcType=INTEGER}, #{compileId,jdbcType=INTEGER}, #{isAreaEffective,jdbcType=INTEGER}, #{classify,jdbcType=VARCHAR}, #{attribute,jdbcType=VARCHAR}, #{lable,jdbcType=VARCHAR}, #{areaEffectiveIds,jdbcType=VARCHAR}, #{functionId,jdbcType=INTEGER}, #{cfgType,jdbcType=VARCHAR}, #{cfgRegionCode,jdbcType=INTEGER}, #{fileUrl,jdbcType=VARCHAR}, #{doLog,jdbcType=VARCHAR} ) delete from ip_port_cfg where compile_id=#{compileId} and protocol_id=5 and function_id=#{functionId} delete from mail_keyword_cfg where compile_id=#{compileId} and function_id=#{functionId} delete from file_digest_cfg where compile_id=#{compileId} and function_id=#{functionId}