r.CFG_ID,r.CFG_DESC,r.ACTION,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.COMPILE_ID,r.IS_AREA_EFFECTIVE,r.CLASSIFY, r.ATTRIBUTE,r.LABLE,r.AREA_EFFECTIVE_IDS,r.function_id,r.user_region1, r.user_region2,r.user_region3,r.user_region4,r.user_region5,r.do_log 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, dns_strategy_id, user_region1, user_region2, user_region3, user_region4, user_region5, do_log )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}, #{dnsStrategyId,jdbcType=INTEGER}, #{userRegion1,jdbcType=VARCHAR}, #{userRegion2,jdbcType=VARCHAR}, #{userRegion3,jdbcType=VARCHAR}, #{userRegion4,jdbcType=VARCHAR}, #{userRegion5,jdbcType=VARCHAR}, #{doLog,jdbcType=INTEGER} ) update cfg_index_info cfg_desc = #{cfgDesc,jdbcType=VARCHAR}, action = #{action,jdbcType=INTEGER}, do_log = #{doLog,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}, user_region1 = #{userRegion1,jdbcType=VARCHAR}, user_region2 = #{userRegion2,jdbcType=VARCHAR}, user_region3 = #{userRegion3,jdbcType=VARCHAR}, user_region4 = #{userRegion4,jdbcType=VARCHAR}, user_region5 = #{userRegion5,jdbcType=VARCHAR}, dns_strategy_id = #{dnsStrategyId,jdbcType=INTEGER}, where cfg_id = #{cfgId,jdbcType=BIGINT} update cfg_index_info set is_valid=#{isValid} where cfg_id in (${ids})