        DROP TABLE  if exists static_origin.static_level_charge_config_origin;
		  CREATE TABLE IF NOT EXISTS static_origin.static_level_charge_config_origin SELECT * FROM main.static_level_charge_config where partner_idx = h_idx;  
		  
		DROP TABLE  if exists static_origin.static_level_bonus_charge_plus_config_origin;
		  CREATE TABLE IF NOT EXISTS static_origin.static_level_bonus_charge_plus_config_origin SELECT * FROM main.static_level_bonus_charge_plus_config where partner_idx = h_idx;  

		DROP TABLE  if exists static_origin.static_level_bonus_charge_plus_detail_origin;
		  CREATE TABLE IF NOT EXISTS static_origin.static_level_bonus_charge_plus_detail_origin SELECT * FROM main.static_level_bonus_charge_plus_detail where partner_idx = h_idx;    
		  
		DROP TABLE  if exists static_origin.static_level_bonus_basic_option_rolling_config_origin;
		  CREATE TABLE IF NOT EXISTS static_origin.static_level_bonus_basic_option_rolling_config_origin SELECT * FROM main.static_level_bonus_basic_option_rolling_config where partner_idx = h_idx;  
		  
		DROP TABLE  if exists static_origin.static_level_charge_bonus_option_origin;
		  CREATE TABLE IF NOT EXISTS static_origin.static_level_charge_bonus_option_origin SELECT * FROM main.static_level_charge_bonus_option where partner_idx = h_idx;    

		DROP TABLE  if exists static_origin.static_min_max_limit_win_betting_money_origin;
		  CREATE TABLE IF NOT EXISTS static_origin.static_min_max_limit_win_betting_money_origin SELECT * FROM main.static_min_max_limit_win_betting_money where partner_idx = h_idx;      
		  
		DROP TABLE  if exists static_origin.static_partner_config_juckjang_data_origin;
		  CREATE TABLE IF NOT EXISTS static_origin.static_partner_config_juckjang_data_origin SELECT * FROM main.static_partner_config_juckjang_data where partner_idx = h_idx;      

		DROP TABLE  if exists static_origin.static_level_event_charge_config_origin;
		  CREATE TABLE IF NOT EXISTS static_origin.static_level_event_charge_config_origin SELECT * FROM main.static_level_event_charge_config where partner_idx = h_idx; 

		DROP TABLE  if exists static_origin.static_level_event_charge_detail_origin;
		  CREATE TABLE IF NOT EXISTS static_origin.static_level_event_charge_detail_origin SELECT * FROM main.static_level_event_charge_detail where partner_idx = h_idx;    
		  
		DROP TABLE  if exists static_origin.static_level_auto_level_up_config_origin;
		  CREATE TABLE IF NOT EXISTS static_origin.static_level_auto_level_up_config_origin SELECT * FROM main.static_level_auto_level_up_config where partner_idx = h_idx;   
		  
		DROP TABLE  if exists static_origin.static_level_auto_level_up_detail_origin;
		  CREATE TABLE IF NOT EXISTS static_origin.static_level_auto_level_up_detail_origin SELECT * FROM main.static_level_auto_level_up_detail where partner_idx = h_idx;      
		  
		DROP TABLE  if exists static_origin.static_partner_front_rule_set_origin;
		  CREATE TABLE IF NOT EXISTS static_origin.static_partner_front_rule_set_origin SELECT * FROM main.static_partner_front_rule_set where partner_idx = h_idx;      

		DROP TABLE  if exists static_origin.static_partner_level_rates_origin;
		  CREATE TABLE IF NOT EXISTS static_origin.static_partner_level_rates_origin SELECT * FROM main.static_partner_level_rates where partner_idx = h_idx;     
			
		DROP TABLE  if exists static_origin.static_switch_config_origin;
		  CREATE TABLE IF NOT EXISTS static_origin.static_switch_config_origin SELECT * FROM main.static_switch_config where head_office_idx = h_idx;     
			
		DROP TABLE  if exists static_origin.static_switch_manager_origin;
		  CREATE TABLE IF NOT EXISTS static_origin.static_switch_manager_origin SELECT * FROM main.static_switch_manager where head_office_idx = h_idx;     
			  
		DROP TABLE  if exists static_origin.static_head_office_mini_game_origin;
		  CREATE TABLE IF NOT EXISTS static_origin.static_head_office_mini_game_origin SELECT * FROM main.static_head_office_mini_game where partner_idx = h_idx;       
		  
		DROP TABLE  if exists static_origin.static_head_office_sports_origin;
		  CREATE TABLE IF NOT EXISTS static_origin.static_head_office_sports_origin SELECT * FROM main.static_head_office_sports where head_office_idx = h_idx;         

		DROP TABLE  if exists static_origin.static_head_office_refund_rate_market_origin;
		  CREATE TABLE IF NOT EXISTS static_origin.static_head_office_refund_rate_market_origin SELECT * FROM main.static_head_office_refund_rate_market where head_office_idx = h_idx;         
		  
		DROP TABLE  if exists static_origin.static_head_office_participants_origin;
		CREATE TABLE IF NOT EXISTS static_origin.static_head_office_participants_origin SELECT * FROM main.static_head_office_participants where head_office_idx = h_idx;         
		  
		DROP TABLE  if exists static_origin.static_head_office_markets_origin;
		CREATE TABLE IF NOT EXISTS static_origin.static_head_office_markets_origin SELECT * FROM main.static_head_office_markets where head_office_idx = h_idx;         
		  
		DROP TABLE  if exists static_origin.static_head_office_leagues_origin;
		CREATE TABLE IF NOT EXISTS static_origin.static_head_office_leagues_origin SELECT * FROM main.static_head_office_leagues where head_office_idx = h_idx;         
			
		DROP TABLE  if exists static_origin.static_head_office_config_data_origin;
		CREATE TABLE IF NOT EXISTS static_origin.static_head_office_config_data_origin SELECT * FROM main.static_head_office_config_data where head_office_idx = h_idx;     
                
		DROP TABLE  if exists static_origin.static_dividend_policy_origin;
		CREATE TABLE IF NOT EXISTS static_origin.static_dividend_policy_origin SELECT * FROM main.static_dividend_policy where partner_idx = h_idx;         
			
		DROP TABLE  if exists static_origin.static_level_account_origin;
		CREATE TABLE IF NOT EXISTS static_origin.static_level_account_origin SELECT * FROM main.static_level_account where partner_idx = h_idx;  
        
        DROP TABLE  if exists static_origin.static_inplay_check_time_score_origin;
		CREATE TABLE IF NOT EXISTS static_origin.static_inplay_check_time_score_origin SELECT * FROM main.static_inplay_check_time_score where partner_idx = h_idx;      
	COMMIT;
END main ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `create_super_office` */;
DELIMITER ;;
CREATE DEFINER=`admin`@`%` PROCEDURE `create_super_office`(
in_id varchar(20)
,in_nick_name varchar(20)
,in_password varchar(512)
,in_second_password varchar(512)
,in_domain varchar(100)
,in_hp varchar(20)
)
main : BEGIN
	
    DECLARE ret_code INT;
	DECLARE errno INT;
    DECLARE v_txt_error_msg text;
    
    DECLARE v_idx bigint;
	
    DECLARE EXIT HANDLER FOR SQLEXCEPTION
    BEGIN
		GET CURRENT DIAGNOSTICS CONDITION 1 errno = MYSQL_ERRNO
		, v_txt_error_msg = MESSAGE_TEXT;
        set ret_code = -1000;
		SELECT ret_code,errno AS MYSQL_ERROR,v_txt_error_msg as MESSAGE_TEXT;
		ROLLBACK;
    END;
	START TRANSACTION;
		insert into member (id,nick_name,`password`,second_password,partner_type,hp,status,level,member_type)
        value(in_id,in_nick_name,in_password,in_second_password,1,in_hp,1,1,'partner');
        
        set v_idx = last_insert_id();
        
        update member set head_office_idx = v_idx,unique_id = concat(in_id,'_',v_idx) where idx = v_idx;
        
        insert into partner_detail_info (partner_idx,admin_domain,partner_domain) value(v_idx,in_domain,'');
        
        insert into member_admin_domain (partner_idx,domain,id)
        value(v_idx,in_domain,in_id);
        
		insert into partner_rates(partner_idx,rate_type,value) 
        SELECT v_idx,type,100 FROM static_rates;
	
        
		INSERT INTO `static_dividend_policy` (`partner_idx`, `rank`, `type`, `level`, `amount`, `create_dt`, `update_dt`) VALUES (v_idx, '1', '1', '1', '3000000', '2021-04-15 15:15:00', '2021-08-03 22:14:00');
		INSERT INTO `static_dividend_policy` (`partner_idx`, `rank`, `type`, `level`, `amount`, `create_dt`, `update_dt`) VALUES (v_idx, '1', '1', '2', '5000000', '2021-04-15 15:15:00', '2021-08-03 22:14:00');
		INSERT INTO `static_dividend_policy` (`partner_idx`, `rank`, `type`, `level`, `amount`, `create_dt`, `update_dt`) VALUES (v_idx, '1', '1', '3', '5000000', '2021-04-15 15:15:00', '2021-08-03 22:14:00');
		INSERT INTO `static_dividend_policy` (`partner_idx`, `rank`, `type`, `level`, `amount`, `create_dt`, `update_dt`) VALUES (v_idx, '1', '1', '4', '5000000', '2021-04-15 15:15:00', '2021-08-03 22:14:00');
		INSERT INTO `static_dividend_policy` (`partner_idx`, `rank`, `type`, `level`, `amount`, `create_dt`, `update_dt`) VALUES (v_idx, '1', '1', '5', '10000000', '2021-04-15 15:15:00', '2021-08-03 22:14:00');
		INSERT INTO `static_dividend_policy` (`partner_idx`, `rank`, `type`, `level`, `amount`, `create_dt`, `update_dt`) VALUES (v_idx, '1', '1', '6', '5000000', '2021-04-15 15:15:00', '2021-08-03 22:14:00');
		INSERT INTO `static_dividend_policy` (`partner_idx`, `rank`, `type`, `level`, `amount`, `create_dt`, `update_dt`) VALUES (v_idx, '1', '1', '7', '5000000', '2021-04-15 15:15:00', '2021-08-03 22:14:00');
		INSERT INTO `static_dividend_policy` (`partner_idx`, `rank`, `type`, `level`, `amount`, `create_dt`, `update_dt`) VALUES (v_idx, '1', '1', '8', '3000000', '2021-04-15 15:15:00', '2021-08-03 22:14:00');
		INSERT INTO `static_dividend_policy` (`partner_idx`, `rank`, `type`, `level`, `amount`, `create_dt`, `update_dt`) VALUES (v_idx, '1', '1', '9', '3000000', '2021-04-15 15:15:00', '2021-08-03 22:14:00');
		INSERT INTO `static_dividend_policy` (`partner_idx`, `rank`, `type`, `level`, `amount`, `create_dt`, `update_dt`) VALUES (v_idx, '1', '1', '10', '5000000', '2021-04-15 15:15:00', '2021-08-03 22:14:00');
		INSERT INTO `static_dividend_policy` (`partner_idx`, `rank`, `type`, `level`, `amount`, `create_dt`, `update_dt`) VALUES (v_idx, '1', '1', '11', '3000000', '2021-04-15 15:15:00', '2021-08-03 22:14:00');
		INSERT INTO `static_dividend_policy` (`partner_idx`, `rank`, `type`, `level`, `amount`, `create_dt`, `update_dt`) VALUES (v_idx, '1', '1', '12', '3000000', '2021-04-15 15:15:00', '2021-08-03 22:14:00');
		INSERT INTO `static_dividend_policy` (`partner_idx`, `rank`, `type`, `level`, `amount`, `create_dt`, `update_dt`) VALUES (v_idx, '1', '1', '13', '5000000', '2021-04-15 15:15:00', '2021-08-03 22:14:00');
		INSERT INTO `static_dividend_policy` (`partner_idx`, `rank`, `type`, `level`, `amount`, `create_dt`, `update_dt`) VALUES (v_idx, '1', '1', '14', '5000000', '2021-04-15 15:15:00', '2021-08-03 22:14:00');
		INSERT INTO `static_dividend_policy` (`partner_idx`, `rank`, `type`, `level`, `amount`, `create_dt`, `update_dt`) VALUES (v_idx, '1', '1', '15', '5000000', '2021-04-15 15:15:00', '2021-08-03 22:14:00');
		INSERT INTO `static_dividend_policy` (`partner_idx`, `rank`, `type`, `level`, `amount`, `create_dt`, `update_dt`) VALUES (v_idx, '1', '1', '16', '3000000', '2021-04-15 15:15:00', '2021-08-03 22:14:00');
		INSERT INTO `static_dividend_policy` (`partner_idx`, `rank`, `type`, `level`, `amount`, `create_dt`, `update_dt`) VALUES (v_idx, '1', '1', '17', '3000000', '2021-04-15 15:15:00', '2021-08-03 22:14:00');
		INSERT INTO `static_dividend_policy` (`partner_idx`, `rank`, `type`, `level`, `amount`, `create_dt`, `update_dt`) VALUES (v_idx, '1', '1', '18', '3000000', '2021-04-15 15:15:00', '2021-08-03 22:14:00');
		INSERT INTO `static_dividend_policy` (`partner_idx`, `rank`, `type`, `level`, `amount`, `create_dt`, `update_dt`) VALUES (v_idx, '1', '1', '19', '3000000', '2021-04-15 15:15:00', '2021-08-03 22:14:00');
		INSERT INTO `static_dividend_policy` (`partner_idx`, `rank`, `type`, `level`, `amount`, `create_dt`, `update_dt`) VALUES (v_idx, '1', '1', '20', '3000000', '2021-04-15 15:15:00', '2021-08-03 22:14:00');
		INSERT INTO `static_dividend_policy` (`partner_idx`, `rank`, `type`, `level`, `amount`, `create_dt`, `update_dt`) VALUES (v_idx, '1', '2', '1', '3000000', '2021-04-15 15:15:00', '2021-08-03 22:14:00');
		INSERT INTO `static_dividend_policy` (`partner_idx`, `rank`, `type`, `level`, `amount`, `create_dt`, `update_dt`) VALUES (v_idx, '1', '2', '2', '3000000', '2021-04-15 15:15:00', '2021-08-03 22:14:00');
		INSERT INTO `static_dividend_policy` (`partner_idx`, `rank`, `type`, `level`, `amount`, `create_dt`, `update_dt`) VALUES (v_idx, '1', '2', '3', '3000000', '2021-04-15 15:15:00', '2021-08-03 22:14:00');
		INSERT INTO `static_dividend_policy` (`partner_idx`, `rank`, `type`, `level`, `amount`, `create_dt`, `update_dt`) VALUES (v_idx, '1', '2', '4', '3000000', '2021-04-15 15:15:00', '2021-08-03 22:14:00');
		INSERT INTO `static_dividend_policy` (`partner_idx`, `rank`, `type`, `level`, `amount`, `create_dt`, `update_dt`) VALUES (v_idx, '1', '2', '5', '5000000', '2021-04-15 15:15:00', '2021-08-03 22:14:00');
		INSERT INTO `static_dividend_policy` (`partner_idx`, `rank`, `type`, `level`, `amount`, `create_dt`, `update_dt`) VALUES (v_idx, '1', '2', '6', '3000000', '2021-04-15 15:15:00', '2021-08-03 22:14:00');
		INSERT INTO `static_dividend_policy` (`partner_idx`, `rank`, `type`, `level`, `amount`, `create_dt`, `update_dt`) VALUES (v_idx, '1', '2', '7', '3000000', '2021-04-15 15:15:00', '2021-08-03 22:14:00');
		INSERT INTO `static_dividend_policy` (`partner_idx`, `rank`, `type`, `level`, `amount`, `create_dt`, `update_dt`) VALUES (v_idx, '1', '2', '8', '3000000', '2021-04-15 15:15:00', '2021-08-03 22:14:00');
		INSERT INTO `static_dividend_policy` (`partner_idx`, `rank`, `type`, `level`, `amount`, `create_dt`, `update_dt`) VALUES (v_idx, '1', '2', '9', '3000000', '2021-04-15 15:15:00', '2021-08-03 22:14:00');
		INSERT INTO `static_dividend_policy` (`partner_idx`, `rank`, `type`, `level`, `amount`, `create_dt`, `update_dt`) VALUES (v_idx, '1', '2', '10', '3000000', '2021-04-15 15:15:00', '2021-08-03 22:14:00');
		INSERT INTO `static_dividend_policy` (`partner_idx`, `rank`, `type`, `level`, `amount`, `create_dt`, `update_dt`) VALUES (v_idx, '1', '2', '11', '3000000', '2021-04-15 15:15:00', '2021-08-03 22:14:00');
		INSERT INTO `static_dividend_policy` (`partner_idx`, `rank`, `type`, `level`, `amount`, `create_dt`, `update_dt`) VALUES (v_idx, '1', '2', '12', '3000000', '2021-04-15 15:15:00', '2021-08-03 22:14:00');
		INSERT INTO `static_dividend_policy` (`partner_idx`, `rank`, `type`, `level`, `amount`, `create_dt`, `update_dt`) VALUES (v_idx, '1', '2', '13', '5000000', '2021-04-15 15:15:00', '2021-08-03 22:14:00');
		INSERT INTO `static_dividend_policy` (`partner_idx`, `rank`, `type`, `level`, `amount`, `create_dt`, `update_dt`) VALUES (v_idx, '1', '2', '14', '5000000', '2021-04-15 15:15:00', '2021-08-03 22:14:00');
		INSERT INTO `static_dividend_policy` (`partner_idx`, `rank`, `type`, `level`, `amount`, `create_dt`, `update_dt`) VALUES (v_idx, '1', '2', '15', '5000000', '2021-04-15 15:15:00', '2021-08-03 22:14:00');
		INSERT INTO `static_dividend_policy` (`partner_idx`, `rank`, `type`, `level`, `amount`, `create_dt`, `update_dt`) VALUES (v_idx, '1', '2', '16', '3000000', '2021-04-15 15:15:00', '2021-08-03 22:14:00');
		INSERT INTO `static_dividend_policy` (`partner_idx`, `rank`, `type`, `level`, `amount`, `create_dt`, `update_dt`) VALUES (v_idx, '1', '2', '17', '3000000', '2021-04-15 15:15:00', '2021-08-03 22:14:00');
		INSERT INTO `static_dividend_policy` (`partner_idx`, `rank`, `type`, `level`, `amount`, `create_dt`, `update_dt`) VALUES (v_idx, '1', '2', '18', '3000000', '2021-04-15 15:15:00', '2021-08-03 22:14:00');
		INSERT INTO `static_dividend_policy` (`partner_idx`, `rank`, `type`, `level`, `amount`, `create_dt`, `update_dt`) VALUES (v_idx, '1', '2', '19', '3000000', '2021-04-15 15:15:00', '2021-08-03 22:14:00');
		INSERT INTO `static_dividend_policy` (`partner_idx`, `rank`, `type`, `level`, `amount`, `create_dt`, `update_dt`) VALUES (v_idx, '1', '2', '20', '3000000', '2021-04-15 15:15:00', '2021-08-03 22:14:00');
		INSERT INTO `static_dividend_policy` (`partner_idx`, `rank`, `type`, `level`, `amount`, `create_dt`, `update_dt`) VALUES (v_idx, '2', '1', '1', '3000000', '2021-04-15 15:15:00', '2021-08-03 22:14:00');
		INSERT INTO `static_dividend_policy` (`partner_idx`, `rank`, `type`, `level`, `amount`, `create_dt`, `update_dt`) VALUES (v_idx, '2', '1', '2', '3000000', '2021-04-15 15:15:00', '2021-08-03 22:14:00');
		INSERT INTO `static_dividend_policy` (`partner_idx`, `rank`, `type`, `level`, `amount`, `create_dt`, `update_dt`) VALUES (v_idx, '2', '1', '3', '3000000', '2021-04-15 15:15:00', '2021-08-03 22:14:00');
		INSERT INTO `static_dividend_policy` (`partner_idx`, `rank`, `type`, `level`, `amount`, `create_dt`, `update_dt`) VALUES (v_idx, '2', '1', '4', '3000000', '2021-04-15 15:15:00', '2021-08-03 22:14:00');
		INSERT INTO `static_dividend_policy` (`partner_idx`, `rank`, `type`, `level`, `amount`, `create_dt`, `update_dt`) VALUES (v_idx, '2', '1', '5', '5000000', '2021-04-15 15:15:00', '2021-08-03 22:14:00');
		INSERT INTO `static_dividend_policy` (`partner_idx`, `rank`, `type`, `level`, `amount`, `create_dt`, `update_dt`) VALUES (v_idx, '2', '1', '6', '3000000', '2021-04-15 15:15:00', '2021-08-03 22:14:00');
		INSERT INTO `static_dividend_policy` (`partner_idx`, `rank`, `type`, `level`, `amount`, `create_dt`, `update_dt`) VALUES (v_idx, '2', '1', '7', '3000000', '2021-04-15 15:15:00', '2021-08-03 22:14:00');
		INSERT INTO `static_dividend_policy` (`partner_idx`, `rank`, `type`, `level`, `amount`, `create_dt`, `update_dt`) VALUES (v_idx, '2', '1', '8', '3000000', '2021-04-15 15:15:00', '2021-08-03 22:14:00');
		INSERT INTO `static_dividend_policy` (`partner_idx`, `rank`, `type`, `level`, `amount`, `create_dt`, `update_dt`) VALUES (v_idx, '2', '1', '9', '1000000', '2021-04-15 15:15:00', '2021-08-03 22:14:00');
		INSERT INTO `static_dividend_policy` (`partner_idx`, `rank`, `type`, `level`, `amount`, `create_dt`, `update_dt`) VALUES (v_idx, '2', '1', '10', '3000000', '2021-04-15 15:15:00', '2021-08-03 22:14:00');
		INSERT INTO `static_dividend_policy` (`partner_idx`, `rank`, `type`, `level`, `amount`, `create_dt`, `update_dt`) VALUES (v_idx, '2', '1', '11', '3000000', '2021-04-15 15:15:00', '2021-08-03 22:14:00');
		INSERT INTO `static_dividend_policy` (`partner_idx`, `rank`, `type`, `level`, `amount`, `create_dt`, `update_dt`) VALUES (v_idx, '2', '1', '12', '3000000', '2021-04-15 15:15:00', '2021-08-03 22:14:00');
		INSERT INTO `static_dividend_policy` (`partner_idx`, `rank`, `type`, `level`, `amount`, `create_dt`, `update_dt`) VALUES (v_idx, '2', '1', '13', '5000000', '2021-04-15 15:15:00', '2021-08-03 22:14:00');
		INSERT INTO `static_dividend_policy` (`partner_idx`, `rank`, `type`, `level`, `amount`, `create_dt`, `update_dt`) VALUES (v_idx, '2', '1', '14', '5000000', '2021-04-15 15:15:00', '2021-08-03 22:14:00');
		INSERT INTO `static_dividend_policy` (`partner_idx`, `rank`, `type`, `level`, `amount`, `create_dt`, `update_dt`) VALUES (v_idx, '2', '1', '15', '5000000', '2021-04-15 15:15:00', '2021-08-03 22:14:00');
		INSERT INTO `static_dividend_policy` (`partner_idx`, `rank`, `type`, `level`, `amount`, `create_dt`, `update_dt`) VALUES (v_idx, '2', '1', '16', '3000000', '2021-04-15 15:15:00', '2021-08-03 22:14:00');
		INSERT INTO `static_dividend_policy` (`partner_idx`, `rank`, `type`, `level`, `amount`, `create_dt`, `update_dt`) VALUES (v_idx, '2', '1', '17', '3000000', '2021-04-15 15:15:00', '2021-08-03 22:14:00');
		INSERT INTO `static_dividend_policy` (`partner_idx`, `rank`, `type`, `level`, `amount`, `create_dt`, `update_dt`) VALUES (v_idx, '2', '1', '18', '3000000', '2021-04-15 15:15:00', '2021-08-03 22:14:00');
		INSERT INTO `static_dividend_policy` (`partner_idx`, `rank`, `type`, `level`, `amount`, `create_dt`, `update_dt`) VALUES (v_idx, '2', '1', '19', '3000000', '2021-04-15 15:15:00', '2021-08-03 22:14:00');
		INSERT INTO `static_dividend_policy` (`partner_idx`, `rank`, `type`, `level`, `amount`, `create_dt`, `update_dt`) VALUES (v_idx, '2', '1', '20', '3000000', '2021-04-15 15:15:00', '2021-08-03 22:14:00');
		INSERT INTO `static_dividend_policy` (`partner_idx`, `rank`, `type`, `level`, `amount`, `create_dt`, `update_dt`) VALUES (v_idx, '2', '2', '1', '1000000', '2021-04-15 15:15:00', '2021-08-03 22:14:00');
		INSERT INTO `static_dividend_policy` (`partner_idx`, `rank`, `type`, `level`, `amount`, `create_dt`, `update_dt`) VALUES (v_idx, '2', '2', '2', '1500000', '2021-04-15 15:15:00', '2021-08-03 22:14:00');
		INSERT INTO `static_dividend_policy` (`partner_idx`, `rank`, `type`, `level`, `amount`, `create_dt`, `update_dt`) VALUES (v_idx, '2', '2', '3', '1500000', '2021-04-15 15:15:00', '2021-08-03 22:14:00');
		INSERT INTO `static_dividend_policy` (`partner_idx`, `rank`, `type`, `level`, `amount`, `create_dt`, `update_dt`) VALUES (v_idx, '2', '2', '4', '1500000', '2021-04-15 15:15:00', '2021-08-03 22:14:00');
		INSERT INTO `static_dividend_policy` (`partner_idx`, `rank`, `type`, `level`, `amount`, `create_dt`, `update_dt`) VALUES (v_idx, '2', '2', '5', '1500000', '2021-04-15 15:15:00', '2021-08-03 22:14:00');
		INSERT INTO `static_dividend_policy` (`partner_idx`, `rank`, `type`, `level`, `amount`, `create_dt`, `update_dt`) VALUES (v_idx, '2', '2', '6', '1500000', '2021-04-15 15:15:00', '2021-08-03 22:14:00');
		INSERT INTO `static_dividend_policy` (`partner_idx`, `rank`, `type`, `level`, `amount`, `create_dt`, `update_dt`) VALUES (v_idx, '2', '2', '7', '1500000', '2021-04-15 15:15:00', '2021-08-03 22:14:00');
		INSERT INTO `static_dividend_policy` (`partner_idx`, `rank`, `type`, `level`, `amount`, `create_dt`, `update_dt`) VALUES (v_idx, '2', '2', '8', '1500000', '2021-04-15 15:15:00', '2021-08-03 22:14:00');
		INSERT INTO `static_dividend_policy` (`partner_idx`, `rank`, `type`, `level`, `amount`, `create_dt`, `update_dt`) VALUES (v_idx, '2', '2', '9', '1000000', '2021-04-15 15:15:00', '2021-08-03 22:14:00');
		INSERT INTO `static_dividend_policy` (`partner_idx`, `rank`, `type`, `level`, `amount`, `create_dt`, `update_dt`) VALUES (v_idx, '2', '2', '10', '1500000', '2021-04-15 15:15:00', '2021-08-03 22:14:00');
		INSERT INTO `static_dividend_policy` (`partner_idx`, `rank`, `type`, `level`, `amount`, `create_dt`, `update_dt`) VALUES (v_idx, '2', '2', '11', '3000000', '2021-04-15 15:15:00', '2021-08-03 22:14:00');
		INSERT INTO `static_dividend_policy` (`partner_idx`, `rank`, `type`, `level`, `amount`, `create_dt`, `update_dt`) VALUES (v_idx, '2', '2', '12', '3000000', '2021-04-15 15:15:00', '2021-08-03 22:14:00');
		INSERT INTO `static_dividend_policy` (`partner_idx`, `rank`, `type`, `level`, `amount`, `create_dt`, `update_dt`) VALUES (v_idx, '2', '2', '13', '5000000', '2021-04-15 15:15:00', '2021-08-03 22:14:00');
		INSERT INTO `static_dividend_policy` (`partner_idx`, `rank`, `type`, `level`, `amount`, `create_dt`, `update_dt`) VALUES (v_idx, '2', '2', '14', '5000000', '2021-04-15 15:15:00', '2021-08-03 22:14:00');
		INSERT INTO `static_dividend_policy` (`partner_idx`, `rank`, `type`, `level`, `amount`, `create_dt`, `update_dt`) VALUES (v_idx, '2', '2', '15', '5000000', '2021-04-15 15:15:00', '2021-08-03 22:14:00');
		INSERT INTO `static_dividend_policy` (`partner_idx`, `rank`, `type`, `level`, `amount`, `create_dt`, `update_dt`) VALUES (v_idx, '2', '2', '16', '3000000', '2021-04-15 15:15:00', '2021-08-03 22:14:00');
		INSERT INTO `static_dividend_policy` (`partner_idx`, `rank`, `type`, `level`, `amount`, `create_dt`, `update_dt`) VALUES (v_idx, '2', '2', '17', '3000000', '2021-04-15 15:15:00', '2021-08-03 22:14:00');
		INSERT INTO `static_dividend_policy` (`partner_idx`, `rank`, `type`, `level`, `amount`, `create_dt`, `update_dt`) VALUES (v_idx, '2', '2', '18', '3000000', '2021-04-15 15:15:00', '2021-08-03 22:14:00');
		INSERT INTO `static_dividend_policy` (`partner_idx`, `rank`, `type`, `level`, `amount`, `create_dt`, `update_dt`) VALUES (v_idx, '2', '2', '19', '3000000', '2021-04-15 15:15:00', '2021-08-03 22:14:00');
		INSERT INTO `static_dividend_policy` (`partner_idx`, `rank`, `type`, `level`, `amount`, `create_dt`, `update_dt`) VALUES (v_idx, '2', '2', '20', '3000000', '2021-04-15 15:15:00', '2021-08-03 22:14:00');
		INSERT INTO `static_dividend_policy` (`partner_idx`, `rank`, `type`, `level`, `amount`, `create_dt`, `update_dt`) VALUES (v_idx, '3', '1', '1', '3000000', '2021-04-15 15:15:00', '2021-08-03 22:14:00');
		INSERT INTO `static_dividend_policy` (`partner_idx`, `rank`, `type`, `level`, `amount`, `create_dt`, `update_dt`) VALUES (v_idx, '3', '1', '2', '3000000', '2021-04-15 15:15:00', '2021-08-03 22:14:00');
		INSERT INTO `static_dividend_policy` (`partner_idx`, `rank`, `type`, `level`, `amount`, `create_dt`, `update_dt`) VALUES (v_idx, '3', '1', '3', '3000000', '2021-04-15 15:15:00', '2021-08-03 22:14:00');
		INSERT INTO `static_dividend_policy` (`partner_idx`, `rank`, `type`, `level`, `amount`, `create_dt`, `update_dt`) VALUES (v_idx, '3', '1', '4', '3000000', '2021-04-15 15:15:00', '2021-08-03 22:14:00');
		INSERT INTO `static_dividend_policy` (`partner_idx`, `rank`, `type`, `level`, `amount`, `create_dt`, `update_dt`) VALUES (v_idx, '3', '1', '5', '3000000', '2021-04-15 15:15:00', '2021-08-03 22:14:00');
		INSERT INTO `static_dividend_policy` (`partner_idx`, `rank`, `type`, `level`, `amount`, `create_dt`, `update_dt`) VALUES (v_idx, '3', '1', '6', '3000000', '2021-04-15 15:15:00', '2021-08-03 22:14:00');
		INSERT INTO `static_dividend_policy` (`partner_idx`, `rank`, `type`, `level`, `amount`, `create_dt`, `update_dt`) VALUES (v_idx, '3', '1', '7', '3000000', '2021-04-15 15:15:00', '2021-08-03 22:14:00');
		INSERT INTO `static_dividend_policy` (`partner_idx`, `rank`, `type`, `level`, `amount`, `create_dt`, `update_dt`) VALUES (v_idx, '3', '1', '8', '3000000', '2021-04-15 15:15:00', '2021-08-03 22:14:00');
		INSERT INTO `static_dividend_policy` (`partner_idx`, `rank`, `type`, `level`, `amount`, `create_dt`, `update_dt`) VALUES (v_idx, '3', '1', '9', '2000000', '2021-04-15 15:15:00', '2021-08-03 22:14:00');
		INSERT INTO `static_dividend_policy` (`partner_idx`, `rank`, `type`, `level`, `amount`, `create_dt`, `update_dt`) VALUES (v_idx, '3', '1', '10', '3000000', '2021-04-15 15:15:00', '2021-08-03 22:14:00');
		INSERT INTO `static_dividend_policy` (`partner_idx`, `rank`, `type`, `level`, `amount`, `create_dt`, `update_dt`) VALUES (v_idx, '3', '1', '11', '3000000', '2021-04-15 15:15:00', '2021-08-03 22:14:00');
		INSERT INTO `static_dividend_policy` (`partner_idx`, `rank`, `type`, `level`, `amount`, `create_dt`, `update_dt`) VALUES (v_idx, '3', '1', '12', '3000000', '2021-04-15 15:15:00', '2021-08-03 22:14:00');
		INSERT INTO `static_dividend_policy` (`partner_idx`, `rank`, `type`, `level`, `amount`, `create_dt`, `update_dt`) VALUES (v_idx, '3', '1', '13', '5000000', '2021-04-15 15:15:00', '2021-08-03 22:14:00');
		INSERT INTO `static_dividend_policy` (`partner_idx`, `rank`, `type`, `level`, `amount`, `create_dt`, `update_dt`) VALUES (v_idx, '3', '1', '14', '5000000', '2021-04-15 15:15:00', '2021-08-03 22:14:00');
		INSERT INTO `static_dividend_policy` (`partner_idx`, `rank`, `type`, `level`, `amount`, `create_dt`, `update_dt`) VALUES (v_idx, '3', '1', '15', '5000000', '2021-04-15 15:15:00', '2021-08-03 22:14:00');
		INSERT INTO `static_dividend_policy` (`partner_idx`, `rank`, `type`, `level`, `amount`, `create_dt`, `update_dt`) VALUES (v_idx, '3', '1', '16', '3000000', '2021-04-15 15:15:00', '2021-08-03 22:14:00');
		INSERT INTO `static_dividend_policy` (`partner_idx`, `rank`, `type`, `level`, `amount`, `create_dt`, `update_dt`) VALUES (v_idx, '3', '1', '17', '3000000', '2021-04-15 15:15:00', '2021-08-03 22:14:00');
		INSERT INTO `static_dividend_policy` (`partner_idx`, `rank`, `type`, `level`, `amount`, `create_dt`, `update_dt`) VALUES (v_idx, '3', '1', '18', '3000000', '2021-04-15 15:15:00', '2021-08-03 22:14:00');
		INSERT INTO `static_dividend_policy` (`partner_idx`, `rank`, `type`, `level`, `amount`, `create_dt`, `update_dt`) VALUES (v_idx, '3', '1', '19', '3000000', '2021-04-15 15:15:00', '2021-08-03 22:14:00');
		INSERT INTO `static_dividend_policy` (`partner_idx`, `rank`, `type`, `level`, `amount`, `create_dt`, `update_dt`) VALUES (v_idx, '3', '1', '20', '3000000', '2021-04-15 15:15:00', '2021-08-03 22:14:00');
		INSERT INTO `static_dividend_policy` (`partner_idx`, `rank`, `type`, `level`, `amount`, `create_dt`, `update_dt`) VALUES (v_idx, '3', '2', '1', '1000000', '2021-04-15 15:15:00', '2021-08-03 22:14:00');
		INSERT INTO `static_dividend_policy` (`partner_idx`, `rank`, `type`, `level`, `amount`, `create_dt`, `update_dt`) VALUES (v_idx, '3', '2', '2', '1500000', '2021-04-15 15:15:00', '2021-08-03 22:14:00');
		INSERT INTO `static_dividend_policy` (`partner_idx`, `rank`, `type`, `level`, `amount`, `create_dt`, `update_dt`) VALUES (v_idx, '3', '2', '3', '1500000', '2021-04-15 15:15:00', '2021-08-03 22:14:00');
		INSERT INTO `static_dividend_policy` (`partner_idx`, `rank`, `type`, `level`, `amount`, `create_dt`, `update_dt`) VALUES (v_idx, '3', '2', '4', '1500000', '2021-04-15 15:15:00', '2021-08-03 22:14:00');
		INSERT INTO `static_dividend_policy` (`partner_idx`, `rank`, `type`, `level`, `amount`, `create_dt`, `update_dt`) VALUES (v_idx, '3', '2', '5', '1500000', '2021-04-15 15:15:00', '2021-08-03 22:14:00');
		INSERT INTO `static_dividend_policy` (`partner_idx`, `rank`, `type`, `level`, `amount`, `create_dt`, `update_dt`) VALUES (v_idx, '3', '2', '6', '1500000', '2021-04-15 15:15:00', '2021-08-03 22:14:00');
		INSERT INTO `static_dividend_policy` (`partner_idx`, `rank`, `type`, `level`, `amount`, `create_dt`, `update_dt`) VALUES (v_idx, '3', '2', '7', '1500000', '2021-04-15 15:15:00', '2021-08-03 22:14:00');
		INSERT INTO `static_dividend_policy` (`partner_idx`, `rank`, `type`, `level`, `amount`, `create_dt`, `update_dt`) VALUES (v_idx, '3', '2', '8', '1500000', '2021-04-15 15:15:00', '2021-08-03 22:14:00');
		INSERT INTO `static_dividend_policy` (`partner_idx`, `rank`, `type`, `level`, `amount`, `create_dt`, `update_dt`) VALUES (v_idx, '3', '2', '9', '2000000', '2021-04-15 15:15:00', '2021-08-03 22:14:00');
		INSERT INTO `static_dividend_policy` (`partner_idx`, `rank`, `type`, `level`, `amount`, `create_dt`, `update_dt`) VALUES (v_idx, '3', '2', '10', '1500000', '2021-04-15 15:15:00', '2021-08-03 22:14:00');
		INSERT INTO `static_dividend_policy` (`partner_idx`, `rank`, `type`, `level`, `amount`, `create_dt`, `update_dt`) VALUES (v_idx, '3', '2', '11', '3000000', '2021-04-15 15:15:00', '2021-08-03 22:14:00');
		INSERT INTO `static_dividend_policy` (`partner_idx`, `rank`, `type`, `level`, `amount`, `create_dt`, `update_dt`) VALUES (v_idx, '3', '2', '12', '3000000', '2021-04-15 15:15:00', '2021-08-03 22:14:00');
		INSERT INTO `static_dividend_policy` (`partner_idx`, `rank`, `type`, `level`, `amount`, `create_dt`, `update_dt`) VALUES (v_idx, '3', '2', '13', '5000000', '2021-04-15 15:15:00', '2021-08-03 22:14:00');
		INSERT INTO `static_dividend_policy` (`partner_idx`, `rank`, `type`, `level`, `amount`, `create_dt`, `update_dt`) VALUES (v_idx, '3', '2', '14', '5000000', '2021-04-15 15:15:00', '2021-08-03 22:14:00');
		INSERT INTO `static_dividend_policy` (`partner_idx`, `rank`, `type`, `level`, `amount`, `create_dt`, `update_dt`) VALUES (v_idx, '3', '2', '15', '5000000', '2021-04-15 15:15:00', '2021-08-03 22:14:00');
		INSERT INTO `static_dividend_policy` (`partner_idx`, `rank`, `type`, `level`, `amount`, `create_dt`, `update_dt`) VALUES (v_idx, '3', '2', '16', '3000000', '2021-04-15 15:15:00', '2021-08-03 22:14:00');
		INSERT INTO `static_dividend_policy` (`partner_idx`, `rank`, `type`, `level`, `amount`, `create_dt`, `update_dt`) VALUES (v_idx, '3', '2', '17', '3000000', '2021-04-15 15:15:00', '2021-08-03 22:14:00');
		INSERT INTO `static_dividend_policy` (`partner_idx`, `rank`, `type`, `level`, `amount`, `create_dt`, `update_dt`) VALUES (v_idx, '3', '2', '18', '3000000', '2021-04-15 15:15:00', '2021-08-03 22:14:00');
		INSERT INTO `static_dividend_policy` (`partner_idx`, `rank`, `type`, `level`, `amount`, `create_dt`, `update_dt`) VALUES (v_idx, '3', '2', '19', '3000000', '2021-04-15 15:15:00', '2021-08-03 22:14:00');
		INSERT INTO `static_dividend_policy` (`partner_idx`, `rank`, `type`, `level`, `amount`, `create_dt`, `update_dt`) VALUES (v_idx, '3', '2', '20', '3000000', '2021-04-15 15:15:00', '2021-08-03 22:14:00');
		INSERT INTO `static_dividend_policy` (`partner_idx`, `rank`, `type`, `level`, `amount`, `create_dt`, `update_dt`) VALUES (v_idx, '4', '1', '1', '1', '2021-04-15 15:15:00', '2021-08-03 22:14:00');
		INSERT INTO `static_dividend_policy` (`partner_idx`, `rank`, `type`, `level`, `amount`, `create_dt`, `update_dt`) VALUES (v_idx, '4', '1', '2', '1', '2021-04-15 15:15:00', '2021-08-03 22:14:00');
		INSERT INTO `static_dividend_policy` (`partner_idx`, `rank`, `type`, `level`, `amount`, `create_dt`, `update_dt`) VALUES (v_idx, '4', '1', '3', '1', '2021-04-15 15:15:00', '2021-08-03 22:14:00');
		INSERT INTO `static_dividend_policy` (`partner_idx`, `rank`, `type`, `level`, `amount`, `create_dt`, `update_dt`) VALUES (v_idx, '4', '1', '4', '1', '2021-04-15 15:15:00', '2021-08-03 22:14:00');
		INSERT INTO `static_dividend_policy` (`partner_idx`, `rank`, `type`, `level`, `amount`, `create_dt`, `update_dt`) VALUES (v_idx, '4', '1', '5', '1', '2021-04-15 15:15:00', '2021-08-03 22:14:00');
		INSERT INTO `static_dividend_policy` (`partner_idx`, `rank`, `type`, `level`, `amount`, `create_dt`, `update_dt`) VALUES (v_idx, '4', '1', '6', '1', '2021-04-15 15:15:00', '2021-08-03 22:14:00');
		INSERT INTO `static_dividend_policy` (`partner_idx`, `rank`, `type`, `level`, `amount`, `create_dt`, `update_dt`) VALUES (v_idx, '4', '1', '7', '1', '2021-04-15 15:15:00', '2021-08-03 22:14:00');
		INSERT INTO `static_dividend_policy` (`partner_idx`, `rank`, `type`, `level`, `amount`, `create_dt`, `update_dt`) VALUES (v_idx, '4', '1', '8', '1', '2021-04-15 15:15:00', '2021-08-03 22:14:00');
		INSERT INTO `static_dividend_policy` (`partner_idx`, `rank`, `type`, `level`, `amount`, `create_dt`, `update_dt`) VALUES (v_idx, '4', '1', '9', '1', '2021-04-15 15:15:00', '2021-08-03 22:14:00');
		INSERT INTO `static_dividend_policy` (`partner_idx`, `rank`, `type`, `level`, `amount`, `create_dt`, `update_dt`) VALUES (v_idx, '4', '1', '10', '1', '2021-04-15 15:15:00', '2021-08-03 22:14:00');
		INSERT INTO `static_dividend_policy` (`partner_idx`, `rank`, `type`, `level`, `amount`, `create_dt`, `update_dt`) VALUES (v_idx, '4', '1', '11', '3000000', '2021-04-15 15:15:00', '2021-08-03 22:14:00');
		INSERT INTO `static_dividend_policy` (`partner_idx`, `rank`, `type`, `level`, `amount`, `create_dt`, `update_dt`) VALUES (v_idx, '4', '1', '12', '3000000', '2021-04-15 15:15:00', '2021-08-03 22:14:00');
		INSERT INTO `static_dividend_policy` (`partner_idx`, `rank`, `type`, `level`, `amount`, `create_dt`, `update_dt`) VALUES (v_idx, '4', '1', '13', '5000000', '2021-04-15 15:15:00', '2021-08-03 22:14:00');
		INSERT INTO `static_dividend_policy` (`partner_idx`, `rank`, `type`, `level`, `amount`, `create_dt`, `update_dt`) VALUES (v_idx, '4', '1', '14', '5000000', '2021-04-15 15:15:00', '2021-08-03 22:14:00');
		INSERT INTO `static_dividend_policy` (`partner_idx`, `rank`, `type`, `level`, `amount`, `create_dt`, `update_dt`) VALUES (v_idx, '4', '1', '15', '5000000', '2021-04-15 15:15:00', '2021-08-03 22:14:00');
		INSERT INTO `static_dividend_policy` (`partner_idx`, `rank`, `type`, `level`, `amount`, `create_dt`, `update_dt`) VALUES (v_idx, '4', '1', '16', '3000000', '2021-04-15 15:15:00', '2021-08-03 22:14:00');
		INSERT INTO `static_dividend_policy` (`partner_idx`, `rank`, `type`, `level`, `amount`, `create_dt`, `update_dt`) VALUES (v_idx, '4', '1', '17', '3000000', '2021-04-15 15:15:00', '2021-08-03 22:14:00');
		INSERT INTO `static_dividend_policy` (`partner_idx`, `rank`, `type`, `level`, `amount`, `create_dt`, `update_dt`) VALUES (v_idx, '4', '1', '18', '3000000', '2021-04-15 15:15:00', '2021-08-03 22:14:00');
		INSERT INTO `static_dividend_policy` (`partner_idx`, `rank`, `type`, `level`, `amount`, `create_dt`, `update_dt`) VALUES (v_idx, '4', '1', '19', '3000000', '2021-04-15 15:15:00', '2021-08-03 22:14:00');
		INSERT INTO `static_dividend_policy` (`partner_idx`, `rank`, `type`, `level`, `amount`, `create_dt`, `update_dt`) VALUES (v_idx, '4', '1', '20', '3000000', '2021-04-15 15:15:00', '2021-08-03 22:14:00');
		INSERT INTO `static_dividend_policy` (`partner_idx`, `rank`, `type`, `level`, `amount`, `create_dt`, `update_dt`) VALUES (v_idx, '4', '2', '1', '1', '2021-04-15 15:15:00', '2021-08-03 22:14:00');
		INSERT INTO `static_dividend_policy` (`partner_idx`, `rank`, `type`, `level`, `amount`, `create_dt`, `update_dt`) VALUES (v_idx, '4', '2', '2', '1', '2021-04-15 15:15:00', '2021-08-03 22:14:00');
		INSERT INTO `static_dividend_policy` (`partner_idx`, `rank`, `type`, `level`, `amount`, `create_dt`, `update_dt`) VALUES (v_idx, '4', '2', '3', '1', '2021-04-15 15:15:00', '2021-08-03 22:14:00');
		INSERT INTO `static_dividend_policy` (`partner_idx`, `rank`, `type`, `level`, `amount`, `create_dt`, `update_dt`) VALUES (v_idx, '4', '2', '4', '1', '2021-04-15 15:15:00', '2021-08-03 22:14:00');
		INSERT INTO `static_dividend_policy` (`partner_idx`, `rank`, `type`, `level`, `amount`, `create_dt`, `update_dt`) VALUES (v_idx, '4', '2', '5', '1', '2021-04-15 15:15:00', '2021-08-03 22:14:00');
		INSERT INTO `static_dividend_policy` (`partner_idx`, `rank`, `type`, `level`, `amount`, `create_dt`, `update_dt`) VALUES (v_idx, '4', '2', '6', '1', '2021-04-15 15:15:00', '2021-08-03 22:14:00');
		INSERT INTO `static_dividend_policy` (`partner_idx`, `rank`, `type`, `level`, `amount`, `create_dt`, `update_dt`) VALUES (v_idx, '4', '2', '7', '1', '2021-04-15 15:15:00', '2021-08-03 22:14:00');
		INSERT INTO `static_dividend_policy` (`partner_idx`, `rank`, `type`, `level`, `amount`, `create_dt`, `update_dt`) VALUES (v_idx, '4', '2', '8', '1', '2021-04-15 15:15:00', '2021-08-03 22:14:00');
		INSERT INTO `static_dividend_policy` (`partner_idx`, `rank`, `type`, `level`, `amount`, `create_dt`, `update_dt`) VALUES (v_idx, '4', '2', '9', '1', '2021-04-15 15:15:00', '2021-08-03 22:14:00');
		INSERT INTO `static_dividend_policy` (`partner_idx`, `rank`, `type`, `level`, `amount`, `create_dt`, `update_dt`) VALUES (v_idx, '4', '2', '10', '1', '2021-04-15 15:15:00', '2021-08-03 22:14:00');
		INSERT INTO `static_dividend_policy` (`partner_idx`, `rank`, `type`, `level`, `amount`, `create_dt`, `update_dt`) VALUES (v_idx, '4', '2', '11', '3000000', '2021-04-15 15:15:00', '2021-08-03 22:14:00');
		INSERT INTO `static_dividend_policy` (`partner_idx`, `rank`, `type`, `level`, `amount`, `create_dt`, `update_dt`) VALUES (v_idx, '4', '2', '12', '3000000', '2021-04-15 15:15:00', '2021-08-03 22:14:00');
		INSERT INTO `static_dividend_policy` (`partner_idx`, `rank`, `type`, `level`, `amount`, `create_dt`, `update_dt`) VALUES (v_idx, '4', '2', '13', '5000000', '2021-04-15 15:15:00', '2021-08-03 22:14:00');
		INSERT INTO `static_dividend_policy` (`partner_idx`, `rank`, `type`, `level`, `amount`, `create_dt`, `update_dt`) VALUES (v_idx, '4', '2', '14', '5000000', '2021-04-15 15:15:00', '2021-08-03 22:14:00');
		INSERT INTO `static_dividend_policy` (`partner_idx`, `rank`, `type`, `level`, `amount`, `create_dt`, `update_dt`) VALUES (v_idx, '4', '2', '15', '5000000', '2021-04-15 15:15:00', '2021-08-03 22:14:00');
		INSERT INTO `static_dividend_policy` (`partner_idx`, `rank`, `type`, `level`, `amount`, `create_dt`, `update_dt`) VALUES (v_idx, '4', '2', '16', '3000000', '2021-04-15 15:15:00', '2021-08-03 22:14:00');
		INSERT INTO `static_dividend_policy` (`partner_idx`, `rank`, `type`, `level`, `amount`, `create_dt`, `update_dt`) VALUES (v_idx, '4', '2', '17', '3000000', '2021-04-15 15:15:00', '2021-08-03 22:14:00');
		INSERT INTO `static_dividend_policy` (`partner_idx`, `rank`, `type`, `level`, `amount`, `create_dt`, `update_dt`) VALUES (v_idx, '4', '2', '18', '3000000', '2021-04-15 15:15:00', '2021-08-03 22:14:00');
		INSERT INTO `static_dividend_policy` (`partner_idx`, `rank`, `type`, `level`, `amount`, `create_dt`, `update_dt`) VALUES (v_idx, '4', '2', '19', '3000000', '2021-04-15 15:15:00', '2021-08-03 22:14:00');
		INSERT INTO `static_dividend_policy` (`partner_idx`, `rank`, `type`, `level`, `amount`, `create_dt`, `update_dt`) VALUES (v_idx, '4', '2', '20', '3000000', '2021-04-15 15:15:00', '2021-08-03 22:14:00');

		INSERT INTO `static_head_office_config_data` (`head_office_idx`, `set_data`, `update_dt`, `create_dt`) VALUES (v_idx, '{\"roulette\": \"OFF\", \"level_rates\": \"OFF\", \"event_charge\": \"OFF\", \"auto_level_up\": \"OFF\", \"level_account\": \"OFF\", \"roulette_item\": \"OFF\", \"level_bet_money\": \"OFF\", \"site_inspection\": \"OFF\", \"level_charge_bonus\": \"OFF\", \"store_by_store_inspection\": \"OFF\"}', '2024-09-14 11:23:51', '2024-09-13 14:27:11');
        
        
		insert into static_head_office_leagues(head_office_idx,id,game_type,location_id,sports_id,is_use,deduction_refund_rate,is_margin_refund,input_refund_rate
        ,dividend_rank,image_path,display_name,`status`) 
        SELECT v_idx,id,game_type,location_id,sports_id,is_use,deduction_refund_rate,is_margin_refund,input_refund_rate
        ,dividend_rank,image_path,display_name,`status` FROM static_head_office_leagues_origin where head_office_idx = 1;
             
		
		insert into static_head_office_markets(head_office_idx,id,game_type,sports_id,is_onoff,display_order
        ,max_bet_price,limit_bet_price,max_baseline,min_baseline,set_baseline,is_baseline
        ,ex_baseline,include_baseline,betting_delay_time,betting_close_time,betting_open_time,betting_suspend_check_time,display_name) 
        SELECT v_idx,id,game_type,sports_id,is_onoff,display_order
        ,max_bet_price,limit_bet_price,max_baseline,min_baseline,set_baseline,is_baseline
        ,ex_baseline,include_baseline,betting_delay_time,betting_close_time,betting_open_time,betting_suspend_check_time,display_name FROM static_head_office_markets_origin;
        
		insert into static_head_office_participants(head_office_idx,fp_id,sports_id,location_id,league_id,display_name,image_path) 
			SELECT v_idx,fp_id,sports_id,location_id,league_id,display_name,image_path FROM static_head_office_participants_origin;
            
        insert into static_head_office_refund_rate_market(head_office_idx,sports_id,league_id,market_id,game_type,refund_rate,deduction_refund_rate,is_margin_refund) 
		 SELECT v_idx,sports_id,league_id,market_id,game_type,refund_rate,deduction_refund_rate,is_margin_refund FROM static_head_office_refund_rate_market_origin; 
        
	    insert into static_head_office_sports(head_office_idx,id,display_name,game_type,is_use,image_path,input_refund_rate,deduction_refund_rate,is_margin_refund,display_order) 
			SELECT v_idx,id,display_name,game_type,is_use,image_path,input_refund_rate,deduction_refund_rate,is_margin_refund,display_order FROM static_head_office_sports_origin; 
               		
        
		
		
		
		
		
		

		INSERT INTO `static_level_account` (`partner_idx`, `level`, `charge_method`, `bank_id`, `bank_front_name`, `account_name`, `account_number`, `bonus_point`, `update_dt`, `create_dt`, `etc`) VALUES (v_idx, '1', '0', '12', '', '고객센터로 문의바랍니다.', '0000', '5~10', '2024-05-08 18:05:57', '2020-11-29 18:15:13', '');
		INSERT INTO `static_level_account` (`partner_idx`, `level`, `charge_method`, `bank_id`, `bank_front_name`, `account_name`, `account_number`, `bonus_point`, `update_dt`, `create_dt`, `etc`) VALUES (v_idx, '2', '0', '22', '', '1ㄺㄱ', '111111', '5~10', '2024-05-02 11:58:26', '2020-11-29 18:15:13', '');
		INSERT INTO `static_level_account` (`partner_idx`, `level`, `charge_method`, `bank_id`, `bank_front_name`, `account_name`, `account_number`, `bonus_point`, `update_dt`, `create_dt`, `etc`) VALUES (v_idx, '3', '0', '12', '', '고객센터로 문의바랍니다.', '0000', '5~10', '2024-05-08 18:05:57', '2020-11-29 18:15:13', '');
		INSERT INTO `static_level_account` (`partner_idx`, `level`, `charge_method`, `bank_id`, `bank_front_name`, `account_name`, `account_number`, `bonus_point`, `update_dt`, `create_dt`, `etc`) VALUES (v_idx, '4', '0', '12', '', '고객센터로 문의바랍니다.', '0000', '5~10', '2024-05-08 18:05:57', '2020-12-13 06:03:26', '');
		INSERT INTO `static_level_account` (`partner_idx`, `level`, `charge_method`, `bank_id`, `bank_front_name`, `account_name`, `account_number`, `bonus_point`, `update_dt`, `create_dt`, `etc`) VALUES (v_idx, '5', '0', '12', '', '이종민', '5401-0394-36802', '5~10', '2024-05-08 18:05:57', '2020-12-13 06:03:27', '');
		INSERT INTO `static_level_account` (`partner_idx`, `level`, `charge_method`, `bank_id`, `bank_front_name`, `account_name`, `account_number`, `bonus_point`, `update_dt`, `create_dt`, `etc`) VALUES (v_idx, '6', '0', '2', '', '고객센터로 문의바랍니다.', '0000', '5~10', '2024-05-08 18:05:57', '2020-12-13 06:10:50', '');
		INSERT INTO `static_level_account` (`partner_idx`, `level`, `charge_method`, `bank_id`, `bank_front_name`, `account_name`, `account_number`, `bonus_point`, `update_dt`, `create_dt`, `etc`) VALUES (v_idx, '7', '0', '12', '', '고객센터로 문의바랍니다.', '0000', '5~10', '2024-05-08 18:05:57', '2020-12-13 06:10:51', '');
		INSERT INTO `static_level_account` (`partner_idx`, `level`, `charge_method`, `bank_id`, `bank_front_name`, `account_name`, `account_number`, `bonus_point`, `update_dt`, `create_dt`, `etc`) VALUES (v_idx, '8', '0', '12', '', '고객센터로 문의바랍니다.', '0000', '5~10', '2024-05-08 18:05:57', '2020-12-13 06:10:51', '');
		INSERT INTO `static_level_account` (`partner_idx`, `level`, `charge_method`, `bank_id`, `bank_front_name`, `account_name`, `account_number`, `bonus_point`, `update_dt`, `create_dt`, `etc`) VALUES (v_idx, '9', '0', '5', '', '고객센터로 문의바랍니다.', '0000', '5~10', '2024-05-08 18:05:57', '2020-12-13 06:10:51', '');
		INSERT INTO `static_level_account` (`partner_idx`, `level`, `charge_method`, `bank_id`, `bank_front_name`, `account_name`, `account_number`, `bonus_point`, `update_dt`, `create_dt`, `etc`) VALUES (v_idx, '10', '0', '6', '', '고객센터로 문의바랍니다.', '0000', '5~10', '2024-05-08 18:05:57', '2020-12-13 06:10:52', '');
		INSERT INTO `static_level_account` (`partner_idx`, `level`, `charge_method`, `bank_id`, `bank_front_name`, `account_name`, `account_number`, `bonus_point`, `update_dt`, `create_dt`, `etc`) VALUES (v_idx, '11', '0', '10', '', '고객센터로 문의바랍니다.', '0', '5~10', '2024-05-08 18:05:57', '2023-07-22 17:15:09', '');
		INSERT INTO `static_level_account` (`partner_idx`, `level`, `charge_method`, `bank_id`, `bank_front_name`, `account_name`, `account_number`, `bonus_point`, `update_dt`, `create_dt`, `etc`) VALUES (v_idx, '12', '0', '10', '', '고객센터로 문의바랍니다.', '0', '5~10', '2024-05-08 18:05:57', '2023-07-22 17:15:09', '');
		INSERT INTO `static_level_account` (`partner_idx`, `level`, `charge_method`, `bank_id`, `bank_front_name`, `account_name`, `account_number`, `bonus_point`, `update_dt`, `create_dt`, `etc`) VALUES (v_idx, '13', '0', '7', '', '고객센터로 문의바랍니다.', '0', '5~10', '2024-05-08 18:05:57', '2023-07-22 17:15:09', '');
		INSERT INTO `static_level_account` (`partner_idx`, `level`, `charge_method`, `bank_id`, `bank_front_name`, `account_name`, `account_number`, `bonus_point`, `update_dt`, `create_dt`, `etc`) VALUES (v_idx, '14', '0', '7', '', '고객센터로 문의바랍니다.', '0', '5~10', '2024-05-08 18:05:57', '2023-07-22 17:15:10', '');
		INSERT INTO `static_level_account` (`partner_idx`, `level`, `charge_method`, `bank_id`, `bank_front_name`, `account_name`, `account_number`, `bonus_point`, `update_dt`, `create_dt`, `etc`) VALUES (v_idx, '15', '0', '30', '', '고객센터로 문의바랍니다.', '0000', '5~10', '2024-05-08 18:05:57', '2023-07-22 17:15:10', '');
		INSERT INTO `static_level_account` (`partner_idx`, `level`, `charge_method`, `bank_id`, `bank_front_name`, `account_name`, `account_number`, `bonus_point`, `update_dt`, `create_dt`, `etc`) VALUES (v_idx, '16', '0', '7', '', '고객센터로 문의바랍니다.', '0000', '5~10', '2024-05-08 18:05:57', '2023-07-22 17:15:10', '');
		INSERT INTO `static_level_account` (`partner_idx`, `level`, `charge_method`, `bank_id`, `bank_front_name`, `account_name`, `account_number`, `bonus_point`, `update_dt`, `create_dt`, `etc`) VALUES (v_idx, '17', '0', '8', '', '고객센터로 문의바랍니다.', '0000', '5~10', '2024-05-08 18:05:57', '2023-07-22 17:15:10', '');
		INSERT INTO `static_level_account` (`partner_idx`, `level`, `charge_method`, `bank_id`, `bank_front_name`, `account_name`, `account_number`, `bonus_point`, `update_dt`, `create_dt`, `etc`) VALUES (v_idx, '18', '0', '26', '', '고객센터로 문의바랍니다.', '0000', '5~10', '2024-05-08 18:05:57', '2023-07-22 17:15:10', '');
		INSERT INTO `static_level_account` (`partner_idx`, `level`, `charge_method`, `bank_id`, `bank_front_name`, `account_name`, `account_number`, `bonus_point`, `update_dt`, `create_dt`, `etc`) VALUES (v_idx, '19', '0', '7', '', '쪽지 발송해드리겠습니다.', '입금하실 금액으로 충전신청 해주시길 바랍니다.', '5~10', '2024-05-08 18:05:57', '2023-07-22 17:15:10', '');
		INSERT INTO `static_level_account` (`partner_idx`, `level`, `charge_method`, `bank_id`, `bank_front_name`, `account_name`, `account_number`, `bonus_point`, `update_dt`, `create_dt`, `etc`) VALUES (v_idx, '20', '0', '3', '', '고객센터로 문의바랍니다.', '0000', '5~10', '2024-05-08 18:05:57', '2023-07-22 17:15:10', '');

		INSERT INTO `static_level_auto_level_up_config` (`partner_idx`, `is_use`, `reset_date`, `update_dt`, `create_dt`) VALUES (v_idx, 'ON', '200', '2024-09-06 19:06:14', '2024-09-06 18:36:16');

		INSERT INTO `static_level_auto_level_up_detail` (`partner_idx`, `level`, `is_use`, `charge`, `exchange`, `real_bet_amount`, `num_of_charge`, `update_dt`, `create_dt`) VALUES (v_idx, '1', 'ON', '10000', '10000', '100', '1', '2024-10-07 18:30:30', '2024-08-26 18:36:46');
		INSERT INTO `static_level_auto_level_up_detail` (`partner_idx`, `level`, `is_use`, `charge`, `exchange`, `real_bet_amount`, `num_of_charge`, `update_dt`, `create_dt`) VALUES (v_idx, '2', 'ON', '100000', '100000', '1000', '5', '2024-10-07 18:30:30', '2024-08-26 18:36:46');
		INSERT INTO `static_level_auto_level_up_detail` (`partner_idx`, `level`, `is_use`, `charge`, `exchange`, `real_bet_amount`, `num_of_charge`, `update_dt`, `create_dt`) VALUES (v_idx, '3', 'ON', '1000000', '1000000', '10000', '10', '2024-10-07 18:30:30', '2024-09-06 19:10:26');
		INSERT INTO `static_level_auto_level_up_detail` (`partner_idx`, `level`, `is_use`, `charge`, `exchange`, `real_bet_amount`, `num_of_charge`, `update_dt`, `create_dt`) VALUES (v_idx, '4', 'ON', '10000000', '10000000', '100000', '100', '2024-10-07 18:30:30', '2024-09-06 19:10:26');
		INSERT INTO `static_level_auto_level_up_detail` (`partner_idx`, `level`, `is_use`, `charge`, `exchange`, `real_bet_amount`, `num_of_charge`, `update_dt`, `create_dt`) VALUES (v_idx, '5', 'ON', '1', '1', '1', '1', '2024-09-06 19:10:26', '2024-09-06 19:10:26');
		INSERT INTO `static_level_auto_level_up_detail` (`partner_idx`, `level`, `is_use`, `charge`, `exchange`, `real_bet_amount`, `num_of_charge`, `update_dt`, `create_dt`) VALUES (v_idx, '6', 'ON', '1', '1', '1', '1', '2024-09-07 13:30:05', '2024-09-06 19:10:26');
		INSERT INTO `static_level_auto_level_up_detail` (`partner_idx`, `level`, `is_use`, `charge`, `exchange`, `real_bet_amount`, `num_of_charge`, `update_dt`, `create_dt`) VALUES (v_idx, '7', 'ON', '1', '1', '1', '1', '2024-09-07 13:30:05', '2024-09-07 13:30:05');
		INSERT INTO `static_level_auto_level_up_detail` (`partner_idx`, `level`, `is_use`, `charge`, `exchange`, `real_bet_amount`, `num_of_charge`, `update_dt`, `create_dt`) VALUES (v_idx, '8', 'ON', '1', '1', '1', '1', '2024-09-07 13:30:05', '2024-09-07 13:30:05');
		INSERT INTO `static_level_auto_level_up_detail` (`partner_idx`, `level`, `is_use`, `charge`, `exchange`, `real_bet_amount`, `num_of_charge`, `update_dt`, `create_dt`) VALUES (v_idx, '9', 'ON', '1', '1', '1', '1', '2024-09-07 13:30:05', '2024-09-07 13:30:05');
		INSERT INTO `static_level_auto_level_up_detail` (`partner_idx`, `level`, `is_use`, `charge`, `exchange`, `real_bet_amount`, `num_of_charge`, `update_dt`, `create_dt`) VALUES (v_idx, '10', 'ON', '1', '1', '1', '1', '2024-09-07 13:30:05', '2024-09-07 13:30:05');
		INSERT INTO `static_level_auto_level_up_detail` (`partner_idx`, `level`, `is_use`, `charge`, `exchange`, `real_bet_amount`, `num_of_charge`, `update_dt`, `create_dt`) VALUES (v_idx, '11', 'ON', '1', '1', '1', '1', '2024-09-07 13:30:05', '2024-09-07 13:30:05');
		INSERT INTO `static_level_auto_level_up_detail` (`partner_idx`, `level`, `is_use`, `charge`, `exchange`, `real_bet_amount`, `num_of_charge`, `update_dt`, `create_dt`) VALUES (v_idx, '12', 'ON', '999999', '1', '1', '1', '2024-09-07 13:30:25', '2024-09-07 13:30:05');
		INSERT INTO `static_level_auto_level_up_detail` (`partner_idx`, `level`, `is_use`, `charge`, `exchange`, `real_bet_amount`, `num_of_charge`, `update_dt`, `create_dt`) VALUES (v_idx, '13', 'ON', '1', '1', '1', '1', '2024-09-07 13:30:05', '2024-09-07 13:30:05');
		INSERT INTO `static_level_auto_level_up_detail` (`partner_idx`, `level`, `is_use`, `charge`, `exchange`, `real_bet_amount`, `num_of_charge`, `update_dt`, `create_dt`) VALUES (v_idx, '14', 'ON', '1', '1', '1', '1', '2024-09-07 13:30:05', '2024-09-07 13:30:05');
		INSERT INTO `static_level_auto_level_up_detail` (`partner_idx`, `level`, `is_use`, `charge`, `exchange`, `real_bet_amount`, `num_of_charge`, `update_dt`, `create_dt`) VALUES (v_idx, '15', 'ON', '1', '7777777', '1', '1', '2024-10-11 17:03:58', '2024-09-07 13:30:05');
		INSERT INTO `static_level_auto_level_up_detail` (`partner_idx`, `level`, `is_use`, `charge`, `exchange`, `real_bet_amount`, `num_of_charge`, `update_dt`, `create_dt`) VALUES (v_idx, '16', 'ON', '1', '1', '1', '1', '2024-09-07 13:30:05', '2024-09-07 13:30:05');
		INSERT INTO `static_level_auto_level_up_detail` (`partner_idx`, `level`, `is_use`, `charge`, `exchange`, `real_bet_amount`, `num_of_charge`, `update_dt`, `create_dt`) VALUES (v_idx, '17', 'ON', '1', '1', '1', '1', '2024-09-07 13:30:05', '2024-09-07 13:30:05');
		INSERT INTO `static_level_auto_level_up_detail` (`partner_idx`, `level`, `is_use`, `charge`, `exchange`, `real_bet_amount`, `num_of_charge`, `update_dt`, `create_dt`) VALUES (v_idx, '18', 'ON', '1', '1', '1', '1', '2024-09-07 13:30:05', '2024-09-07 13:30:05');
		INSERT INTO `static_level_auto_level_up_detail` (`partner_idx`, `level`, `is_use`, `charge`, `exchange`, `real_bet_amount`, `num_of_charge`, `update_dt`, `create_dt`) VALUES (v_idx, '19', 'ON', '1', '1', '1', '1', '2024-09-07 13:30:05', '2024-09-07 13:30:05');
		INSERT INTO `static_level_auto_level_up_detail` (`partner_idx`, `level`, `is_use`, `charge`, `exchange`, `real_bet_amount`, `num_of_charge`, `update_dt`, `create_dt`) VALUES (v_idx, '20', 'ON', '1', '1', '1', '1', '2024-09-07 13:30:05', '2024-09-07 13:30:05');

        INSERT INTO `static_level_bonus_basic_option_rolling_config` (`partner_idx`, `is_use`, `title`, `description`, `update_dt`, `create_dt`) VALUES (v_idx, 'Y', '보너스 포인트 없음', '※ 배팅롤링 : 스포츠 100%, 그 외 게임 200%', '2024-10-17 11:12:32', '2024-08-28 18:58:22');
	    INSERT INTO `static_level_bonus_charge_plus_config` (`partner_idx`, `title`, `condition`, `description`, `update_dt`, `create_dt`) VALUES (v_idx, '입금 플러스 jp', '※ 배팅롤링 : 스포츠 단폴더,투폴더 베팅불가 3폴더 200% 4폴더 150% 슬롯 800% 그외 모든종목 베팅금지 입니다.', '※ 입금 플러스 금액 설명 3+2, 5+3, 10+5, 30+12 일때 3만원 입금하면 2만원이 추가 지급, 5만원을 입금하면 3만원이 추가지급 입니다.', '2024-10-17 11:09:34', '2024-09-27 19:57:44');

		INSERT INTO `static_level_bonus_charge_plus_detail` (`partner_idx`, `number`, `is_use`, `amount`, `bonus`, `update_dt`, `create_dt`) VALUES (v_idx, '1', 'Y', '30000', '20000', '2024-10-17 11:08:52', '2024-09-13 13:25:08');
		INSERT INTO `static_level_bonus_charge_plus_detail` (`partner_idx`, `number`, `is_use`, `amount`, `bonus`, `update_dt`, `create_dt`) VALUES (v_idx, '2', 'Y', '50000', '30000', '2024-10-17 11:08:52', '2024-09-13 13:25:08');
		INSERT INTO `static_level_bonus_charge_plus_detail` (`partner_idx`, `number`, `is_use`, `amount`, `bonus`, `update_dt`, `create_dt`) VALUES (v_idx, '3', 'Y', '100000', '50000', '2024-10-17 11:08:52', '2024-09-13 13:25:08');
		INSERT INTO `static_level_bonus_charge_plus_detail` (`partner_idx`, `number`, `is_use`, `amount`, `bonus`, `update_dt`, `create_dt`) VALUES (v_idx, '4', 'Y', '300000', '120000', '2024-10-17 11:08:52', '2024-09-13 13:25:08');
		INSERT INTO `static_level_bonus_charge_plus_detail` (`partner_idx`, `number`, `is_use`, `amount`, `bonus`, `update_dt`, `create_dt`) VALUES (v_idx, '5', 'Y', '500000', '200000', '2024-10-17 11:08:52', '2024-09-13 13:25:08');
		INSERT INTO `static_level_bonus_charge_plus_detail` (`partner_idx`, `number`, `is_use`, `amount`, `bonus`, `update_dt`, `create_dt`) VALUES (v_idx, '6', 'Y', '1000000', '350000', '2024-10-17 11:08:52', '2024-09-13 13:25:08');


		INSERT INTO `static_level_charge_bonus_option` (`partner_idx`, `number`, `level`, `first_charge_const`, `first_charge_rate`, `first_charge_max`, `every_charge_const`, `every_charge_rate`, `every_charge_max`) VALUES (v_idx, '1', '1', '0', '10', '10000', '0', '10', '5000');
		INSERT INTO `static_level_charge_bonus_option` (`partner_idx`, `number`, `level`, `first_charge_const`, `first_charge_rate`, `first_charge_max`, `every_charge_const`, `every_charge_rate`, `every_charge_max`) VALUES (v_idx, '1', '2', '0', '10', '15000', '0', '10', '10000');
		INSERT INTO `static_level_charge_bonus_option` (`partner_idx`, `number`, `level`, `first_charge_const`, `first_charge_rate`, `first_charge_max`, `every_charge_const`, `every_charge_rate`, `every_charge_max`) VALUES (v_idx, '1', '3', '0', '10', '20000', '0', '10', '15000');
		INSERT INTO `static_level_charge_bonus_option` (`partner_idx`, `number`, `level`, `first_charge_const`, `first_charge_rate`, `first_charge_max`, `every_charge_const`, `every_charge_rate`, `every_charge_max`) VALUES (v_idx, '1', '4', '0', '10', '25000', '0', '10', '20000');
		INSERT INTO `static_level_charge_bonus_option` (`partner_idx`, `number`, `level`, `first_charge_const`, `first_charge_rate`, `first_charge_max`, `every_charge_const`, `every_charge_rate`, `every_charge_max`) VALUES (v_idx, '1', '5', '0', '10', '30000', '0', '10', '25000');
		INSERT INTO `static_level_charge_bonus_option` (`partner_idx`, `number`, `level`, `first_charge_const`, `first_charge_rate`, `first_charge_max`, `every_charge_const`, `every_charge_rate`, `every_charge_max`) VALUES (v_idx, '1', '6', '0', '10', '35000', '0', '10', '30000');
		INSERT INTO `static_level_charge_bonus_option` (`partner_idx`, `number`, `level`, `first_charge_const`, `first_charge_rate`, `first_charge_max`, `every_charge_const`, `every_charge_rate`, `every_charge_max`) VALUES (v_idx, '1', '7', '0', '10', '40000', '0', '10', '35000');
		INSERT INTO `static_level_charge_bonus_option` (`partner_idx`, `number`, `level`, `first_charge_const`, `first_charge_rate`, `first_charge_max`, `every_charge_const`, `every_charge_rate`, `every_charge_max`) VALUES (v_idx, '1', '8', '0', '10', '45000', '0', '10', '40000');
		INSERT INTO `static_level_charge_bonus_option` (`partner_idx`, `number`, `level`, `first_charge_const`, `first_charge_rate`, `first_charge_max`, `every_charge_const`, `every_charge_rate`, `every_charge_max`) VALUES (v_idx, '1', '9', '0', '10', '50000', '0', '10', '45000');
		INSERT INTO `static_level_charge_bonus_option` (`partner_idx`, `number`, `level`, `first_charge_const`, `first_charge_rate`, `first_charge_max`, `every_charge_const`, `every_charge_rate`, `every_charge_max`) VALUES (v_idx, '1', '10', '0', '10', '55000', '0', '10', '50000');
		INSERT INTO `static_level_charge_bonus_option` (`partner_idx`, `number`, `level`, `first_charge_const`, `first_charge_rate`, `first_charge_max`, `every_charge_const`, `every_charge_rate`, `every_charge_max`) VALUES (v_idx, '1', '11', '0', '1', '1', '0', '1', '1');
		INSERT INTO `static_level_charge_bonus_option` (`partner_idx`, `number`, `level`, `first_charge_const`, `first_charge_rate`, `first_charge_max`, `every_charge_const`, `every_charge_rate`, `every_charge_max`) VALUES (v_idx, '1', '12', '0', '1', '1', '0', '1', '1');
		INSERT INTO `static_level_charge_bonus_option` (`partner_idx`, `number`, `level`, `first_charge_const`, `first_charge_rate`, `first_charge_max`, `every_charge_const`, `every_charge_rate`, `every_charge_max`) VALUES (v_idx, '1', '13', '0', '1', '1', '0', '1', '1');
		INSERT INTO `static_level_charge_bonus_option` (`partner_idx`, `number`, `level`, `first_charge_const`, `first_charge_rate`, `first_charge_max`, `every_charge_const`, `every_charge_rate`, `every_charge_max`) VALUES (v_idx, '1', '14', '0', '1', '1', '0', '1', '1');
		INSERT INTO `static_level_charge_bonus_option` (`partner_idx`, `number`, `level`, `first_charge_const`, `first_charge_rate`, `first_charge_max`, `every_charge_const`, `every_charge_rate`, `every_charge_max`) VALUES (v_idx, '1', '15', '0', '1', '1', '0', '1', '1');
		INSERT INTO `static_level_charge_bonus_option` (`partner_idx`, `number`, `level`, `first_charge_const`, `first_charge_rate`, `first_charge_max`, `every_charge_const`, `every_charge_rate`, `every_charge_max`) VALUES (v_idx, '1', '16', '0', '1', '1', '0', '1', '1');
		INSERT INTO `static_level_charge_bonus_option` (`partner_idx`, `number`, `level`, `first_charge_const`, `first_charge_rate`, `first_charge_max`, `every_charge_const`, `every_charge_rate`, `every_charge_max`) VALUES (v_idx, '1', '17', '0', '1', '1', '0', '1', '1');
		INSERT INTO `static_level_charge_bonus_option` (`partner_idx`, `number`, `level`, `first_charge_const`, `first_charge_rate`, `first_charge_max`, `every_charge_const`, `every_charge_rate`, `every_charge_max`) VALUES (v_idx, '1', '18', '0', '1', '1', '0', '1', '1');
		INSERT INTO `static_level_charge_bonus_option` (`partner_idx`, `number`, `level`, `first_charge_const`, `first_charge_rate`, `first_charge_max`, `every_charge_const`, `every_charge_rate`, `every_charge_max`) VALUES (v_idx, '1', '19', '0', '1', '1', '0', '1', '1');
		INSERT INTO `static_level_charge_bonus_option` (`partner_idx`, `number`, `level`, `first_charge_const`, `first_charge_rate`, `first_charge_max`, `every_charge_const`, `every_charge_rate`, `every_charge_max`) VALUES (v_idx, '1', '20', '0', '1', '1', '0', '1', '1');
		INSERT INTO `static_level_charge_bonus_option` (`partner_idx`, `number`, `level`, `first_charge_const`, `first_charge_rate`, `first_charge_max`, `every_charge_const`, `every_charge_rate`, `every_charge_max`) VALUES (v_idx, '2', '1', '0', '15', '20000', '0', '15', '10000');
		INSERT INTO `static_level_charge_bonus_option` (`partner_idx`, `number`, `level`, `first_charge_const`, `first_charge_rate`, `first_charge_max`, `every_charge_const`, `every_charge_rate`, `every_charge_max`) VALUES (v_idx, '2', '2', '0', '15', '25000', '0', '15', '15000');
		INSERT INTO `static_level_charge_bonus_option` (`partner_idx`, `number`, `level`, `first_charge_const`, `first_charge_rate`, `first_charge_max`, `every_charge_const`, `every_charge_rate`, `every_charge_max`) VALUES (v_idx, '2', '3', '0', '15', '30000', '0', '15', '20000');
		INSERT INTO `static_level_charge_bonus_option` (`partner_idx`, `number`, `level`, `first_charge_const`, `first_charge_rate`, `first_charge_max`, `every_charge_const`, `every_charge_rate`, `every_charge_max`) VALUES (v_idx, '2', '4', '0', '15', '35000', '0', '15', '25000');
		INSERT INTO `static_level_charge_bonus_option` (`partner_idx`, `number`, `level`, `first_charge_const`, `first_charge_rate`, `first_charge_max`, `every_charge_const`, `every_charge_rate`, `every_charge_max`) VALUES (v_idx, '2', '5', '0', '15', '40000', '0', '15', '30000');
		INSERT INTO `static_level_charge_bonus_option` (`partner_idx`, `number`, `level`, `first_charge_const`, `first_charge_rate`, `first_charge_max`, `every_charge_const`, `every_charge_rate`, `every_charge_max`) VALUES (v_idx, '2', '6', '0', '15', '45000', '0', '15', '35000');
		INSERT INTO `static_level_charge_bonus_option` (`partner_idx`, `number`, `level`, `first_charge_const`, `first_charge_rate`, `first_charge_max`, `every_charge_const`, `every_charge_rate`, `every_charge_max`) VALUES (v_idx, '2', '7', '0', '15', '50000', '0', '15', '40000');
		INSERT INTO `static_level_charge_bonus_option` (`partner_idx`, `number`, `level`, `first_charge_const`, `first_charge_rate`, `first_charge_max`, `every_charge_const`, `every_charge_rate`, `every_charge_max`) VALUES (v_idx, '2', '8', '0', '15', '55000', '0', '15', '45000');
		INSERT INTO `static_level_charge_bonus_option` (`partner_idx`, `number`, `level`, `first_charge_const`, `first_charge_rate`, `first_charge_max`, `every_charge_const`, `every_charge_rate`, `every_charge_max`) VALUES (v_idx, '2', '9', '0', '15', '60000', '0', '15', '50000');
		INSERT INTO `static_level_charge_bonus_option` (`partner_idx`, `number`, `level`, `first_charge_const`, `first_charge_rate`, `first_charge_max`, `every_charge_const`, `every_charge_rate`, `every_charge_max`) VALUES (v_idx, '2', '10', '0', '15', '65000', '0', '15', '55000');
		INSERT INTO `static_level_charge_bonus_option` (`partner_idx`, `number`, `level`, `first_charge_const`, `first_charge_rate`, `first_charge_max`, `every_charge_const`, `every_charge_rate`, `every_charge_max`) VALUES (v_idx, '2', '11', '0', '1', '1', '0', '1', '1');
		INSERT INTO `static_level_charge_bonus_option` (`partner_idx`, `number`, `level`, `first_charge_const`, `first_charge_rate`, `first_charge_max`, `every_charge_const`, `every_charge_rate`, `every_charge_max`) VALUES (v_idx, '2', '12', '0', '1', '1', '0', '1', '1');
		INSERT INTO `static_level_charge_bonus_option` (`partner_idx`, `number`, `level`, `first_charge_const`, `first_charge_rate`, `first_charge_max`, `every_charge_const`, `every_charge_rate`, `every_charge_max`) VALUES (v_idx, '2', '13', '0', '1', '1', '0', '1', '1');
		INSERT INTO `static_level_charge_bonus_option` (`partner_idx`, `number`, `level`, `first_charge_const`, `first_charge_rate`, `first_charge_max`, `every_charge_const`, `every_charge_rate`, `every_charge_max`) VALUES (v_idx, '2', '14', '0', '1', '1', '0', '1', '1');
		INSERT INTO `static_level_charge_bonus_option` (`partner_idx`, `number`, `level`, `first_charge_const`, `first_charge_rate`, `first_charge_max`, `every_charge_const`, `every_charge_rate`, `every_charge_max`) VALUES (v_idx, '2', '15', '0', '1', '1', '0', '1', '1');
		INSERT INTO `static_level_charge_bonus_option` (`partner_idx`, `number`, `level`, `first_charge_const`, `first_charge_rate`, `first_charge_max`, `every_charge_const`, `every_charge_rate`, `every_charge_max`) VALUES (v_idx, '2', '16', '0', '1', '1', '0', '1', '1');
		INSERT INTO `static_level_charge_bonus_option` (`partner_idx`, `number`, `level`, `first_charge_const`, `first_charge_rate`, `first_charge_max`, `every_charge_const`, `every_charge_rate`, `every_charge_max`) VALUES (v_idx, '2', '17', '0', '1', '1', '0', '1', '1');
		INSERT INTO `static_level_charge_bonus_option` (`partner_idx`, `number`, `level`, `first_charge_const`, `first_charge_rate`, `first_charge_max`, `every_charge_const`, `every_charge_rate`, `every_charge_max`) VALUES (v_idx, '2', '18', '0', '1', '1', '0', '1', '1');
		INSERT INTO `static_level_charge_bonus_option` (`partner_idx`, `number`, `level`, `first_charge_const`, `first_charge_rate`, `first_charge_max`, `every_charge_const`, `every_charge_rate`, `every_charge_max`) VALUES (v_idx, '2', '19', '0', '1', '1', '0', '1', '1');
		INSERT INTO `static_level_charge_bonus_option` (`partner_idx`, `number`, `level`, `first_charge_const`, `first_charge_rate`, `first_charge_max`, `every_charge_const`, `every_charge_rate`, `every_charge_max`) VALUES (v_idx, '2', '20', '0', '1', '1', '0', '1', '1');
		INSERT INTO `static_level_charge_bonus_option` (`partner_idx`, `number`, `level`, `first_charge_const`, `first_charge_rate`, `first_charge_max`, `every_charge_const`, `every_charge_rate`, `every_charge_max`) VALUES (v_idx, '3', '1', '0', '20', '30000', '0', '20', '15000');
		INSERT INTO `static_level_charge_bonus_option` (`partner_idx`, `number`, `level`, `first_charge_const`, `first_charge_rate`, `first_charge_max`, `every_charge_const`, `every_charge_rate`, `every_charge_max`) VALUES (v_idx, '3', '2', '0', '20', '35000', '0', '20', '20000');
		INSERT INTO `static_level_charge_bonus_option` (`partner_idx`, `number`, `level`, `first_charge_const`, `first_charge_rate`, `first_charge_max`, `every_charge_const`, `every_charge_rate`, `every_charge_max`) VALUES (v_idx, '3', '3', '0', '20', '40000', '0', '20', '25000');
		INSERT INTO `static_level_charge_bonus_option` (`partner_idx`, `number`, `level`, `first_charge_const`, `first_charge_rate`, `first_charge_max`, `every_charge_const`, `every_charge_rate`, `every_charge_max`) VALUES (v_idx, '3', '4', '0', '20', '45000', '0', '20', '30000');
		INSERT INTO `static_level_charge_bonus_option` (`partner_idx`, `number`, `level`, `first_charge_const`, `first_charge_rate`, `first_charge_max`, `every_charge_const`, `every_charge_rate`, `every_charge_max`) VALUES (v_idx, '3', '5', '0', '20', '50000', '0', '20', '35000');
		INSERT INTO `static_level_charge_bonus_option` (`partner_idx`, `number`, `level`, `first_charge_const`, `first_charge_rate`, `first_charge_max`, `every_charge_const`, `every_charge_rate`, `every_charge_max`) VALUES (v_idx, '3', '6', '0', '20', '55000', '0', '20', '40000');
		INSERT INTO `static_level_charge_bonus_option` (`partner_idx`, `number`, `level`, `first_charge_const`, `first_charge_rate`, `first_charge_max`, `every_charge_const`, `every_charge_rate`, `every_charge_max`) VALUES (v_idx, '3', '7', '0', '20', '60000', '0', '20', '45000');
		INSERT INTO `static_level_charge_bonus_option` (`partner_idx`, `number`, `level`, `first_charge_const`, `first_charge_rate`, `first_charge_max`, `every_charge_const`, `every_charge_rate`, `every_charge_max`) VALUES (v_idx, '3', '8', '0', '20', '65000', '0', '20', '50000');
		INSERT INTO `static_level_charge_bonus_option` (`partner_idx`, `number`, `level`, `first_charge_const`, `first_charge_rate`, `first_charge_max`, `every_charge_const`, `every_charge_rate`, `every_charge_max`) VALUES (v_idx, '3', '9', '0', '20', '70000', '0', '20', '55000');
		INSERT INTO `static_level_charge_bonus_option` (`partner_idx`, `number`, `level`, `first_charge_const`, `first_charge_rate`, `first_charge_max`, `every_charge_const`, `every_charge_rate`, `every_charge_max`) VALUES (v_idx, '3', '10', '0', '20', '75000', '0', '20', '60000');
		INSERT INTO `static_level_charge_bonus_option` (`partner_idx`, `number`, `level`, `first_charge_const`, `first_charge_rate`, `first_charge_max`, `every_charge_const`, `every_charge_rate`, `every_charge_max`) VALUES (v_idx, '3', '11', '0', '1', '1', '0', '1', '1');
		INSERT INTO `static_level_charge_bonus_option` (`partner_idx`, `number`, `level`, `first_charge_const`, `first_charge_rate`, `first_charge_max`, `every_charge_const`, `every_charge_rate`, `every_charge_max`) VALUES (v_idx, '3', '12', '0', '1', '1', '0', '1', '1');
		INSERT INTO `static_level_charge_bonus_option` (`partner_idx`, `number`, `level`, `first_charge_const`, `first_charge_rate`, `first_charge_max`, `every_charge_const`, `every_charge_rate`, `every_charge_max`) VALUES (v_idx, '3', '13', '0', '1', '1', '0', '1', '1');
		INSERT INTO `static_level_charge_bonus_option` (`partner_idx`, `number`, `level`, `first_charge_const`, `first_charge_rate`, `first_charge_max`, `every_charge_const`, `every_charge_rate`, `every_charge_max`) VALUES (v_idx, '3', '14', '0', '1', '1', '0', '1', '1');
		INSERT INTO `static_level_charge_bonus_option` (`partner_idx`, `number`, `level`, `first_charge_const`, `first_charge_rate`, `first_charge_max`, `every_charge_const`, `every_charge_rate`, `every_charge_max`) VALUES (v_idx, '3', '15', '0', '1', '1', '0', '1', '1');
		INSERT INTO `static_level_charge_bonus_option` (`partner_idx`, `number`, `level`, `first_charge_const`, `first_charge_rate`, `first_charge_max`, `every_charge_const`, `every_charge_rate`, `every_charge_max`) VALUES (v_idx, '3', '16', '0', '1', '1', '0', '1', '1');
		INSERT INTO `static_level_charge_bonus_option` (`partner_idx`, `number`, `level`, `first_charge_const`, `first_charge_rate`, `first_charge_max`, `every_charge_const`, `every_charge_rate`, `every_charge_max`) VALUES (v_idx, '3', '17', '0', '1', '1', '0', '1', '1');
		INSERT INTO `static_level_charge_bonus_option` (`partner_idx`, `number`, `level`, `first_charge_const`, `first_charge_rate`, `first_charge_max`, `every_charge_const`, `every_charge_rate`, `every_charge_max`) VALUES (v_idx, '3', '18', '0', '1', '1', '0', '1', '1');
		INSERT INTO `static_level_charge_bonus_option` (`partner_idx`, `number`, `level`, `first_charge_const`, `first_charge_rate`, `first_charge_max`, `every_charge_const`, `every_charge_rate`, `every_charge_max`) VALUES (v_idx, '3', '19', '0', '1', '1', '0', '1', '1');
		INSERT INTO `static_level_charge_bonus_option` (`partner_idx`, `number`, `level`, `first_charge_const`, `first_charge_rate`, `first_charge_max`, `every_charge_const`, `every_charge_rate`, `every_charge_max`) VALUES (v_idx, '3', '20', '0', '1', '1', '0', '1', '1');
		INSERT INTO `static_level_charge_bonus_option` (`partner_idx`, `number`, `level`, `first_charge_const`, `first_charge_rate`, `first_charge_max`, `every_charge_const`, `every_charge_rate`, `every_charge_max`) VALUES (v_idx, '4', '1', '200000', '30', '40000', '100000', '30', '20000');
		INSERT INTO `static_level_charge_bonus_option` (`partner_idx`, `number`, `level`, `first_charge_const`, `first_charge_rate`, `first_charge_max`, `every_charge_const`, `every_charge_rate`, `every_charge_max`) VALUES (v_idx, '4', '2', '200000', '30', '50000', '100000', '30', '25000');
		INSERT INTO `static_level_charge_bonus_option` (`partner_idx`, `number`, `level`, `first_charge_const`, `first_charge_rate`, `first_charge_max`, `every_charge_const`, `every_charge_rate`, `every_charge_max`) VALUES (v_idx, '4', '3', '200000', '30', '60000', '100000', '30', '30000');
		INSERT INTO `static_level_charge_bonus_option` (`partner_idx`, `number`, `level`, `first_charge_const`, `first_charge_rate`, `first_charge_max`, `every_charge_const`, `every_charge_rate`, `every_charge_max`) VALUES (v_idx, '4', '4', '200000', '30', '70000', '100000', '30', '35000');
		INSERT INTO `static_level_charge_bonus_option` (`partner_idx`, `number`, `level`, `first_charge_const`, `first_charge_rate`, `first_charge_max`, `every_charge_const`, `every_charge_rate`, `every_charge_max`) VALUES (v_idx, '4', '5', '200000', '30', '80000', '100000', '30', '40000');
		INSERT INTO `static_level_charge_bonus_option` (`partner_idx`, `number`, `level`, `first_charge_const`, `first_charge_rate`, `first_charge_max`, `every_charge_const`, `every_charge_rate`, `every_charge_max`) VALUES (v_idx, '4', '6', '200000', '30', '90000', '100000', '30', '45000');
		INSERT INTO `static_level_charge_bonus_option` (`partner_idx`, `number`, `level`, `first_charge_const`, `first_charge_rate`, `first_charge_max`, `every_charge_const`, `every_charge_rate`, `every_charge_max`) VALUES (v_idx, '4', '7', '200000', '30', '100000', '100000', '30', '50000');
		INSERT INTO `static_level_charge_bonus_option` (`partner_idx`, `number`, `level`, `first_charge_const`, `first_charge_rate`, `first_charge_max`, `every_charge_const`, `every_charge_rate`, `every_charge_max`) VALUES (v_idx, '4', '8', '200000', '30', '110000', '100000', '30', '55000');
		INSERT INTO `static_level_charge_bonus_option` (`partner_idx`, `number`, `level`, `first_charge_const`, `first_charge_rate`, `first_charge_max`, `every_charge_const`, `every_charge_rate`, `every_charge_max`) VALUES (v_idx, '4', '9', '200000', '30', '120000', '100000', '30', '60000');
		INSERT INTO `static_level_charge_bonus_option` (`partner_idx`, `number`, `level`, `first_charge_const`, `first_charge_rate`, `first_charge_max`, `every_charge_const`, `every_charge_rate`, `every_charge_max`) VALUES (v_idx, '4', '10', '200000', '30', '130000', '100000', '30', '65000');
		INSERT INTO `static_level_charge_bonus_option` (`partner_idx`, `number`, `level`, `first_charge_const`, `first_charge_rate`, `first_charge_max`, `every_charge_const`, `every_charge_rate`, `every_charge_max`) VALUES (v_idx, '4', '11', '0', '1', '1', '0', '1', '1');
		INSERT INTO `static_level_charge_bonus_option` (`partner_idx`, `number`, `level`, `first_charge_const`, `first_charge_rate`, `first_charge_max`, `every_charge_const`, `every_charge_rate`, `every_charge_max`) VALUES (v_idx, '4', '12', '0', '1', '1', '0', '1', '1');
		INSERT INTO `static_level_charge_bonus_option` (`partner_idx`, `number`, `level`, `first_charge_const`, `first_charge_rate`, `first_charge_max`, `every_charge_const`, `every_charge_rate`, `every_charge_max`) VALUES (v_idx, '4', '13', '0', '1', '1', '0', '1', '1');
		INSERT INTO `static_level_charge_bonus_option` (`partner_idx`, `number`, `level`, `first_charge_const`, `first_charge_rate`, `first_charge_max`, `every_charge_const`, `every_charge_rate`, `every_charge_max`) VALUES (v_idx, '4', '14', '0', '1', '1', '0', '1', '1');
		INSERT INTO `static_level_charge_bonus_option` (`partner_idx`, `number`, `level`, `first_charge_const`, `first_charge_rate`, `first_charge_max`, `every_charge_const`, `every_charge_rate`, `every_charge_max`) VALUES (v_idx, '4', '15', '0', '1', '1', '0', '1', '1');
		INSERT INTO `static_level_charge_bonus_option` (`partner_idx`, `number`, `level`, `first_charge_const`, `first_charge_rate`, `first_charge_max`, `every_charge_const`, `every_charge_rate`, `every_charge_max`) VALUES (v_idx, '4', '16', '0', '1', '1', '0', '1', '1');
		INSERT INTO `static_level_charge_bonus_option` (`partner_idx`, `number`, `level`, `first_charge_const`, `first_charge_rate`, `first_charge_max`, `every_charge_const`, `every_charge_rate`, `every_charge_max`) VALUES (v_idx, '4', '17', '0', '1', '1', '0', '1', '1');
		INSERT INTO `static_level_charge_bonus_option` (`partner_idx`, `number`, `level`, `first_charge_const`, `first_charge_rate`, `first_charge_max`, `every_charge_const`, `every_charge_rate`, `every_charge_max`) VALUES (v_idx, '4', '18', '0', '1', '1', '0', '1', '1');
		INSERT INTO `static_level_charge_bonus_option` (`partner_idx`, `number`, `level`, `first_charge_const`, `first_charge_rate`, `first_charge_max`, `every_charge_const`, `every_charge_rate`, `every_charge_max`) VALUES (v_idx, '4', '19', '0', '1', '1', '0', '1', '1');
		INSERT INTO `static_level_charge_bonus_option` (`partner_idx`, `number`, `level`, `first_charge_const`, `first_charge_rate`, `first_charge_max`, `every_charge_const`, `every_charge_rate`, `every_charge_max`) VALUES (v_idx, '4', '20', '0', '1', '1', '0', '1', '1');

		INSERT INTO `static_level_charge_config` (`partner_idx`, `number`, `title`, `is_first_register_charge_use`, `first_register_charge_const`, `first_register_charge_rate`, `first_register_charge_max`, `description`, `update_dt`, `create_dt`) VALUES (v_idx, '0', '가입 첫 충전 보너스 없음', 'Y', '0', '0', '0', '※ 배팅롤링 : 카지노 200% 그외 모든종목 100% 입니다.', '2024-10-17 13:17:06', '2024-09-04 19:26:52');
		INSERT INTO `static_level_charge_config` (`partner_idx`, `number`, `title`, `is_first_register_charge_use`, `first_register_charge_const`, `first_register_charge_rate`, `first_register_charge_max`, `description`, `update_dt`, `create_dt`) VALUES (v_idx, '1', '가입 첫 충전 보너스 1', 'Y', '0', '10', '100000', '※ 배팅롤링 : 스포츠 단폴더 베팅불가, 2폴더 150% 3폴더 이상 100% / 카지노 800% 그외 모든종목 300% 입니다.', '2024-10-17 13:17:06', '2024-08-28 18:48:54');
		INSERT INTO `static_level_charge_config` (`partner_idx`, `number`, `title`, `is_first_register_charge_use`, `first_register_charge_const`, `first_register_charge_rate`, `first_register_charge_max`, `description`, `update_dt`, `create_dt`) VALUES (v_idx, '2', '가입 첫 충전 보너스 2', 'Y', '0', '20', '200000', '※ 배팅롤링 : 스포츠 단폴더,투폴더 베팅불가 3폴더 150% 4폴더이상 100% / 슬롯 500% 그외 모든종목 베팅금지 입니다.', '2024-10-17 13:17:06', '2024-08-28 23:12:52');
		INSERT INTO `static_level_charge_config` (`partner_idx`, `number`, `title`, `is_first_register_charge_use`, `first_register_charge_const`, `first_register_charge_rate`, `first_register_charge_max`, `description`, `update_dt`, `create_dt`) VALUES (v_idx, '3', '가입 첫 충전 보너스 3', 'Y', '0', '30', '300000', '※ 배팅롤링 : 스포츠 단폴더,투폴더 베팅불가 3폴더 200% 4폴더 150% / 슬롯 500% 그외 모든종목 베팅금지 입니다.', '2024-10-17 13:17:06', '2024-08-28 23:12:52');
		INSERT INTO `static_level_charge_config` (`partner_idx`, `number`, `title`, `is_first_register_charge_use`, `first_register_charge_const`, `first_register_charge_rate`, `first_register_charge_max`, `description`, `update_dt`, `create_dt`) VALUES (v_idx, '4', '가입 첫 충전 보너스 4', 'Y', '0', '40', '400000', '※ 배팅롤링 : 스포츠 단폴더,투폴더 베팅불가 3폴더 200% 4폴더 150% / 슬롯 800% 그외 모든종목 베팅금지 입니다.', '2024-10-17 13:17:06', '2024-08-28 23:12:52');

		INSERT INTO `static_level_charge_detail` (`partner_idx`, `level`, `charge_type`, `site_marking`, `update_dt`, `create_dt`) VALUES (v_idx, '1', '1', '입금방법1', '2024-08-31 13:14:09', '2024-08-31 13:14:09');
		INSERT INTO `static_level_charge_detail` (`partner_idx`, `level`, `charge_type`, `site_marking`, `update_dt`, `create_dt`) VALUES (v_idx, '2', '1', '입금방법2', '2024-08-31 13:14:09', '2024-08-31 13:14:09');
		INSERT INTO `static_level_charge_detail` (`partner_idx`, `level`, `charge_type`, `site_marking`, `update_dt`, `create_dt`) VALUES (v_idx, '3', '1', '입금방법3', '2024-08-31 13:14:09', '2024-08-31 13:14:09');
		INSERT INTO `static_level_charge_detail` (`partner_idx`, `level`, `charge_type`, `site_marking`, `update_dt`, `create_dt`) VALUES (v_idx, '4', '1', '입금방법4', '2024-08-31 13:14:09', '2024-08-31 13:14:09');
		INSERT INTO `static_level_charge_detail` (`partner_idx`, `level`, `charge_type`, `site_marking`, `update_dt`, `create_dt`) VALUES (v_idx, '5', '1', '입금방법5', '2024-08-31 13:14:09', '2024-08-31 13:14:09');
        
        INSERT INTO `static_level_charge_detail` (`partner_idx`, `level`, `charge_type`, `site_marking`, `update_dt`, `create_dt`) VALUES (v_idx, '6', '1', '입금방법6', '2024-08-31 13:14:09', '2024-08-31 13:14:09');
        INSERT INTO `static_level_charge_detail` (`partner_idx`, `level`, `charge_type`, `site_marking`, `update_dt`, `create_dt`) VALUES (v_idx, '7', '1', '입금방법7', '2024-08-31 13:14:09', '2024-08-31 13:14:09');
        INSERT INTO `static_level_charge_detail` (`partner_idx`, `level`, `charge_type`, `site_marking`, `update_dt`, `create_dt`) VALUES (v_idx, '8', '1', '입금방법8', '2024-08-31 13:14:09', '2024-08-31 13:14:09');
        INSERT INTO `static_level_charge_detail` (`partner_idx`, `level`, `charge_type`, `site_marking`, `update_dt`, `create_dt`) VALUES (v_idx, '9', '1', '입금방법9', '2024-08-31 13:14:09', '2024-08-31 13:14:09');
        INSERT INTO `static_level_charge_detail` (`partner_idx`, `level`, `charge_type`, `site_marking`, `update_dt`, `create_dt`) VALUES (v_idx, '10', '1', '입금방법10', '2024-08-31 13:14:09', '2024-08-31 13:14:09');

		INSERT INTO `static_level_charge_detail` (`partner_idx`, `level`, `charge_type`, `site_marking`, `update_dt`, `create_dt`) VALUES (v_idx, '11', '1', '입금방법1', '2024-08-31 13:14:09', '2024-08-31 13:14:09');
		INSERT INTO `static_level_charge_detail` (`partner_idx`, `level`, `charge_type`, `site_marking`, `update_dt`, `create_dt`) VALUES (v_idx, '12', '1', '입금방법2', '2024-08-31 13:14:09', '2024-08-31 13:14:09');
		INSERT INTO `static_level_charge_detail` (`partner_idx`, `level`, `charge_type`, `site_marking`, `update_dt`, `create_dt`) VALUES (v_idx, '13', '1', '입금방법3', '2024-08-31 13:14:09', '2024-08-31 13:14:09');
		INSERT INTO `static_level_charge_detail` (`partner_idx`, `level`, `charge_type`, `site_marking`, `update_dt`, `create_dt`) VALUES (v_idx, '14', '1', '입금방법4', '2024-08-31 13:14:09', '2024-08-31 13:14:09');
		INSERT INTO `static_level_charge_detail` (`partner_idx`, `level`, `charge_type`, `site_marking`, `update_dt`, `create_dt`) VALUES (v_idx, '15', '1', '입금방법5', '2024-08-31 13:14:09', '2024-08-31 13:14:09');
        
        INSERT INTO `static_level_charge_detail` (`partner_idx`, `level`, `charge_type`, `site_marking`, `update_dt`, `create_dt`) VALUES (v_idx, '16', '1', '입금방법6', '2024-08-31 13:14:09', '2024-08-31 13:14:09');
        INSERT INTO `static_level_charge_detail` (`partner_idx`, `level`, `charge_type`, `site_marking`, `update_dt`, `create_dt`) VALUES (v_idx, '17', '1', '입금방법7', '2024-08-31 13:14:09', '2024-08-31 13:14:09');
        INSERT INTO `static_level_charge_detail` (`partner_idx`, `level`, `charge_type`, `site_marking`, `update_dt`, `create_dt`) VALUES (v_idx, '18', '1', '입금방법8', '2024-08-31 13:14:09', '2024-08-31 13:14:09');
        INSERT INTO `static_level_charge_detail` (`partner_idx`, `level`, `charge_type`, `site_marking`, `update_dt`, `create_dt`) VALUES (v_idx, '19', '1', '입금방법9', '2024-08-31 13:14:09', '2024-08-31 13:14:09');
        INSERT INTO `static_level_charge_detail` (`partner_idx`, `level`, `charge_type`, `site_marking`, `update_dt`, `create_dt`) VALUES (v_idx, '20', '1', '입금방법10', '2024-08-31 13:14:09', '2024-08-31 13:14:09');

		
		
        
        INSERT INTO static_min_max_limit_win_betting_money(partner_idx,game_type,`level`,min_money,max_money,limit_win_money,  
		league_level_1,league_level_2,league_level_3,league_level_4 ) 
        SELECT v_idx,game_type,`level`,min_money,max_money,limit_win_money,  
		league_level_1,league_level_2,league_level_3,league_level_4 FROM static_origin.static_min_max_limit_win_betting_money where partner_idx = v_idx;
        
        INSERT INTO static_head_office_mini_game (partner_idx, sub_type, third_type, `level`, min_bet_price, max_bet_price, max_limit_prize_money, dividend_detail, is_onoff)
        SELECT v_idx, sub_type, third_type, `level`, min_bet_price, max_bet_price, max_limit_prize_money, dividend_detail, is_onoff
        FROM static_origin.static_head_office_mini_game where partner_idx = v_idx;
        
        INSERT INTO `static_bonus_option` (`partner_idx`, `number`, `title`, `description`, `is_use`)
        SELECT v_idx `partner_idx`, `number`, `title`, `description`, `is_use` 
        FROM static_origin.static_bonus_option where partner_idx = v_idx;
        
		INSERT INTO `static_partner_admin_rule_set` (`partner_idx`, `partner_type`, `head_rule_data`, `situation_board_rule_data`, `head_office_tab_rule_data`, `lnb_member_rule_data`, `lnb_partner_rule_data`, `lnb_sports_rule_data`, `lnb_mini_game_rule_data`, `lnb_casino_rule_data`, `lnb_money_rule_data`, `lnb_site_rule_data`, `lnb_statistic_rule_data`, `lnb_board_rule_data`, `member_detail_rule_data`, `partner_detail_rule_data`) 
        SELECT v_idx,partner_type,head_rule_data,situation_board_rule_data,head_office_tab_rule_data,lnb_member_rule_data
        ,lnb_partner_rule_data,lnb_sports_rule_data,lnb_mini_game_rule_data,lnb_casino_rule_data,lnb_money_rule_data
        ,lnb_site_rule_data,lnb_statistic_rule_data,lnb_board_rule_data,member_detail_rule_data,partner_detail_rule_data FROM static_partner_admin_rule_set_original where partner_type = 1;

		INSERT INTO `static_partner_config_juckjang_data` (`partner_idx`, `cycle`, `formula_idx`, `is_use`, `update_dt`, `create_dt`) VALUES (v_idx, '1', '2', 'ON', '2024-11-13 22:03:12', '2024-08-17 17:41:11');
		INSERT INTO `static_partner_front_rule_set` (`partner_idx`, `rule_data`, `update_dt`, `create_dt`) VALUES (v_idx, '{\"is_login_type\": \"close\", \"delay_ufc_time\": 0, \"delay_soccer_time\": 10000, \"delay_tennis_time\": 0, \"limit_cancel_time\": 30, \"max_dividend_rate\": 100, \"betting_money_list\": \"10000,30000,50000,100000,300000,500000,1000000\", \"limit_folder_bonus\": 1.01, \"delay_baseball_time\": 10000, \"delay_e_sports_time\": 0, \"maintanance_main_cs\": \"N\", \"odds_3_folder_bonus\": 1.01, \"odds_4_folder_bonus\": 1.02, \"odds_5_folder_bonus\": 1.03, \"odds_6_folder_bonus\": 1.04, \"odds_7_folder_bonus\": 1.05, \"delay_basketball_time\": 10000, \"delay_ice_hockey_time\": 10000, \"delay_volleyball_time\": 10000, \"maintanance_main_site\": \"N\", \"maintanance_main_slot\": \"N\", \"can_betting_delay_time\": 3, \"is_use_charge_password\": \"Y\", \"re_exchange_check_time\": 3, \"maintanance_main_casino\": \"N\", \"maintanance_main_charge\": \"N\", \"maintanance_main_sports\": \"N\", \"is_use_exchange_password\": \"Y\", \"maintanance_main_exchange\": \"N\", \"maintanance_main_realtime\": \"N\", \"delay_americal_football_time\": 0, \"odds_3_folder_bonus_realtime\": 1.06, \"odds_4_folder_bonus_realtime\": 1.06, \"odds_5_folder_bonus_realtime\": 1.08, \"odds_6_folder_bonus_realtime\": 1.09, \"odds_7_folder_bonus_realtime\": 1.1, \"service_bonus_folder_prematch\": \"Y\", \"service_bonus_folder_realtime\": \"Y\", \"maintanance_mini_game_sure_race_1\": \"N\", \"maintanance_mini_game_sure_race_2\": \"N\", \"maintanance_mini_game_sure_race_3\": \"N\", \"maintanance_virtual_game_bratania\": \"N\", \"maintanance_virtual_game_festival\": \"N\", \"service_bonus_folder_prematch_min\": 1.52, \"service_bonus_folder_realtime_min\": 1.061, \"maintanance_virtual_game_world_cup\": \"N\", \"lose_bonus_point_limit_folder_count\": 5, \"maintanance_mini_game_sure_laddar_1\": \"N\", \"maintanance_mini_game_sure_laddar_2\": \"N\", \"maintanance_mini_game_sure_laddar_3\": \"N\", \"maintanance_virtual_game_golden_hill\": \"N\", \"maintanance_virtual_game_premiership\": \"N\", \"maintanance_mini_game_ntry_power_ball\": \"N\", \"maintanance_virtual_game_super_league\": \"N\", \"maintanance_mini_game_ntry_kino_laddar\": \"N\", \"maintanance_mini_game_red_power_laddar\": \"N\", \"maintanance_virtual_game_hillside_park\": \"N\", \"maintanance_virtual_game_victoria_park\": \"N\", \"maintanance_mini_game_ntry_power_laddar\": \"N\", \"maintanance_mini_game_sure_power_ball_1\": \"N\", \"maintanance_mini_game_sure_power_ball_2\": \"N\", \"maintanance_mini_game_sure_power_ball_3\": \"N\", \"maintanance_mini_game_named_power_ball_5\": \"N\", \"maintanance_mini_game_next_game_baccarat\": \"N\", \"maintanance_mini_game_next_game_power_ball\": \"N\"}', '2024-10-23 18:10:23', '2024-08-28 11:24:56');

		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '1', '1', '1.00', '1.00', '2024-10-11 21:43:29', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '1', '2', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '1', '3', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '1', '4', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '1', '5', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '1', '6', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '1', '7', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '1', '8', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '1', '9', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '1', '10', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '1', '11', '0.00', '10.00', '2024-11-13 18:55:05', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '1', '12', '0.00', '10.00', '2024-11-13 18:55:05', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '1', '13', '0.00', '10.00', '2024-11-13 18:55:05', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '1', '14', '0.00', '10.00', '2024-11-13 18:55:05', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '1', '15', '0.00', '10.00', '2024-11-13 18:55:05', '2024-10-10 16:04:12');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '1', '16', '0.00', '10.00', '2024-11-13 18:55:05', '2024-10-10 16:04:12');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '1', '17', '0.00', '10.00', '2024-11-13 18:55:05', '2024-10-10 16:04:12');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '1', '18', '0.00', '10.00', '2024-11-13 18:55:05', '2024-10-10 16:04:12');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '1', '19', '0.00', '10.00', '2024-11-13 18:55:05', '2024-10-10 16:04:12');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '1', '20', '0.00', '10.00', '2024-11-13 18:55:05', '2024-10-10 16:04:12');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '2', '1', '2.00', '2.00', '2024-10-11 21:43:29', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '2', '2', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '2', '3', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '2', '4', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '2', '5', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '2', '6', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '2', '7', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '2', '8', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '2', '9', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '2', '10', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '2', '11', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '2', '12', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '2', '13', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '2', '14', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '2', '15', '10.00', '10.00', '2024-10-10 16:04:12', '2024-10-10 16:04:12');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '2', '16', '10.00', '10.00', '2024-10-10 16:04:12', '2024-10-10 16:04:12');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '2', '17', '10.00', '10.00', '2024-10-10 16:04:12', '2024-10-10 16:04:12');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '2', '18', '10.00', '10.00', '2024-10-10 16:04:12', '2024-10-10 16:04:12');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '2', '19', '10.00', '10.00', '2024-10-10 16:04:12', '2024-10-10 16:04:12');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '2', '20', '10.00', '10.00', '2024-10-10 16:04:12', '2024-10-10 16:04:12');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '3', '1', '3.00', '3.00', '2024-10-11 21:43:29', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '3', '2', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '3', '3', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '3', '4', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '3', '5', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '3', '6', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '3', '7', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '3', '8', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '3', '9', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '3', '10', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '3', '11', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '3', '12', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '3', '13', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '3', '14', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '3', '15', '10.00', '10.00', '2024-10-10 16:04:12', '2024-10-10 16:04:12');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '3', '16', '10.00', '10.00', '2024-10-10 16:04:12', '2024-10-10 16:04:12');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '3', '17', '10.00', '10.00', '2024-10-10 16:04:12', '2024-10-10 16:04:12');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '3', '18', '10.00', '10.00', '2024-10-10 16:04:12', '2024-10-10 16:04:12');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '3', '19', '10.00', '10.00', '2024-10-10 16:04:12', '2024-10-10 16:04:12');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '3', '20', '10.00', '10.00', '2024-10-10 16:04:12', '2024-10-10 16:04:12');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '4', '1', '4.00', '4.00', '2024-10-11 21:43:29', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '4', '2', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '4', '3', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '4', '4', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '4', '5', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '4', '6', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '4', '7', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '4', '8', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '4', '9', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '4', '10', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '4', '11', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '4', '12', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '4', '13', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '4', '14', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '4', '15', '10.00', '10.00', '2024-10-10 16:04:12', '2024-10-10 16:04:12');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '4', '16', '10.00', '10.00', '2024-10-10 16:04:12', '2024-10-10 16:04:12');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '4', '17', '10.00', '10.00', '2024-10-10 16:04:12', '2024-10-10 16:04:12');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '4', '18', '10.00', '10.00', '2024-10-10 16:04:12', '2024-10-10 16:04:12');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '4', '19', '10.00', '10.00', '2024-10-10 16:04:12', '2024-10-10 16:04:12');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '4', '20', '10.00', '10.00', '2024-10-10 16:04:12', '2024-10-10 16:04:12');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '5', '1', '5.00', '5.00', '2024-10-11 21:43:29', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '5', '2', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '5', '3', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '5', '4', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '5', '5', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '5', '6', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '5', '7', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '5', '8', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '5', '9', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '5', '10', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '5', '11', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '5', '12', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '5', '13', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '5', '14', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '5', '15', '10.00', '10.00', '2024-10-10 16:04:12', '2024-10-10 16:04:12');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '5', '16', '10.00', '10.00', '2024-10-10 16:04:12', '2024-10-10 16:04:12');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '5', '17', '10.00', '10.00', '2024-10-10 16:04:12', '2024-10-10 16:04:12');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '5', '18', '10.00', '10.00', '2024-10-10 16:04:12', '2024-10-10 16:04:12');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '5', '19', '10.00', '10.00', '2024-10-10 16:04:12', '2024-10-10 16:04:12');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '5', '20', '10.00', '10.00', '2024-10-10 16:04:12', '2024-10-10 16:04:12');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '6', '1', '6.00', '6.00', '2024-10-11 21:43:29', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '6', '2', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '6', '3', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '6', '4', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '6', '5', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '6', '6', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '6', '7', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '6', '8', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '6', '9', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '6', '10', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '6', '11', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '6', '12', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '6', '13', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '6', '14', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '6', '15', '10.00', '10.00', '2024-10-10 16:04:12', '2024-10-10 16:04:12');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '6', '16', '10.00', '10.00', '2024-10-10 16:04:12', '2024-10-10 16:04:12');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '6', '17', '10.00', '10.00', '2024-10-10 16:04:12', '2024-10-10 16:04:12');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '6', '18', '10.00', '10.00', '2024-10-10 16:04:12', '2024-10-10 16:04:12');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '6', '19', '10.00', '10.00', '2024-10-10 16:04:12', '2024-10-10 16:04:12');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '6', '20', '10.00', '10.00', '2024-10-10 16:04:12', '2024-10-10 16:04:12');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '7', '1', '7.00', '7.00', '2024-10-11 21:43:29', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '7', '2', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '7', '3', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '7', '4', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '7', '5', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '7', '6', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '7', '7', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '7', '8', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '7', '9', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '7', '10', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '7', '11', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '7', '12', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '7', '13', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '7', '14', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '7', '15', '10.00', '10.00', '2024-10-10 16:04:12', '2024-10-10 16:04:12');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '7', '16', '10.00', '10.00', '2024-10-10 16:04:12', '2024-10-10 16:04:12');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '7', '17', '10.00', '10.00', '2024-10-10 16:04:12', '2024-10-10 16:04:12');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '7', '18', '10.00', '10.00', '2024-10-10 16:04:12', '2024-10-10 16:04:12');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '7', '19', '10.00', '10.00', '2024-10-10 16:04:12', '2024-10-10 16:04:12');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '7', '20', '10.00', '10.00', '2024-10-10 16:04:12', '2024-10-10 16:04:12');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '8', '1', '8.00', '8.00', '2024-10-11 21:43:29', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '8', '2', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '8', '3', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '8', '4', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '8', '5', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '8', '6', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '8', '7', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '8', '8', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '8', '9', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '8', '10', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '8', '11', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '8', '12', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '8', '13', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '8', '14', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '8', '15', '10.00', '10.00', '2024-10-10 16:04:12', '2024-10-10 16:04:12');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '8', '16', '10.00', '10.00', '2024-10-10 16:04:12', '2024-10-10 16:04:12');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '8', '17', '10.00', '10.00', '2024-10-10 16:04:12', '2024-10-10 16:04:12');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '8', '18', '10.00', '10.00', '2024-10-10 16:04:12', '2024-10-10 16:04:12');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '8', '19', '10.00', '10.00', '2024-10-10 16:04:12', '2024-10-10 16:04:12');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '8', '20', '10.00', '10.00', '2024-10-10 16:04:12', '2024-10-10 16:04:12');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '9', '1', '9.00', '9.00', '2024-10-11 21:43:29', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '9', '2', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '9', '3', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '9', '4', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '9', '5', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '9', '6', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '9', '7', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '9', '8', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '9', '9', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '9', '10', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '9', '11', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '9', '12', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '9', '13', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '9', '14', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '9', '15', '10.00', '10.00', '2024-10-10 16:04:12', '2024-10-10 16:04:12');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '9', '16', '10.00', '10.00', '2024-10-10 16:04:12', '2024-10-10 16:04:12');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '9', '17', '10.00', '10.00', '2024-10-10 16:04:12', '2024-10-10 16:04:12');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '9', '18', '10.00', '10.00', '2024-10-10 16:04:12', '2024-10-10 16:04:12');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '9', '19', '10.00', '10.00', '2024-10-10 16:04:12', '2024-10-10 16:04:12');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '9', '20', '10.00', '10.00', '2024-10-10 16:04:12', '2024-10-10 16:04:12');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '100', '1', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '100', '2', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '100', '3', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '100', '4', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '100', '5', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '100', '6', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '100', '7', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '100', '8', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '100', '9', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '100', '10', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '100', '11', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '100', '12', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '100', '13', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '100', '14', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '100', '15', '10.00', '10.00', '2024-10-10 16:04:12', '2024-10-10 16:04:12');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '100', '16', '10.00', '10.00', '2024-10-10 16:04:12', '2024-10-10 16:04:12');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '100', '17', '10.00', '10.00', '2024-10-10 16:04:12', '2024-10-10 16:04:12');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '100', '18', '10.00', '10.00', '2024-10-10 16:04:12', '2024-10-10 16:04:12');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '100', '19', '10.00', '10.00', '2024-10-10 16:04:12', '2024-10-10 16:04:12');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '100', '20', '10.00', '10.00', '2024-10-10 16:04:12', '2024-10-10 16:04:12');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '101', '1', '11.00', '11.00', '2024-10-11 21:43:29', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '101', '2', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '101', '3', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '101', '4', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '101', '5', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '101', '6', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '101', '7', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '101', '8', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '101', '9', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '101', '10', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '101', '11', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '101', '12', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '101', '13', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '101', '14', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '101', '15', '10.00', '10.00', '2024-10-10 16:04:12', '2024-10-10 16:04:12');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '101', '16', '10.00', '10.00', '2024-10-10 16:04:12', '2024-10-10 16:04:12');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '101', '17', '10.00', '10.00', '2024-10-10 16:04:12', '2024-10-10 16:04:12');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '101', '18', '10.00', '10.00', '2024-10-10 16:04:12', '2024-10-10 16:04:12');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '101', '19', '10.00', '10.00', '2024-10-10 16:04:12', '2024-10-10 16:04:12');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '101', '20', '10.00', '10.00', '2024-10-10 16:04:12', '2024-10-10 16:04:12');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '102', '1', '12.00', '12.00', '2024-10-11 21:43:29', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '102', '2', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '102', '3', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '102', '4', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '102', '5', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '102', '6', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '102', '7', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '102', '8', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '102', '9', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '102', '10', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '102', '11', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '102', '12', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '102', '13', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '102', '14', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '102', '15', '10.00', '10.00', '2024-10-10 16:04:12', '2024-10-10 16:04:12');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '102', '16', '10.00', '10.00', '2024-10-10 16:04:12', '2024-10-10 16:04:12');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '102', '17', '10.00', '10.00', '2024-10-10 16:04:12', '2024-10-10 16:04:12');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '102', '18', '10.00', '10.00', '2024-10-10 16:04:12', '2024-10-10 16:04:12');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '102', '19', '10.00', '10.00', '2024-10-10 16:04:12', '2024-10-10 16:04:12');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '102', '20', '10.00', '10.00', '2024-10-10 16:04:12', '2024-10-10 16:04:12');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '103', '1', '13.00', '13.00', '2024-10-11 21:43:29', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '103', '2', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '103', '3', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '103', '4', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '103', '5', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '103', '6', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '103', '7', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '103', '8', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '103', '9', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '103', '10', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '103', '11', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '103', '12', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '103', '13', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '103', '14', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '103', '15', '10.00', '10.00', '2024-10-10 16:04:12', '2024-10-10 16:04:12');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '103', '16', '10.00', '10.00', '2024-10-10 16:04:12', '2024-10-10 16:04:12');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '103', '17', '10.00', '10.00', '2024-10-10 16:04:12', '2024-10-10 16:04:12');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '103', '18', '10.00', '10.00', '2024-10-10 16:04:12', '2024-10-10 16:04:12');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '103', '19', '10.00', '10.00', '2024-10-10 16:04:12', '2024-10-10 16:04:12');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '103', '20', '10.00', '10.00', '2024-10-10 16:04:12', '2024-10-10 16:04:12');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '104', '1', '14.00', '14.00', '2024-10-11 21:43:29', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '104', '2', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '104', '3', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '104', '4', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '104', '5', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '104', '6', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '104', '7', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '104', '8', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '104', '9', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '104', '10', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '104', '11', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '104', '12', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '104', '13', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '104', '14', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '104', '15', '10.00', '10.00', '2024-10-10 16:04:12', '2024-10-10 16:04:12');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '104', '16', '10.00', '10.00', '2024-10-10 16:04:12', '2024-10-10 16:04:12');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '104', '17', '10.00', '10.00', '2024-10-10 16:04:12', '2024-10-10 16:04:12');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '104', '18', '10.00', '10.00', '2024-10-10 16:04:12', '2024-10-10 16:04:12');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '104', '19', '10.00', '10.00', '2024-10-10 16:04:12', '2024-10-10 16:04:12');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '104', '20', '10.00', '10.00', '2024-10-10 16:04:12', '2024-10-10 16:04:12');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '105', '1', '15.00', '15.00', '2024-10-11 21:43:29', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '105', '2', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '105', '3', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '105', '4', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '105', '5', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '105', '6', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '105', '7', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '105', '8', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '105', '9', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '105', '10', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '105', '11', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '105', '12', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '105', '13', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '105', '14', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '105', '15', '10.00', '10.00', '2024-10-10 16:04:12', '2024-10-10 16:04:12');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '105', '16', '10.00', '10.00', '2024-10-10 16:04:12', '2024-10-10 16:04:12');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '105', '17', '10.00', '10.00', '2024-10-10 16:04:12', '2024-10-10 16:04:12');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '105', '18', '10.00', '10.00', '2024-10-10 16:04:12', '2024-10-10 16:04:12');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '105', '19', '10.00', '10.00', '2024-10-10 16:04:12', '2024-10-10 16:04:12');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '105', '20', '10.00', '10.00', '2024-10-10 16:04:12', '2024-10-10 16:04:12');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '106', '1', '16.00', '16.00', '2024-10-11 21:43:29', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '106', '2', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '106', '3', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '106', '4', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '106', '5', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '106', '6', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '106', '7', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '106', '8', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '106', '9', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '106', '10', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '106', '11', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '106', '12', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '106', '13', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '106', '14', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '106', '15', '10.00', '10.00', '2024-10-10 16:04:12', '2024-10-10 16:04:12');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '106', '16', '10.00', '10.00', '2024-10-10 16:04:12', '2024-10-10 16:04:12');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '106', '17', '10.00', '10.00', '2024-10-10 16:04:12', '2024-10-10 16:04:12');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '106', '18', '10.00', '10.00', '2024-10-10 16:04:12', '2024-10-10 16:04:12');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '106', '19', '10.00', '10.00', '2024-10-10 16:04:12', '2024-10-10 16:04:12');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '106', '20', '10.00', '10.00', '2024-10-10 16:04:12', '2024-10-10 16:04:12');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '107', '1', '17.00', '17.00', '2024-10-11 21:43:29', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '107', '2', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '107', '3', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '107', '4', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '107', '5', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '107', '6', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '107', '7', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '107', '8', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '107', '9', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '107', '10', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '107', '11', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '107', '12', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '107', '13', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '107', '14', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '107', '15', '10.00', '10.00', '2024-10-10 16:04:12', '2024-10-10 16:04:12');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '107', '16', '10.00', '10.00', '2024-10-10 16:04:12', '2024-10-10 16:04:12');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '107', '17', '10.00', '10.00', '2024-10-10 16:04:12', '2024-10-10 16:04:12');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '107', '18', '10.00', '10.00', '2024-10-10 16:04:12', '2024-10-10 16:04:12');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '107', '19', '10.00', '10.00', '2024-10-10 16:04:12', '2024-10-10 16:04:12');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '107', '20', '10.00', '10.00', '2024-10-10 16:04:12', '2024-10-10 16:04:12');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '201', '1', '18.00', '18.00', '2024-10-11 21:43:29', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '201', '2', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '201', '3', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '201', '4', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '201', '5', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '201', '6', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '201', '7', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '201', '8', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '201', '9', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '201', '10', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '201', '11', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '201', '12', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '201', '13', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '201', '14', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '201', '15', '10.00', '10.00', '2024-10-10 16:04:12', '2024-10-10 16:04:12');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '201', '16', '10.00', '10.00', '2024-10-10 16:04:12', '2024-10-10 16:04:12');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '201', '17', '10.00', '10.00', '2024-10-10 16:04:12', '2024-10-10 16:04:12');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '201', '18', '10.00', '10.00', '2024-10-10 16:04:12', '2024-10-10 16:04:12');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '201', '19', '10.00', '10.00', '2024-10-10 16:04:12', '2024-10-10 16:04:12');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '201', '20', '10.00', '10.00', '2024-10-10 16:04:12', '2024-10-10 16:04:12');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '202', '1', '19.00', '19.00', '2024-10-11 21:43:29', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '202', '2', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '202', '3', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '202', '4', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '202', '5', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '202', '6', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '202', '7', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '202', '8', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '202', '9', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '202', '10', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '202', '11', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '202', '12', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '202', '13', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '202', '14', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '202', '15', '10.00', '10.00', '2024-10-10 16:04:12', '2024-10-10 16:04:12');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '202', '16', '10.00', '10.00', '2024-10-10 16:04:12', '2024-10-10 16:04:12');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '202', '17', '10.00', '10.00', '2024-10-10 16:04:12', '2024-10-10 16:04:12');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '202', '18', '10.00', '10.00', '2024-10-10 16:04:12', '2024-10-10 16:04:12');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '202', '19', '10.00', '10.00', '2024-10-10 16:04:12', '2024-10-10 16:04:12');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '202', '20', '10.00', '10.00', '2024-10-10 16:04:12', '2024-10-10 16:04:12');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '203', '1', '20.00', '20.00', '2024-10-11 21:43:29', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '203', '2', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '203', '3', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '203', '4', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '203', '5', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '203', '6', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '203', '7', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '203', '8', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '203', '9', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '203', '10', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '203', '11', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '203', '12', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '203', '13', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '203', '14', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '203', '15', '10.00', '10.00', '2024-10-10 16:04:12', '2024-10-10 16:04:12');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '203', '16', '10.00', '10.00', '2024-10-10 16:04:12', '2024-10-10 16:04:12');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '203', '17', '10.00', '10.00', '2024-10-10 16:04:12', '2024-10-10 16:04:12');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '203', '18', '10.00', '10.00', '2024-10-10 16:04:12', '2024-10-10 16:04:12');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '203', '19', '10.00', '10.00', '2024-10-10 16:04:12', '2024-10-10 16:04:12');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '203', '20', '10.00', '10.00', '2024-10-10 16:04:12', '2024-10-10 16:04:12');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '204', '1', '21.00', '21.00', '2024-10-11 21:43:29', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '204', '2', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '204', '3', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '204', '4', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '204', '5', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '204', '6', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '204', '7', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '204', '8', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '204', '9', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '204', '10', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '204', '11', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '204', '12', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '204', '13', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '204', '14', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '204', '15', '10.00', '10.00', '2024-10-10 16:04:12', '2024-10-10 16:04:12');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '204', '16', '10.00', '10.00', '2024-10-10 16:04:12', '2024-10-10 16:04:12');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '204', '17', '10.00', '10.00', '2024-10-10 16:04:12', '2024-10-10 16:04:12');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '204', '18', '10.00', '10.00', '2024-10-10 16:04:12', '2024-10-10 16:04:12');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '204', '19', '10.00', '10.00', '2024-10-10 16:04:12', '2024-10-10 16:04:12');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '204', '20', '10.00', '10.00', '2024-10-10 16:04:12', '2024-10-10 16:04:12');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '205', '1', '22.00', '22.00', '2024-10-11 21:43:29', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '205', '2', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '205', '3', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '205', '4', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '205', '5', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '205', '6', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '205', '7', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '205', '8', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '205', '9', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '205', '10', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '205', '11', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '205', '12', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '205', '13', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '205', '14', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '205', '15', '10.00', '10.00', '2024-10-10 16:04:12', '2024-10-10 16:04:12');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '205', '16', '10.00', '10.00', '2024-10-10 16:04:12', '2024-10-10 16:04:12');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '205', '17', '10.00', '10.00', '2024-10-10 16:04:12', '2024-10-10 16:04:12');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '205', '18', '10.00', '10.00', '2024-10-10 16:04:12', '2024-10-10 16:04:12');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '205', '19', '10.00', '10.00', '2024-10-10 16:04:12', '2024-10-10 16:04:12');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '205', '20', '10.00', '10.00', '2024-10-10 16:04:12', '2024-10-10 16:04:12');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '206', '1', '23.00', '23.00', '2024-10-11 21:43:29', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '206', '2', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '206', '3', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '206', '4', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '206', '5', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '206', '6', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '206', '7', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '206', '8', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '206', '9', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '206', '10', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '206', '11', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '206', '12', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '206', '13', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '206', '14', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '206', '15', '10.00', '10.00', '2024-10-10 16:04:12', '2024-10-10 16:04:12');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '206', '16', '10.00', '10.00', '2024-10-10 16:04:12', '2024-10-10 16:04:12');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '206', '17', '10.00', '10.00', '2024-10-10 16:04:12', '2024-10-10 16:04:12');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '206', '18', '10.00', '10.00', '2024-10-10 16:04:12', '2024-10-10 16:04:12');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '206', '19', '10.00', '10.00', '2024-10-10 16:04:12', '2024-10-10 16:04:12');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '206', '20', '10.00', '10.00', '2024-10-10 16:04:12', '2024-10-10 16:04:12');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '207', '1', '24.00', '24.00', '2024-10-11 21:43:29', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '207', '2', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '207', '3', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '207', '4', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '207', '5', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '207', '6', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '207', '7', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '207', '8', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '207', '9', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '207', '10', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '207', '11', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '207', '12', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '207', '13', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '207', '14', '10.00', '10.00', '2024-10-10 16:04:11', '2024-10-10 16:04:11');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '207', '15', '10.00', '10.00', '2024-10-10 16:04:12', '2024-10-10 16:04:12');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '207', '16', '10.00', '10.00', '2024-10-10 16:04:12', '2024-10-10 16:04:12');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '207', '17', '10.00', '10.00', '2024-10-10 16:04:12', '2024-10-10 16:04:12');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '207', '18', '10.00', '10.00', '2024-10-10 16:04:12', '2024-10-10 16:04:12');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '207', '19', '10.00', '10.00', '2024-10-10 16:04:12', '2024-10-10 16:04:12');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '207', '20', '10.00', '10.00', '2024-10-10 16:04:12', '2024-10-10 16:04:12');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '208', '1', '24.00', '24.00', '2024-10-14 13:40:39', '2024-10-14 13:40:39');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '208', '2', '10.00', '10.00', '2024-10-14 13:40:39', '2024-10-14 13:40:39');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '208', '3', '10.00', '10.00', '2024-10-14 13:40:39', '2024-10-14 13:40:39');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '208', '4', '10.00', '10.00', '2024-10-14 13:40:39', '2024-10-14 13:40:39');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '208', '5', '10.00', '10.00', '2024-10-14 13:40:39', '2024-10-14 13:40:39');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '208', '6', '10.00', '10.00', '2024-10-14 13:40:39', '2024-10-14 13:40:39');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '208', '7', '10.00', '10.00', '2024-10-14 13:40:39', '2024-10-14 13:40:39');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '208', '8', '10.00', '10.00', '2024-10-14 13:40:39', '2024-10-14 13:40:39');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '208', '9', '10.00', '10.00', '2024-10-14 13:40:39', '2024-10-14 13:40:39');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '208', '10', '10.00', '10.00', '2024-10-14 13:40:39', '2024-10-14 13:40:39');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '208', '11', '10.00', '10.00', '2024-10-14 13:40:39', '2024-10-14 13:40:39');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '208', '12', '10.00', '10.00', '2024-10-14 13:40:39', '2024-10-14 13:40:39');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '208', '13', '10.00', '10.00', '2024-10-14 13:40:39', '2024-10-14 13:40:39');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '208', '14', '10.00', '10.00', '2024-10-14 13:40:39', '2024-10-14 13:40:39');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '208', '15', '10.00', '10.00', '2024-10-14 13:40:39', '2024-10-14 13:40:39');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '208', '16', '10.00', '10.00', '2024-10-14 13:40:39', '2024-10-14 13:40:39');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '208', '17', '10.00', '10.00', '2024-10-14 13:40:39', '2024-10-14 13:40:39');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '208', '18', '10.00', '10.00', '2024-10-14 13:40:39', '2024-10-14 13:40:39');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '208', '19', '10.00', '10.00', '2024-10-14 13:40:39', '2024-10-14 13:40:39');
		INSERT INTO `static_partner_level_rates` (`partner_idx`, `rate_type`, `level`, `value`, `recommend_value`, `update_date`, `create_date`) VALUES (v_idx, '208', '20', '10.00', '10.00', '2024-10-14 13:40:39', '2024-10-14 13:40:39');

        
		INSERT INTO `static_switch_config` (`head_office_idx`, `provider_id`, `product_type_id`, `is_use`, `create-dt`, `update_dt`) VALUES (v_idx, '3', '1', 'OFF', '2024-10-14 19:34:26', '2024-11-13 23:11:10');
		INSERT INTO `static_switch_config` (`head_office_idx`, `provider_id`, `product_type_id`, `is_use`, `create-dt`, `update_dt`) VALUES (v_idx, '3', '2', 'OFF', '2024-10-14 19:34:26', '2024-11-19 21:15:18');
		INSERT INTO `static_switch_config` (`head_office_idx`, `provider_id`, `product_type_id`, `is_use`, `create-dt`, `update_dt`) VALUES (v_idx, '4', '1', 'ON', '2024-10-14 19:34:26', '2024-11-13 23:11:10');
		INSERT INTO `static_switch_config` (`head_office_idx`, `provider_id`, `product_type_id`, `is_use`, `create-dt`, `update_dt`) VALUES (v_idx, '4', '2', 'ON', '2024-10-14 19:34:26', '2024-11-19 21:15:18');
	
		INSERT INTO `static_switch_manager` (`head_office_idx`, `product_group_id`, `provider_id`, `product_type_id`, `is_use`, `order_priority`, `front_order_priority`, `create_dt`, `update_dt`) VALUES (v_idx, '1', '3', '1', 'ON', '0', '0', '2023-10-11 18:58:26', '2024-11-13 23:09:59');
		INSERT INTO `static_switch_manager` (`head_office_idx`, `product_group_id`, `provider_id`, `product_type_id`, `is_use`, `order_priority`, `front_order_priority`, `create_dt`, `update_dt`) VALUES (v_idx, '1', '4', '1', 'ON', '0', '0', '2023-10-11 18:58:26', '2024-11-13 23:09:03');
		INSERT INTO `static_switch_manager` (`head_office_idx`, `product_group_id`, `provider_id`, `product_type_id`, `is_use`, `order_priority`, `front_order_priority`, `create_dt`, `update_dt`) VALUES (v_idx, '2', '3', '1', 'ON', '0', '0', '2023-10-11 18:58:26', '2024-11-13 23:10:00');
		INSERT INTO `static_switch_manager` (`head_office_idx`, `product_group_id`, `provider_id`, `product_type_id`, `is_use`, `order_priority`, `front_order_priority`, `create_dt`, `update_dt`) VALUES (v_idx, '2', '4', '1', 'ON', '0', '0', '2023-10-11 18:58:26', '2024-05-30 17:46:27');
		INSERT INTO `static_switch_manager` (`head_office_idx`, `product_group_id`, `provider_id`, `product_type_id`, `is_use`, `order_priority`, `front_order_priority`, `create_dt`, `update_dt`) VALUES (v_idx, '3', '3', '1', 'ON', '0', '0', '2023-10-11 18:58:26', '2024-11-13 23:10:05');
		INSERT INTO `static_switch_manager` (`head_office_idx`, `product_group_id`, `provider_id`, `product_type_id`, `is_use`, `order_priority`, `front_order_priority`, `create_dt`, `update_dt`) VALUES (v_idx, '3', '4', '1', 'ON', '0', '0', '2023-10-11 18:58:26', '2024-05-30 17:46:28');
		INSERT INTO `static_switch_manager` (`head_office_idx`, `product_group_id`, `provider_id`, `product_type_id`, `is_use`, `order_priority`, `front_order_priority`, `create_dt`, `update_dt`) VALUES (v_idx, '4', '3', '1', 'OFF', '0', '0', '2023-10-11 18:58:26', '2024-05-30 17:42:19');
		INSERT INTO `static_switch_manager` (`head_office_idx`, `product_group_id`, `provider_id`, `product_type_id`, `is_use`, `order_priority`, `front_order_priority`, `create_dt`, `update_dt`) VALUES (v_idx, '4', '4', '1', 'ON', '0', '0', '2023-10-11 18:58:26', '2024-05-30 17:46:29');
		INSERT INTO `static_switch_manager` (`head_office_idx`, `product_group_id`, `provider_id`, `product_type_id`, `is_use`, `order_priority`, `front_order_priority`, `create_dt`, `update_dt`) VALUES (v_idx, '5', '3', '1', 'ON', '0', '0', '2023-10-11 18:58:26', '2024-11-13 23:10:06');
		INSERT INTO `static_switch_manager` (`head_office_idx`, `product_group_id`, `provider_id`, `product_type_id`, `is_use`, `order_priority`, `front_order_priority`, `create_dt`, `update_dt`) VALUES (v_idx, '5', '4', '1', 'ON', '0', '0', '2023-10-11 18:58:26', '2024-05-30 17:46:30');
		INSERT INTO `static_switch_manager` (`head_office_idx`, `product_group_id`, `provider_id`, `product_type_id`, `is_use`, `order_priority`, `front_order_priority`, `create_dt`, `update_dt`) VALUES (v_idx, '6', '3', '1', 'OFF', '0', '0', '2023-10-11 18:58:26', '2024-05-30 17:42:23');
		INSERT INTO `static_switch_manager` (`head_office_idx`, `product_group_id`, `provider_id`, `product_type_id`, `is_use`, `order_priority`, `front_order_priority`, `create_dt`, `update_dt`) VALUES (v_idx, '6', '4', '1', 'ON', '0', '0', '2023-10-11 18:58:26', '2024-05-30 17:46:31');
		INSERT INTO `static_switch_manager` (`head_office_idx`, `product_group_id`, `provider_id`, `product_type_id`, `is_use`, `order_priority`, `front_order_priority`, `create_dt`, `update_dt`) VALUES (v_idx, '7', '3', '1', 'ON', '0', '0', '2023-10-11 18:58:26', '2024-11-13 23:10:07');
		INSERT INTO `static_switch_manager` (`head_office_idx`, `product_group_id`, `provider_id`, `product_type_id`, `is_use`, `order_priority`, `front_order_priority`, `create_dt`, `update_dt`) VALUES (v_idx, '7', '4', '1', 'ON', '0', '0', '2023-10-11 18:58:26', '2024-05-30 17:46:34');
		INSERT INTO `static_switch_manager` (`head_office_idx`, `product_group_id`, `provider_id`, `product_type_id`, `is_use`, `order_priority`, `front_order_priority`, `create_dt`, `update_dt`) VALUES (v_idx, '8', '3', '1', 'ON', '0', '0', '2023-10-11 18:58:26', '2024-11-13 23:10:09');
		INSERT INTO `static_switch_manager` (`head_office_idx`, `product_group_id`, `provider_id`, `product_type_id`, `is_use`, `order_priority`, `front_order_priority`, `create_dt`, `update_dt`) VALUES (v_idx, '8', '4', '1', 'ON', '0', '0', '2023-10-11 18:58:26', '2024-05-30 17:46:36');
		INSERT INTO `static_switch_manager` (`head_office_idx`, `product_group_id`, `provider_id`, `product_type_id`, `is_use`, `order_priority`, `front_order_priority`, `create_dt`, `update_dt`) VALUES (v_idx, '9', '3', '1', 'ON', '0', '0', '2023-10-11 18:58:26', '2024-11-13 23:10:11');
		INSERT INTO `static_switch_manager` (`head_office_idx`, `product_group_id`, `provider_id`, `product_type_id`, `is_use`, `order_priority`, `front_order_priority`, `create_dt`, `update_dt`) VALUES (v_idx, '9', '4', '1', 'ON', '0', '0', '2023-10-11 18:58:26', '2024-05-30 17:46:37');
		INSERT INTO `static_switch_manager` (`head_office_idx`, `product_group_id`, `provider_id`, `product_type_id`, `is_use`, `order_priority`, `front_order_priority`, `create_dt`, `update_dt`) VALUES (v_idx, '10', '3', '1', 'ON', '0', '0', '2023-10-11 18:58:26', '2024-11-13 23:10:12');
		INSERT INTO `static_switch_manager` (`head_office_idx`, `product_group_id`, `provider_id`, `product_type_id`, `is_use`, `order_priority`, `front_order_priority`, `create_dt`, `update_dt`) VALUES (v_idx, '10', '4', '1', 'ON', '0', '0', '2023-10-11 18:58:26', '2024-05-30 17:46:39');
		INSERT INTO `static_switch_manager` (`head_office_idx`, `product_group_id`, `provider_id`, `product_type_id`, `is_use`, `order_priority`, `front_order_priority`, `create_dt`, `update_dt`) VALUES (v_idx, '11', '3', '1', 'ON', '0', '0', '2023-10-11 18:58:26', '2024-11-13 23:10:13');
		INSERT INTO `static_switch_manager` (`head_office_idx`, `product_group_id`, `provider_id`, `product_type_id`, `is_use`, `order_priority`, `front_order_priority`, `create_dt`, `update_dt`) VALUES (v_idx, '11', '4', '1', 'ON', '0', '0', '2023-10-11 18:58:26', '2024-05-30 17:46:40');
		INSERT INTO `static_switch_manager` (`head_office_idx`, `product_group_id`, `provider_id`, `product_type_id`, `is_use`, `order_priority`, `front_order_priority`, `create_dt`, `update_dt`) VALUES (v_idx, '13', '3', '1', 'ON', '0', '0', '2023-10-11 18:58:27', '2024-11-13 23:10:16');
		INSERT INTO `static_switch_manager` (`head_office_idx`, `product_group_id`, `provider_id`, `product_type_id`, `is_use`, `order_priority`, `front_order_priority`, `create_dt`, `update_dt`) VALUES (v_idx, '13', '4', '1', 'ON', '0', '0', '2023-10-11 18:58:27', '2024-05-30 17:46:43');
		INSERT INTO `static_switch_manager` (`head_office_idx`, `product_group_id`, `provider_id`, `product_type_id`, `is_use`, `order_priority`, `front_order_priority`, `create_dt`, `update_dt`) VALUES (v_idx, '14', '3', '1', 'ON', '0', '0', '2023-10-11 18:58:27', '2024-11-13 23:10:17');
		INSERT INTO `static_switch_manager` (`head_office_idx`, `product_group_id`, `provider_id`, `product_type_id`, `is_use`, `order_priority`, `front_order_priority`, `create_dt`, `update_dt`) VALUES (v_idx, '14', '4', '1', 'ON', '0', '0', '2023-10-11 18:58:27', '2024-05-30 17:46:43');
		INSERT INTO `static_switch_manager` (`head_office_idx`, `product_group_id`, `provider_id`, `product_type_id`, `is_use`, `order_priority`, `front_order_priority`, `create_dt`, `update_dt`) VALUES (v_idx, '100', '3', '2', 'ON', '0', '0', '2023-10-11 18:58:27', '2024-11-13 23:41:47');
		INSERT INTO `static_switch_manager` (`head_office_idx`, `product_group_id`, `provider_id`, `product_type_id`, `is_use`, `order_priority`, `front_order_priority`, `create_dt`, `update_dt`) VALUES (v_idx, '100', '4', '2', 'ON', '0', '0', '2023-10-11 18:58:27', '2024-11-12 12:23:04');
		INSERT INTO `static_switch_manager` (`head_office_idx`, `product_group_id`, `provider_id`, `product_type_id`, `is_use`, `order_priority`, `front_order_priority`, `create_dt`, `update_dt`) VALUES (v_idx, '101', '3', '2', 'ON', '0', '0', '2023-10-11 18:58:27', '2024-11-13 23:41:51');
		INSERT INTO `static_switch_manager` (`head_office_idx`, `product_group_id`, `provider_id`, `product_type_id`, `is_use`, `order_priority`, `front_order_priority`, `create_dt`, `update_dt`) VALUES (v_idx, '101', '4', '2', 'ON', '0', '0', '2023-10-11 18:58:27', '2024-10-22 18:35:13');
		INSERT INTO `static_switch_manager` (`head_office_idx`, `product_group_id`, `provider_id`, `product_type_id`, `is_use`, `order_priority`, `front_order_priority`, `create_dt`, `update_dt`) VALUES (v_idx, '102', '3', '2', 'ON', '0', '0', '2023-10-11 18:58:27', '2024-11-13 23:41:53');
		INSERT INTO `static_switch_manager` (`head_office_idx`, `product_group_id`, `provider_id`, `product_type_id`, `is_use`, `order_priority`, `front_order_priority`, `create_dt`, `update_dt`) VALUES (v_idx, '102', '4', '2', 'ON', '0', '0', '2023-10-11 18:58:27', '2024-10-22 18:35:13');
		INSERT INTO `static_switch_manager` (`head_office_idx`, `product_group_id`, `provider_id`, `product_type_id`, `is_use`, `order_priority`, `front_order_priority`, `create_dt`, `update_dt`) VALUES (v_idx, '103', '3', '2', 'ON', '0', '0', '2023-10-11 18:58:27', '2024-11-13 23:41:54');
		INSERT INTO `static_switch_manager` (`head_office_idx`, `product_group_id`, `provider_id`, `product_type_id`, `is_use`, `order_priority`, `front_order_priority`, `create_dt`, `update_dt`) VALUES (v_idx, '103', '4', '2', 'ON', '0', '0', '2023-10-11 18:58:27', '2024-10-22 18:35:13');
		INSERT INTO `static_switch_manager` (`head_office_idx`, `product_group_id`, `provider_id`, `product_type_id`, `is_use`, `order_priority`, `front_order_priority`, `create_dt`, `update_dt`) VALUES (v_idx, '104', '3', '2', 'ON', '0', '0', '2023-10-11 18:58:27', '2024-11-13 23:41:55');
		INSERT INTO `static_switch_manager` (`head_office_idx`, `product_group_id`, `provider_id`, `product_type_id`, `is_use`, `order_priority`, `front_order_priority`, `create_dt`, `update_dt`) VALUES (v_idx, '104', '4', '2', 'ON', '0', '0', '2023-10-11 18:58:27', '2024-10-22 18:35:13');
		INSERT INTO `static_switch_manager` (`head_office_idx`, `product_group_id`, `provider_id`, `product_type_id`, `is_use`, `order_priority`, `front_order_priority`, `create_dt`, `update_dt`) VALUES (v_idx, '105', '3', '2', 'OFF', '0', '0', '2023-10-11 18:58:27', '2024-10-22 18:35:13');
		INSERT INTO `static_switch_manager` (`head_office_idx`, `product_group_id`, `provider_id`, `product_type_id`, `is_use`, `order_priority`, `front_order_priority`, `create_dt`, `update_dt`) VALUES (v_idx, '105', '4', '2', 'ON', '0', '0', '2023-10-11 18:58:27', '2024-10-22 18:35:13');
		INSERT INTO `static_switch_manager` (`head_office_idx`, `product_group_id`, `provider_id`, `product_type_id`, `is_use`, `order_priority`, `front_order_priority`, `create_dt`, `update_dt`) VALUES (v_idx, '106', '3', '2', 'OFF', '0', '0', '2023-10-11 18:58:27', '2024-10-22 18:35:13');
		INSERT INTO `static_switch_manager` (`head_office_idx`, `product_group_id`, `provider_id`, `product_type_id`, `is_use`, `order_priority`, `front_order_priority`, `create_dt`, `update_dt`) VALUES (v_idx, '106', '4', '2', 'ON', '0', '0', '2023-10-11 18:58:27', '2024-10-22 18:35:13');
		INSERT INTO `static_switch_manager` (`head_office_idx`, `product_group_id`, `provider_id`, `product_type_id`, `is_use`, `order_priority`, `front_order_priority`, `create_dt`, `update_dt`) VALUES (v_idx, '107', '3', '2', 'OFF', '0', '0', '2023-10-11 18:58:27', '2024-10-22 18:35:13');
		INSERT INTO `static_switch_manager` (`head_office_idx`, `product_group_id`, `provider_id`, `product_type_id`, `is_use`, `order_priority`, `front_order_priority`, `create_dt`, `update_dt`) VALUES (v_idx, '107', '4', '2', 'ON', '0', '0', '2023-10-11 18:58:27', '2024-10-22 18:35:13');
		INSERT INTO `static_switch_manager` (`head_office_idx`, `product_group_id`, `provider_id`, `product_type_id`, `is_use`, `order_priority`, `front_order_priority`, `create_dt`, `update_dt`) VALUES (v_idx, '108', '3', '2', 'OFF', '0', '0', '2023-10-11 18:58:27', '2024-10-22 18:35:13');
		INSERT INTO `static_switch_manager` (`head_office_idx`, `product_group_id`, `provider_id`, `product_type_id`, `is_use`, `order_priority`, `front_order_priority`, `create_dt`, `update_dt`) VALUES (v_idx, '108', '4', '2', 'ON', '0', '0', '2023-10-11 18:58:27', '2024-10-22 18:35:13');
		INSERT INTO `static_switch_manager` (`head_office_idx`, `product_group_id`, `provider_id`, `product_type_id`, `is_use`, `order_priority`, `front_order_priority`, `create_dt`, `update_dt`) VALUES (v_idx, '109', '3', '2', 'OFF', '0', '0', '2023-10-11 18:58:27', '2024-10-22 18:35:13');
		INSERT INTO `static_switch_manager` (`head_office_idx`, `product_group_id`, `provider_id`, `product_type_id`, `is_use`, `order_priority`, `front_order_priority`, `create_dt`, `update_dt`) VALUES (v_idx, '109', '4', '2', 'ON', '0', '0', '2023-10-11 18:58:27', '2024-10-22 18:35:13');
		INSERT INTO `static_switch_manager` (`head_office_idx`, `product_group_id`, `provider_id`, `product_type_id`, `is_use`, `order_priority`, `front_order_priority`, `create_dt`, `update_dt`) VALUES (v_idx, '111', '3', '2', 'OFF', '0', '0', '2023-10-11 18:58:27', '2024-10-22 18:35:13');
		INSERT INTO `static_switch_manager` (`head_office_idx`, `product_group_id`, `provider_id`, `product_type_id`, `is_use`, `order_priority`, `front_order_priority`, `create_dt`, `update_dt`) VALUES (v_idx, '111', '4', '2', 'ON', '0', '0', '2023-10-11 18:58:27', '2024-10-22 18:35:13');
		INSERT INTO `static_switch_manager` (`head_office_idx`, `product_group_id`, `provider_id`, `product_type_id`, `is_use`, `order_priority`, `front_order_priority`, `create_dt`, `update_dt`) VALUES (v_idx, '112', '3', '2', 'OFF', '0', '0', '2023-10-11 18:58:27', '2024-10-22 18:35:13');
		INSERT INTO `static_switch_manager` (`head_office_idx`, `product_group_id`, `provider_id`, `product_type_id`, `is_use`, `order_priority`, `front_order_priority`, `create_dt`, `update_dt`) VALUES (v_idx, '112', '4', '2', 'ON', '0', '0', '2023-10-11 18:58:27', '2024-10-22 18:35:13');
		INSERT INTO `static_switch_manager` (`head_office_idx`, `product_group_id`, `provider_id`, `product_type_id`, `is_use`, `order_priority`, `front_order_priority`, `create_dt`, `update_dt`) VALUES (v_idx, '113', '3', '2', 'OFF', '0', '0', '2023-10-11 18:58:27', '2024-10-22 18:35:13');
		INSERT INTO `static_switch_manager` (`head_office_idx`, `product_group_id`, `provider_id`, `product_type_id`, `is_use`, `order_priority`, `front_order_priority`, `create_dt`, `update_dt`) VALUES (v_idx, '113', '4', '2', 'ON', '0', '0', '2023-10-11 18:58:27', '2024-10-22 18:35:13');
		INSERT INTO `static_switch_manager` (`head_office_idx`, `product_group_id`, `provider_id`, `product_type_id`, `is_use`, `order_priority`, `front_order_priority`, `create_dt`, `update_dt`) VALUES (v_idx, '114', '3', '2', 'OFF', '0', '0', '2023-10-11 18:58:27', '2024-10-22 18:35:13');
		INSERT INTO `static_switch_manager` (`head_office_idx`, `product_group_id`, `provider_id`, `product_type_id`, `is_use`, `order_priority`, `front_order_priority`, `create_dt`, `update_dt`) VALUES (v_idx, '114', '4', '2', 'ON', '0', '0', '2023-10-11 18:58:27', '2024-10-22 18:35:13');
		INSERT INTO `static_switch_manager` (`head_office_idx`, `product_group_id`, `provider_id`, `product_type_id`, `is_use`, `order_priority`, `front_order_priority`, `create_dt`, `update_dt`) VALUES (v_idx, '115', '3', '2', 'OFF', '0', '0', '2023-10-11 18:58:27', '2024-10-22 18:35:13');
		INSERT INTO `static_switch_manager` (`head_office_idx`, `product_group_id`, `provider_id`, `product_type_id`, `is_use`, `order_priority`, `front_order_priority`, `create_dt`, `update_dt`) VALUES (v_idx, '115', '4', '2', 'ON', '0', '0', '2023-10-11 18:58:27', '2024-10-22 18:35:13');
		INSERT INTO `static_switch_manager` (`head_office_idx`, `product_group_id`, `provider_id`, `product_type_id`, `is_use`, `order_priority`, `front_order_priority`, `create_dt`, `update_dt`) VALUES (v_idx, '116', '3', '2', 'OFF', '0', '0', '2023-10-11 18:58:27', '2024-10-22 18:35:13');
		INSERT INTO `static_switch_manager` (`head_office_idx`, `product_group_id`, `provider_id`, `product_type_id`, `is_use`, `order_priority`, `front_order_priority`, `create_dt`, `update_dt`) VALUES (v_idx, '116', '4', '2', 'ON', '0', '0', '2023-10-11 18:58:27', '2024-10-22 18:35:13');
		INSERT INTO `static_switch_manager` (`head_office_idx`, `product_group_id`, `provider_id`, `product_type_id`, `is_use`, `order_priority`, `front_order_priority`, `create_dt`, `update_dt`) VALUES (v_idx, '117', '3', '2', 'OFF', '0', '0', '2023-10-11 18:58:27', '2024-10-22 18:35:13');
		INSERT INTO `static_switch_manager` (`head_office_idx`, `product_group_id`, `provider_id`, `product_type_id`, `is_use`, `order_priority`, `front_order_priority`, `create_dt`, `update_dt`) VALUES (v_idx, '117', '4', '2', 'ON', '0', '0', '2023-10-11 18:58:27', '2024-10-22 18:35:13');
		INSERT INTO `static_switch_manager` (`head_office_idx`, `product_group_id`, `provider_id`, `product_type_id`, `is_use`, `order_priority`, `front_order_priority`, `create_dt`, `update_dt`) VALUES (v_idx, '118', '3', '2', 'OFF', '0', '0', '2023-10-11 18:58:27', '2024-10-22 18:35:13');
		INSERT INTO `static_switch_manager` (`head_office_idx`, `product_group_id`, `provider_id`, `product_type_id`, `is_use`, `order_priority`, `front_order_priority`, `create_dt`, `update_dt`) VALUES (v_idx, '118', '4', '2', 'ON', '0', '0', '2023-10-11 18:58:27', '2024-10-22 18:35:13');
		INSERT INTO `static_switch_manager` (`head_office_idx`, `product_group_id`, `provider_id`, `product_type_id`, `is_use`, `order_priority`, `front_order_priority`, `create_dt`, `update_dt`) VALUES (v_idx, '119', '3', '2', 'OFF', '0', '0', '2023-10-11 18:58:28', '2024-10-22 18:35:13');
		INSERT INTO `static_switch_manager` (`head_office_idx`, `product_group_id`, `provider_id`, `product_type_id`, `is_use`, `order_priority`, `front_order_priority`, `create_dt`, `update_dt`) VALUES (v_idx, '119', '4', '2', 'ON', '0', '0', '2023-10-11 18:58:28', '2024-10-22 18:35:13');
		INSERT INTO `static_switch_manager` (`head_office_idx`, `product_group_id`, `provider_id`, `product_type_id`, `is_use`, `order_priority`, `front_order_priority`, `create_dt`, `update_dt`) VALUES (v_idx, '120', '3', '2', 'OFF', '0', '0', '2023-10-11 18:58:28', '2024-10-22 18:35:13');
		INSERT INTO `static_switch_manager` (`head_office_idx`, `product_group_id`, `provider_id`, `product_type_id`, `is_use`, `order_priority`, `front_order_priority`, `create_dt`, `update_dt`) VALUES (v_idx, '120', '4', '2', 'ON', '0', '0', '2023-10-11 18:58:28', '2024-10-22 18:35:13');
		INSERT INTO `static_switch_manager` (`head_office_idx`, `product_group_id`, `provider_id`, `product_type_id`, `is_use`, `order_priority`, `front_order_priority`, `create_dt`, `update_dt`) VALUES (v_idx, '121', '3', '2', 'OFF', '0', '0', '2023-10-11 18:58:28', '2024-10-22 18:35:13');
		INSERT INTO `static_switch_manager` (`head_office_idx`, `product_group_id`, `provider_id`, `product_type_id`, `is_use`, `order_priority`, `front_order_priority`, `create_dt`, `update_dt`) VALUES (v_idx, '121', '4', '2', 'ON', '0', '0', '2023-10-11 18:58:28', '2024-10-22 18:35:13');
		INSERT INTO `static_switch_manager` (`head_office_idx`, `product_group_id`, `provider_id`, `product_type_id`, `is_use`, `order_priority`, `front_order_priority`, `create_dt`, `update_dt`) VALUES (v_idx, '122', '3', '2', 'OFF', '0', '0', '2023-10-11 18:58:28', '2024-10-22 18:35:13');
		INSERT INTO `static_switch_manager` (`head_office_idx`, `product_group_id`, `provider_id`, `product_type_id`, `is_use`, `order_priority`, `front_order_priority`, `create_dt`, `update_dt`) VALUES (v_idx, '122', '4', '2', 'ON', '0', '0', '2023-10-11 18:58:28', '2024-10-22 18:35:13');
		INSERT INTO `static_switch_manager` (`head_office_idx`, `product_group_id`, `provider_id`, `product_type_id`, `is_use`, `order_priority`, `front_order_priority`, `create_dt`, `update_dt`) VALUES (v_idx, '123', '3', '2', 'OFF', '0', '0', '2023-10-11 18:58:28', '2024-10-22 18:35:13');
		INSERT INTO `static_switch_manager` (`head_office_idx`, `product_group_id`, `provider_id`, `product_type_id`, `is_use`, `order_priority`, `front_order_priority`, `create_dt`, `update_dt`) VALUES (v_idx, '123', '4', '2', 'ON', '0', '0', '2023-10-11 18:58:28', '2024-10-22 18:35:13');
		INSERT INTO `static_switch_manager` (`head_office_idx`, `product_group_id`, `provider_id`, `product_type_id`, `is_use`, `order_priority`, `front_order_priority`, `create_dt`, `update_dt`) VALUES (v_idx, '124', '3', '2', 'OFF', '0', '0', '2023-10-11 18:58:28', '2024-10-22 18:35:13');
		INSERT INTO `static_switch_manager` (`head_office_idx`, `product_group_id`, `provider_id`, `product_type_id`, `is_use`, `order_priority`, `front_order_priority`, `create_dt`, `update_dt`) VALUES (v_idx, '124', '4', '2', 'ON', '0', '0', '2023-10-11 18:58:28', '2024-10-22 18:35:13');
		INSERT INTO `static_switch_manager` (`head_office_idx`, `product_group_id`, `provider_id`, `product_type_id`, `is_use`, `order_priority`, `front_order_priority`, `create_dt`, `update_dt`) VALUES (v_idx, '125', '3', '2', 'OFF', '0', '0', '2023-10-11 18:58:28', '2024-10-22 18:35:13');
		INSERT INTO `static_switch_manager` (`head_office_idx`, `product_group_id`, `provider_id`, `product_type_id`, `is_use`, `order_priority`, `front_order_priority`, `create_dt`, `update_dt`) VALUES (v_idx, '125', '4', '2', 'ON', '0', '0', '2023-10-11 18:58:28', '2024-10-22 18:35:13');
		INSERT INTO `static_switch_manager` (`head_office_idx`, `product_group_id`, `provider_id`, `product_type_id`, `is_use`, `order_priority`, `front_order_priority`, `create_dt`, `update_dt`) VALUES (v_idx, '126', '3', '2', 'OFF', '0', '0', '2023-10-11 18:58:28', '2024-10-22 18:35:13');
		INSERT INTO `static_switch_manager` (`head_office_idx`, `product_group_id`, `provider_id`, `product_type_id`, `is_use`, `order_priority`, `front_order_priority`, `create_dt`, `update_dt`) VALUES (v_idx, '126', '4', '2', 'ON', '0', '0', '2023-10-11 18:58:28', '2024-10-22 18:35:13');
		INSERT INTO `static_switch_manager` (`head_office_idx`, `product_group_id`, `provider_id`, `product_type_id`, `is_use`, `order_priority`, `front_order_priority`, `create_dt`, `update_dt`) VALUES (v_idx, '127', '3', '2', 'OFF', '0', '0', '2023-10-11 18:58:28', '2024-10-22 18:35:13');
		INSERT INTO `static_switch_manager` (`head_office_idx`, `product_group_id`, `provider_id`, `product_type_id`, `is_use`, `order_priority`, `front_order_priority`, `create_dt`, `update_dt`) VALUES (v_idx, '127', '4', '2', 'ON', '0', '0', '2023-10-11 18:58:28', '2024-10-22 18:35:13');
		INSERT INTO `static_switch_manager` (`head_office_idx`, `product_group_id`, `provider_id`, `product_type_id`, `is_use`, `order_priority`, `front_order_priority`, `create_dt`, `update_dt`) VALUES (v_idx, '128', '3', '2', 'OFF', '0', '0', '2023-10-11 18:58:28', '2024-10-22 18:35:13');
		INSERT INTO `static_switch_manager` (`head_office_idx`, `product_group_id`, `provider_id`, `product_type_id`, `is_use`, `order_priority`, `front_order_priority`, `create_dt`, `update_dt`) VALUES (v_idx, '128', '4', '2', 'ON', '0', '0', '2023-10-11 18:58:28', '2024-10-22 18:35:13');
		INSERT INTO `static_switch_manager` (`head_office_idx`, `product_group_id`, `provider_id`, `product_type_id`, `is_use`, `order_priority`, `front_order_priority`, `create_dt`, `update_dt`) VALUES (v_idx, '129', '3', '2', 'OFF', '0', '0', '2023-10-27 20:30:07', '2024-10-22 18:35:13');
		INSERT INTO `static_switch_manager` (`head_office_idx`, `product_group_id`, `provider_id`, `product_type_id`, `is_use`, `order_priority`, `front_order_priority`, `create_dt`, `update_dt`) VALUES (v_idx, '129', '4', '2', 'ON', '0', '0', '2023-10-27 20:30:07', '2024-10-22 18:35:13');
		INSERT INTO `static_switch_manager` (`head_office_idx`, `product_group_id`, `provider_id`, `product_type_id`, `is_use`, `order_priority`, `front_order_priority`, `create_dt`, `update_dt`) VALUES (v_idx, '130', '3', '2', 'OFF', '0', '0', '2023-10-27 20:30:07', '2024-10-22 18:35:13');
		INSERT INTO `static_switch_manager` (`head_office_idx`, `product_group_id`, `provider_id`, `product_type_id`, `is_use`, `order_priority`, `front_order_priority`, `create_dt`, `update_dt`) VALUES (v_idx, '130', '4', '2', 'ON', '0', '0', '2023-10-27 20:30:07', '2024-10-22 18:35:13');
		INSERT INTO `static_switch_manager` (`head_office_idx`, `product_group_id`, `provider_id`, `product_type_id`, `is_use`, `order_priority`, `front_order_priority`, `create_dt`, `update_dt`) VALUES (v_idx, '131', '3', '2', 'OFF', '0', '0', '2023-10-27 20:30:07', '2024-10-22 18:35:13');
		INSERT INTO `static_switch_manager` (`head_office_idx`, `product_group_id`, `provider_id`, `product_type_id`, `is_use`, `order_priority`, `front_order_priority`, `create_dt`, `update_dt`) VALUES (v_idx, '131', '4', '2', 'ON', '0', '0', '2023-10-27 20:30:07', '2024-10-22 18:35:13');
		INSERT INTO `static_switch_manager` (`head_office_idx`, `product_group_id`, `provider_id`, `product_type_id`, `is_use`, `order_priority`, `front_order_priority`, `create_dt`, `update_dt`) VALUES (v_idx, '132', '3', '2', 'OFF', '0', '0', '2023-10-27 20:30:07', '2024-10-22 18:35:13');
		INSERT INTO `static_switch_manager` (`head_office_idx`, `product_group_id`, `provider_id`, `product_type_id`, `is_use`, `order_priority`, `front_order_priority`, `create_dt`, `update_dt`) VALUES (v_idx, '132', '4', '2', 'ON', '0', '0', '2023-10-27 20:30:07', '2024-10-22 18:35:13');
		INSERT INTO `static_switch_manager` (`head_office_idx`, `product_group_id`, `provider_id`, `product_type_id`, `is_use`, `order_priority`, `front_order_priority`, `create_dt`, `update_dt`) VALUES (v_idx, '133', '3', '2', 'OFF', '0', '0', '2023-10-27 20:30:07', '2024-10-22 18:35:13');
		INSERT INTO `static_switch_manager` (`head_office_idx`, `product_group_id`, `provider_id`, `product_type_id`, `is_use`, `order_priority`, `front_order_priority`, `create_dt`, `update_dt`) VALUES (v_idx, '133', '4', '2', 'ON', '0', '0', '2023-10-27 20:30:07', '2024-10-22 18:35:13');
		INSERT INTO `static_switch_manager` (`head_office_idx`, `product_group_id`, `provider_id`, `product_type_id`, `is_use`, `order_priority`, `front_order_priority`, `create_dt`, `update_dt`) VALUES (v_idx, '134', '3', '2', 'OFF', '0', '0', '2023-10-27 20:30:07', '2024-10-22 18:35:13');
		INSERT INTO `static_switch_manager` (`head_office_idx`, `product_group_id`, `provider_id`, `product_type_id`, `is_use`, `order_priority`, `front_order_priority`, `create_dt`, `update_dt`) VALUES (v_idx, '134', '4', '2', 'ON', '0', '0', '2023-10-27 20:30:07', '2024-10-22 18:35:13');
		INSERT INTO `static_switch_manager` (`head_office_idx`, `product_group_id`, `provider_id`, `product_type_id`, `is_use`, `order_priority`, `front_order_priority`, `create_dt`, `update_dt`) VALUES (v_idx, '135', '3', '2', 'OFF', '0', '0', '2023-10-27 20:30:07', '2024-10-22 18:35:13');
		INSERT INTO `static_switch_manager` (`head_office_idx`, `product_group_id`, `provider_id`, `product_type_id`, `is_use`, `order_priority`, `front_order_priority`, `create_dt`, `update_dt`) VALUES (v_idx, '135', '4', '2', 'ON', '0', '0', '2023-10-27 20:30:07', '2024-10-22 18:35:13');
		INSERT INTO `static_switch_manager` (`head_office_idx`, `product_group_id`, `provider_id`, `product_type_id`, `is_use`, `order_priority`, `front_order_priority`, `create_dt`, `update_dt`) VALUES (v_idx, '136', '3', '2', 'OFF', '0', '0', '2023-10-27 20:30:07', '2024-10-22 18:35:13');
		INSERT INTO `static_switch_manager` (`head_office_idx`, `product_group_id`, `provider_id`, `product_type_id`, `is_use`, `order_priority`, `front_order_priority`, `create_dt`, `update_dt`) VALUES (v_idx, '136', '4', '2', 'ON', '0', '0', '2023-10-27 20:30:07', '2024-10-22 18:35:13');
		INSERT INTO `static_switch_manager` (`head_office_idx`, `product_group_id`, `provider_id`, `product_type_id`, `is_use`, `order_priority`, `front_order_priority`, `create_dt`, `update_dt`) VALUES (v_idx, '137', '3', '2', 'OFF', '0', '0', '2023-10-27 20:30:08', '2024-10-22 18:35:13');
		INSERT INTO `static_switch_manager` (`head_office_idx`, `product_group_id`, `provider_id`, `product_type_id`, `is_use`, `order_priority`, `front_order_priority`, `create_dt`, `update_dt`) VALUES (v_idx, '137', '4', '2', 'ON', '0', '0', '2023-10-27 20:30:08', '2024-10-22 18:35:13');
		INSERT INTO `static_switch_manager` (`head_office_idx`, `product_group_id`, `provider_id`, `product_type_id`, `is_use`, `order_priority`, `front_order_priority`, `create_dt`, `update_dt`) VALUES (v_idx, '138', '3', '2', 'OFF', '0', '0', '2023-10-27 20:30:08', '2024-10-22 18:35:13');
		INSERT INTO `static_switch_manager` (`head_office_idx`, `product_group_id`, `provider_id`, `product_type_id`, `is_use`, `order_priority`, `front_order_priority`, `create_dt`, `update_dt`) VALUES (v_idx, '138', '4', '2', 'ON', '0', '0', '2023-10-27 20:30:08', '2024-10-22 18:35:13');
		INSERT INTO `static_switch_manager` (`head_office_idx`, `product_group_id`, `provider_id`, `product_type_id`, `is_use`, `order_priority`, `front_order_priority`, `create_dt`, `update_dt`) VALUES (v_idx, '139', '3', '2', 'OFF', '0', '0', '2023-10-27 20:30:08', '2024-10-22 18:35:13');
		INSERT INTO `static_switch_manager` (`head_office_idx`, `product_group_id`, `provider_id`, `product_type_id`, `is_use`, `order_priority`, `front_order_priority`, `create_dt`, `update_dt`) VALUES (v_idx, '139', '4', '2', 'ON', '0', '0', '2023-10-27 20:30:08', '2024-10-22 18:35:13');
		INSERT INTO `static_switch_manager` (`head_office_idx`, `product_group_id`, `provider_id`, `product_type_id`, `is_use`, `order_priority`, `front_order_priority`, `create_dt`, `update_dt`) VALUES (v_idx, '140', '3', '2', 'OFF', '0', '0', '2023-10-27 20:30:08', '2024-10-22 18:35:13');
		INSERT INTO `static_switch_manager` (`head_office_idx`, `product_group_id`, `provider_id`, `product_type_id`, `is_use`, `order_priority`, `front_order_priority`, `create_dt`, `update_dt`) VALUES (v_idx, '140', '4', '2', 'ON', '0', '0', '2023-10-27 20:30:08', '2024-10-22 18:35:13');
		INSERT INTO `static_switch_manager` (`head_office_idx`, `product_group_id`, `provider_id`, `product_type_id`, `is_use`, `order_priority`, `front_order_priority`, `create_dt`, `update_dt`) VALUES (v_idx, '141', '3', '2', 'OFF', '0', '0', '2023-10-27 20:30:08', '2024-10-22 18:35:13');
		INSERT INTO `static_switch_manager` (`head_office_idx`, `product_group_id`, `provider_id`, `product_type_id`, `is_use`, `order_priority`, `front_order_priority`, `create_dt`, `update_dt`) VALUES (v_idx, '141', '4', '2', 'ON', '0', '0', '2023-10-27 20:30:08', '2024-10-22 18:35:13');
		INSERT INTO `static_switch_manager` (`head_office_idx`, `product_group_id`, `provider_id`, `product_type_id`, `is_use`, `order_priority`, `front_order_priority`, `create_dt`, `update_dt`) VALUES (v_idx, '142', '3', '2', 'OFF', '0', '0', '2023-10-27 20:30:08', '2024-10-22 18:35:13');
		INSERT INTO `static_switch_manager` (`head_office_idx`, `product_group_id`, `provider_id`, `product_type_id`, `is_use`, `order_priority`, `front_order_priority`, `create_dt`, `update_dt`) VALUES (v_idx, '142', '4', '2', 'ON', '0', '0', '2023-10-27 20:30:08', '2024-10-22 18:35:13');
		INSERT INTO `static_switch_manager` (`head_office_idx`, `product_group_id`, `provider_id`, `product_type_id`, `is_use`, `order_priority`, `front_order_priority`, `create_dt`, `update_dt`) VALUES (v_idx, '143', '3', '2', 'OFF', '0', '0', '2023-10-27 20:30:08', '2024-10-22 18:35:13');
		INSERT INTO `static_switch_manager` (`head_office_idx`, `product_group_id`, `provider_id`, `product_type_id`, `is_use`, `order_priority`, `front_order_priority`, `create_dt`, `update_dt`) VALUES (v_idx, '143', '4', '2', 'ON', '0', '0', '2023-10-27 20:30:08', '2024-10-22 18:35:13');
		INSERT INTO `static_switch_manager` (`head_office_idx`, `product_group_id`, `provider_id`, `product_type_id`, `is_use`, `order_priority`, `front_order_priority`, `create_dt`, `update_dt`) VALUES (v_idx, '144', '3', '2', 'OFF', '0', '0', '2023-10-27 20:30:09', '2024-10-22 18:35:13');
		INSERT INTO `static_switch_manager` (`head_office_idx`, `product_group_id`, `provider_id`, `product_type_id`, `is_use`, `order_priority`, `front_order_priority`, `create_dt`, `update_dt`) VALUES (v_idx, '144', '4', '2', 'ON', '0', '0', '2023-10-27 20:30:09', '2024-10-22 18:35:13');
		INSERT INTO `static_switch_manager` (`head_office_idx`, `product_group_id`, `provider_id`, `product_type_id`, `is_use`, `order_priority`, `front_order_priority`, `create_dt`, `update_dt`) VALUES (v_idx, '145', '3', '2', 'OFF', '0', '0', '2023-10-27 20:30:09', '2024-10-22 18:35:13');
		INSERT INTO `static_switch_manager` (`head_office_idx`, `product_group_id`, `provider_id`, `product_type_id`, `is_use`, `order_priority`, `front_order_priority`, `create_dt`, `update_dt`) VALUES (v_idx, '145', '4', '2', 'ON', '0', '0', '2023-10-27 20:30:09', '2024-10-22 18:35:13');
		INSERT INTO `static_switch_manager` (`head_office_idx`, `product_group_id`, `provider_id`, `product_type_id`, `is_use`, `order_priority`, `front_order_priority`, `create_dt`, `update_dt`) VALUES (v_idx, '146', '3', '2', 'OFF', '0', '0', '2023-10-27 20:30:09', '2024-10-22 18:35:13');
		INSERT INTO `static_switch_manager` (`head_office_idx`, `product_group_id`, `provider_id`, `product_type_id`, `is_use`, `order_priority`, `front_order_priority`, `create_dt`, `update_dt`) VALUES (v_idx, '146', '4', '2', 'ON', '0', '0', '2023-10-27 20:30:09', '2024-10-22 18:35:13');
		INSERT INTO `static_switch_manager` (`head_office_idx`, `product_group_id`, `provider_id`, `product_type_id`, `is_use`, `order_priority`, `front_order_priority`, `create_dt`, `update_dt`) VALUES (v_idx, '148', '3', '2', 'OFF', '0', '0', '2024-04-04 18:53:30', '2024-10-22 18:35:13');
		INSERT INTO `static_switch_manager` (`head_office_idx`, `product_group_id`, `provider_id`, `product_type_id`, `is_use`, `order_priority`, `front_order_priority`, `create_dt`, `update_dt`) VALUES (v_idx, '148', '4', '2', 'ON', '0', '0', '2024-04-04 18:53:30', '2024-10-22 18:35:13');
		INSERT INTO `static_switch_manager` (`head_office_idx`, `product_group_id`, `provider_id`, `product_type_id`, `is_use`, `order_priority`, `front_order_priority`, `create_dt`, `update_dt`) VALUES (v_idx, '149', '3', '2', 'OFF', '0', '0', '2024-04-04 18:53:30', '2024-10-22 18:35:13');
		INSERT INTO `static_switch_manager` (`head_office_idx`, `product_group_id`, `provider_id`, `product_type_id`, `is_use`, `order_priority`, `front_order_priority`, `create_dt`, `update_dt`) VALUES (v_idx, '149', '4', '2', 'ON', '0', '0', '2024-04-04 18:53:30', '2024-10-22 18:35:13');
		INSERT INTO `static_switch_manager` (`head_office_idx`, `product_group_id`, `provider_id`, `product_type_id`, `is_use`, `order_priority`, `front_order_priority`, `create_dt`, `update_dt`) VALUES (v_idx, '150', '3', '2', 'OFF', '0', '0', '2024-04-04 18:53:30', '2024-10-22 18:35:13');
		INSERT INTO `static_switch_manager` (`head_office_idx`, `product_group_id`, `provider_id`, `product_type_id`, `is_use`, `order_priority`, `front_order_priority`, `create_dt`, `update_dt`) VALUES (v_idx, '150', '4', '2', 'ON', '0', '0', '2024-04-04 18:53:30', '2024-10-22 18:35:13');
		INSERT INTO `static_switch_manager` (`head_office_idx`, `product_group_id`, `provider_id`, `product_type_id`, `is_use`, `order_priority`, `front_order_priority`, `create_dt`, `update_dt`) VALUES (v_idx, '151', '3', '2', 'OFF', '0', '0', '2024-04-04 18:53:30', '2024-10-22 18:35:13');
		INSERT INTO `static_switch_manager` (`head_office_idx`, `product_group_id`, `provider_id`, `product_type_id`, `is_use`, `order_priority`, `front_order_priority`, `create_dt`, `update_dt`) VALUES (v_idx, '151', '4', '2', 'ON', '0', '0', '2024-04-04 18:53:30', '2024-10-22 18:35:13');
		INSERT INTO `static_switch_manager` (`head_office_idx`, `product_group_id`, `provider_id`, `product_type_id`, `is_use`, `order_priority`, `front_order_priority`, `create_dt`, `update_dt`) VALUES (v_idx, '199', '3', '2', 'OFF', '0', '0', '2023-10-27 18:03:20', '2024-10-22 18:35:13');
		INSERT INTO `static_switch_manager` (`head_office_idx`, `product_group_id`, `provider_id`, `product_type_id`, `is_use`, `order_priority`, `front_order_priority`, `create_dt`, `update_dt`) VALUES (v_idx, '199', '4', '2', 'ON', '0', '0', '2023-10-27 18:03:20', '2024-10-22 18:35:13');
        
        main_evnt_charge :BEGIN
			INSERT INTO `static_level_event_charge_config` (`partner_idx`, `is_use`, `start_hour`, `end_hour`, `description`) VALUES (v_idx, 'N',8,10,'돌발충천');
			INSERT INTO `static_level_event_charge_detail` (`partner_idx`, `level`, `bonus_const`, `bonus`, `bonus_max`) VALUES (v_idx,1,0,15,80000);
			INSERT INTO `static_level_event_charge_detail` (`partner_idx`, `level`, `bonus_const`, `bonus`, `bonus_max`) VALUES (v_idx,2,0,15,80000);
			INSERT INTO `static_level_event_charge_detail` (`partner_idx`, `level`, `bonus_const`, `bonus`, `bonus_max`) VALUES (v_idx,3,0,15,80000);
			INSERT INTO `static_level_event_charge_detail` (`partner_idx`, `level`, `bonus_const`, `bonus`, `bonus_max`) VALUES (v_idx,4,0,15,80000);
			INSERT INTO `static_level_event_charge_detail` (`partner_idx`, `level`, `bonus_const`, `bonus`, `bonus_max`) VALUES (v_idx,5,0,15,80000);
			INSERT INTO `static_level_event_charge_detail` (`partner_idx`, `level`, `bonus_const`, `bonus`, `bonus_max`) VALUES (v_idx,6,0,15,80000);
			INSERT INTO `static_level_event_charge_detail` (`partner_idx`, `level`, `bonus_const`, `bonus`, `bonus_max`) VALUES (v_idx,7,0,15,80000);
			INSERT INTO `static_level_event_charge_detail` (`partner_idx`, `level`, `bonus_const`, `bonus`, `bonus_max`) VALUES (v_idx,8,0,15,80000);
			INSERT INTO `static_level_event_charge_detail` (`partner_idx`, `level`, `bonus_const`, `bonus`, `bonus_max`) VALUES (v_idx,9,0,15,80000);
			INSERT INTO `static_level_event_charge_detail` (`partner_idx`, `level`, `bonus_const`, `bonus`, `bonus_max`) VALUES (v_idx,10,0,15,80000);
			INSERT INTO `static_level_event_charge_detail` (`partner_idx`, `level`, `bonus_const`, `bonus`, `bonus_max`) VALUES (v_idx,11,0,15,80000);
			INSERT INTO `static_level_event_charge_detail` (`partner_idx`, `level`, `bonus_const`, `bonus`, `bonus_max`) VALUES (v_idx,12,0,15,80000);
			INSERT INTO `static_level_event_charge_detail` (`partner_idx`, `level`, `bonus_const`, `bonus`, `bonus_max`) VALUES (v_idx,13,0,15,80000);
			INSERT INTO `static_level_event_charge_detail` (`partner_idx`, `level`, `bonus_const`, `bonus`, `bonus_max`) VALUES (v_idx,14,0,15,80000);
			INSERT INTO `static_level_event_charge_detail` (`partner_idx`, `level`, `bonus_const`, `bonus`, `bonus_max`) VALUES (v_idx,15,0,15,80000);
			INSERT INTO `static_level_event_charge_detail` (`partner_idx`, `level`, `bonus_const`, `bonus`, `bonus_max`) VALUES (v_idx,16,0,15,80000);
			INSERT INTO `static_level_event_charge_detail` (`partner_idx`, `level`, `bonus_const`, `bonus`, `bonus_max`) VALUES (v_idx,17,0,15,80000);
			INSERT INTO `static_level_event_charge_detail` (`partner_idx`, `level`, `bonus_const`, `bonus`, `bonus_max`) VALUES (v_idx,18,0,15,80000);
			INSERT INTO `static_level_event_charge_detail` (`partner_idx`, `level`, `bonus_const`, `bonus`, `bonus_max`) VALUES (v_idx,19,0,15,80000);
			INSERT INTO `static_level_event_charge_detail` (`partner_idx`, `level`, `bonus_const`, `bonus`, `bonus_max`) VALUES (v_idx,20,0,15,80000);
        END main_evnt_charge;
         
	COMMIT;
END main ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `create_test_partner_user` */;
DELIMITER ;;
CREATE DEFINER=`admin`@`%` PROCEDURE `create_test_partner_user`(
in_head_office_id varchar(20)
)
main : BEGIN
	
    DECLARE ret_code INT;
	DECLARE errno INT;
    DECLARE v_txt_error_msg text;
    DECLARE l_h_idx bigint;
	declare	l_password varchar(512);
	declare	l_second_password varchar(512);
	declare	l_partner_domain varchar(100);
     
    DECLARE EXIT HANDLER FOR SQLEXCEPTION
    BEGIN
		GET CURRENT DIAGNOSTICS CONDITION 1 errno = MYSQL_ERRNO
		, v_txt_error_msg = MESSAGE_TEXT;
        set ret_code = -1000;
		SELECT ret_code,errno AS MYSQL_ERROR,v_txt_error_msg as MESSAGE_TEXT;
		ROLLBACK;
    END;
	START TRANSACTION;
    	
	select member.idx,member.password,member.second_password,partner_detail_info.partner_domain
		into l_h_idx,l_password,l_second_password,l_partner_domain
	from member 
		left join partner_detail_info on member.idx = partner_detail_info.partner_idx
	where id = in_head_office_id;
        
     main_create_test_partner : BEGIN
	   declare l_high_pt_idx bigint;
       declare l_low_pt_idx bigint;
	   declare l_dist_pt_idx bigint;
	   declare l_shop_pt_idx bigint;
       declare l_high_office_id varchar(64);
       declare l_low_office_id varchar(64);
       declare l_dist_id varchar(64);
       declare l_shop_id varchar(64);
       declare l_unique_id  varchar(64);
       declare l_user_idx bigint;
       
       -- declare l_user_id varchar(20);
	   ##########################영본########################
        set l_high_office_id = 'odds';
		set l_high_pt_idx = create_partner(l_h_idx
		,l_high_office_id
		,'sh'
		,l_h_idx
		,301
		,l_partner_domain 
		,l_password 
		,l_second_password
        ,'none'
		);
        
       ##########################부본########################
	    set l_low_office_id = 'odds';
		set l_low_pt_idx = create_partner(l_h_idx
		,l_low_office_id
		,'lh'
		,l_high_pt_idx
		,401
		,l_partner_domain 
		,l_password 
		,l_second_password
        ,'none'
		);
		
       ##########################총판########################
		set l_dist_id = 'odds';
		set l_dist_pt_idx = create_partner(l_h_idx
		,l_dist_id
		,'dt'
		,l_low_pt_idx
		,501
		,l_partner_domain 
		,l_password 
		,l_second_password
        ,'none'
		);
		
       ##########################매장########################
        set l_shop_id = 'odds';
		set l_shop_pt_idx = create_partner(l_h_idx
		,l_shop_id
		,'st'
		,l_dist_pt_idx
		,601
		,l_partner_domain 
		,l_password 
		,l_second_password
        ,'none'
		);
		update member set temp_shop_idx = l_shop_pt_idx where idx = l_high_pt_idx;
        -- createMember 기능 추가 하면된다.    
                  
        set l_user_idx = create_user(l_h_idx
        ,'mb_oddstest1'
		,l_password
        ,l_shop_pt_idx
		);
        
		set l_user_idx = create_user(l_h_idx
        ,'mb_oddstest2'
		,l_password
        ,l_shop_pt_idx
		);
        
        set l_user_idx = create_user(l_h_idx
        ,'mb_oddstest3'
		,l_password
        ,l_shop_pt_idx
		);
        
        set l_user_idx = create_user(l_h_idx
        ,'mb_oddstest4'
		,l_password
        ,l_shop_pt_idx
		);
        
        set l_user_idx = create_user(l_h_idx
        ,'mb_oddstest5'
		,l_password
        ,l_shop_pt_idx
		);
        
        set l_user_idx = create_user(l_h_idx
        ,'mb_oddstest6'
		,l_password
        ,l_shop_pt_idx
		);
        
        set l_user_idx = create_user(l_h_idx
        ,'mb_oddstest7'
		,l_password
        ,l_shop_pt_idx
		);
        
        set l_user_idx = create_user(l_h_idx
        ,'mb_oddstest8'
		,l_password
        ,l_shop_pt_idx
		);
        
        set l_user_idx = create_user(l_h_idx
        ,'mb_oddstest9'
		,l_password
        ,l_shop_pt_idx
		);
        
        set l_user_idx = create_user(l_h_idx
        ,'mb_oddstest10'
		,l_password
        ,l_shop_pt_idx
		);
        
        -- 개인 개정
        
        set l_user_idx = create_user(l_h_idx
        ,'mb_arachang'
		,l_password
        ,l_shop_pt_idx
		);
        
        set l_user_idx = create_user(l_h_idx
        ,'mb_choo'
		,l_password
        ,l_shop_pt_idx
		);
        
        set l_user_idx = create_user(l_h_idx
        ,'mb_damon'
		,l_password
        ,l_shop_pt_idx
		);
        
        set l_user_idx = create_user(l_h_idx
        ,'mb_seemon'
		,l_password
        ,l_shop_pt_idx
		);
        
        set l_user_idx = create_user(l_h_idx
        ,'mb_dicokkk'
		,l_password
        ,l_shop_pt_idx
		);
        
        set l_user_idx = create_user(l_h_idx
        ,'mb_charlie'
		,l_password
        ,l_shop_pt_idx
		);
        
        set l_user_idx = create_user(l_h_idx
        ,'mb_daniel'
		,l_password
        ,l_shop_pt_idx
		);
        
         set l_user_idx = create_user(l_h_idx
        ,'mb_neo'
		,l_password
        ,l_shop_pt_idx
		);
       
        set l_user_idx = create_user(l_h_idx
        ,'mb_ben'
		,l_password
        ,l_shop_pt_idx
		);
        
         set l_user_idx = create_user(l_h_idx
        ,'mb_august'
		,l_password
        ,l_shop_pt_idx
		);
        
         set l_user_idx = create_user(l_h_idx
        ,'mb_max'
		,l_password
        ,l_shop_pt_idx
		);
        
         set l_user_idx = create_user(l_h_idx
        ,'mb_mark'
		,l_password
        ,l_shop_pt_idx
		);
        
         set l_user_idx = create_user(l_h_idx
        ,'mb_ian'
		,l_password
        ,l_shop_pt_idx
		);
        
         set l_user_idx = create_user(l_h_idx
        ,'mb_luis'
		,l_password
        ,l_shop_pt_idx
		);
        
        
        
          
    END main_create_test_partner;
	COMMIT;
END main ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `GetTimeDiffInSeconds` */;
DELIMITER ;;
CREATE DEFINER=`admin`@`%` PROCEDURE `GetTimeDiffInSeconds`(
	IN `memberidx` INT
)
BEGIN
  DECLARE waittime INT;
  DECLARE waittype VARCHAR(2000);
  SET SESSION time_zone = '+09:00';
  
 
SELECT 
    COALESCE(
        (SELECT     
            CASE 
                WHEN TIMESTAMPDIFF(SECOND, create_dt, NOW()) < 90 OR TIMESTAMPDIFF(SECOND, create_dt, NOW()) < 0 THEN 1
                ELSE 0
            END
        FROM member_customer_service 
        WHERE member_idx = memberIdx
        ORDER BY create_dt DESC
        LIMIT 1), 
    0) AS wait_time,
    
    COALESCE(
        (SELECT 
            CASE 
                WHEN answer IS NOT NULL AND answer <> '' THEN 1 
                ELSE 0 
            END
        FROM member_customer_service 
        WHERE member_idx = memberIdx and status not in (3, 4)
        ORDER BY create_dt DESC
        LIMIT 1), 
    1) AS wait_type;

END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `initAllTable` */;
DELIMITER ;;
CREATE DEFINER=`admin`@`%` PROCEDURE `initAllTable`()
BEGIN

TRUNCATE `basic_announcement`;
TRUNCATE `basic_banner`;
TRUNCATE `basic_event`;
TRUNCATE `basic_popup`;
TRUNCATE `dividend_information`;
TRUNCATE `game_favorite`;
TRUNCATE `game_played`;
TRUNCATE `head_office_event_image_info`;
TRUNCATE `head_office_main_popup_image_info`;
TRUNCATE `member`;
TRUNCATE `member_admin_domain`;
TRUNCATE `member_bank`;
TRUNCATE `member_casino_slot_betting_info`;
TRUNCATE `member_casino_slot_betting_info_callback`;
TRUNCATE `member_charge_info`;
TRUNCATE `member_customer_service`;
TRUNCATE `member_domain`;
TRUNCATE `member_event_charge`;
TRUNCATE `member_exchange_info`;
TRUNCATE `member_fixtures_bet_sum`;
TRUNCATE `member_game_betting_type_info`;
TRUNCATE `member_ip_blocking`;
TRUNCATE `member_item`;
TRUNCATE `member_memo`;
TRUNCATE `member_message_sending`;
TRUNCATE `member_minigame_betting_info`;
TRUNCATE `member_rates`;
TRUNCATE `member_status_security`;
TRUNCATE `member_toto_betting_info`;
TRUNCATE `mini_game_per_head_office`;
TRUNCATE `minigame_popular_games`;
TRUNCATE `minigame_recently_played`;
TRUNCATE `minigame_virtual_favorites`;
TRUNCATE `partner_announcement`;
TRUNCATE `noticeboard_template`;
TRUNCATE `noticeboard_template_types`;
TRUNCATE `partner_bank`;
TRUNCATE `partner_charge_info`;
TRUNCATE `partner_banner`;
TRUNCATE `partner_customer_service`;
TRUNCATE `partner_detail_info`;
TRUNCATE `partner_event`;
TRUNCATE `partner_exchange_info`;
TRUNCATE `partner_payment_collection_info`;
TRUNCATE `partner_popup`;
TRUNCATE `partner_rates`;
TRUNCATE `partner_sub_info`;
TRUNCATE `personal_account_number`;
TRUNCATE `sms_auth`;

TRUNCATE `static_admin_head_office_group_info`;
TRUNCATE `static_bonus_option`;


TRUNCATE `static_dividend_policy`;

TRUNCATE `static_head_office_config_data`;
TRUNCATE `static_head_office_leagues`;
TRUNCATE `static_head_office_markets`;

TRUNCATE `static_head_office_mini_game`;
TRUNCATE `static_head_office_participants`;
TRUNCATE `static_head_office_refund_rate_market`;
TRUNCATE `static_head_office_sports`;

TRUNCATE `static_level_account`;
TRUNCATE `static_level_auto_level_up_config`;
TRUNCATE `static_level_auto_level_up_detail`;
TRUNCATE `static_level_bonus_basic_option_rolling_config`;
TRUNCATE `static_level_bonus_charge_plus_config`;
TRUNCATE `static_level_bonus_charge_plus_detail`;
TRUNCATE `static_level_charge_bonus_option`;
TRUNCATE `static_level_charge_config`;
TRUNCATE `static_level_charge_detail`;
TRUNCATE `static_level_event_charge_config`;
TRUNCATE `static_level_event_charge_detail`;
TRUNCATE `static_main_server_mgr`;
TRUNCATE `static_partner_level_rates`;
TRUNCATE `static_min_max_limit_win_betting_money`;
TRUNCATE `static_partner_admin_rule_set`;

TRUNCATE `static_partner_config_juckjang_data`;
TRUNCATE `static_partner_front_rule_set`;
TRUNCATE `static_switch_config`;
TRUNCATE `static_switch_manager`;
TRUNCATE `static_whitelist`;
TRUNCATE `statistic_casino_group`;
TRUNCATE `statistic_casino_slot`;
TRUNCATE `statistic_fixtures`;
TRUNCATE `statistic_max_charge`;
TRUNCATE `statistic_max_exchange`;
TRUNCATE `statistic_member_comprehensive_details`;
TRUNCATE `statistic_today_max_charge`;
TRUNCATE `statistic_today_max_exchange`;

END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `initTable_gamble` */;
DELIMITER ;;
CREATE DEFINER=`admin`@`%` PROCEDURE `initTable_gamble`(
in_head_office_id varchar(45)
)
main : BEGIN

  declare h_idx bigint;
  
  DECLARE ret_code INT;
  DECLARE errno INT;
  DECLARE v_txt_error_msg text;
    
  DECLARE EXIT HANDLER FOR SQLEXCEPTION
    BEGIN
		GET CURRENT DIAGNOSTICS CONDITION 1 errno = MYSQL_ERRNO
		, v_txt_error_msg = MESSAGE_TEXT;
        set ret_code = -1000;
		SELECT ret_code,errno AS MYSQL_ERROR,v_txt_error_msg as MESSAGE_TEXT;
		ROLLBACK;
    END;
           
    START TRANSACTION;
    
		select member.idx
			into h_idx
		from main.member 
			left join main.partner_detail_info on member.idx = partner_detail_info.partner_idx
        where id = in_head_office_id;
		
        delete from basic_announcement where basic_announcement.head_office_idx = h_idx;
        delete from basic_banner where basic_banner.head_office_idx = h_idx;
        delete from basic_event where basic_event.head_office_idx = h_idx;
        delete from basic_popup where basic_popup.head_office_idx = h_idx;
        delete from dividend_information where dividend_information.head_office_idx = h_idx;
        
        delete game_favorite from game_favorite left join member on member.idx = game_favorite.member_id where member.head_office_idx = h_idx;
        delete game_played from game_played left join member on member.idx = game_played.member_id where member.head_office_idx = h_idx;
        
        delete from head_office_event_image_info  where head_office_event_image_info.head_office_idx = h_idx;
		delete from head_office_game_manager  where head_office_game_manager.head_office_idx = h_idx;
        delete from head_office_main_popup_image_info  where head_office_main_popup_image_info.head_office_idx = h_idx;
        
		delete member_admin_domain from member_admin_domain left join member on member.idx = member_admin_domain.partner_idx where member.head_office_idx = h_idx;
        delete member_bank from member_bank left join member on member.idx = member_admin_domain.member_idx where member.head_office_idx = h_idx;
        
        delete member_casino_slot_betting_info_callback from member_casino_slot_betting_info_callback 
        left join member_casino_slot_betting_info on member_casino_slot_betting_info.u_key = member_casino_slot_betting_info_callback.betting_info_id 
        left join member on member.idx = member_casino_slot_betting_info.member_idx 
        where member.head_office_idx = h_idx;
        
        delete member_casino_slot_betting_info from member_casino_slot_betting_info left join member on member.idx = member_casino_slot_betting_info.member_idx where member.head_office_idx = h_idx;
        delete member_charge_info from member_charge_info left join member on member.idx = member_charge_info.member_idx where member.head_office_idx = h_idx;
        delete member_customer_service from member_customer_service left join member on member.idx = member_customer_service.member_idx where member.head_office_idx = h_idx;
                
		delete member_domain from member_domain left join member on member.idx = member_domain.partner_idx where member.head_office_idx = h_idx;
	
        delete member_event_charge from member_event_charge left join member on member.idx = member_event_charge.member_idx where member.head_office_idx = h_idx;
        delete member_exchange_info from member_exchange_info left join member on member.idx = member_exchange_info.member_idx where member.head_office_idx = h_idx;
        delete member_extend from member_extend left join member on member.idx = member_extend.member_idx where member.head_office_idx = h_idx;
        delete member_fixtures_bet_sum from member_fixtures_bet_sum left join member on member.idx = member_fixtures_bet_sum.member_idx where member.head_office_idx = h_idx;
        
		delete member_game_betting_type_info from member_game_betting_type_info left join member on member.idx = member_game_betting_type_info.member_idx where member.head_office_idx = h_idx;
        delete member_item from member_item left join member on member.idx = member_item.member_idx where member.head_office_idx = h_idx;
        
        delete member_memo from member_memo left join member on member.idx = member_memo.member_idx where member.head_office_idx = h_idx;
        delete member_message_sending from member_message_sending left join member on member.idx = member_message_sending.member_idx where member.head_office_idx = h_idx;
        delete member_minigame_betting_info from member_minigame_betting_info left join member on member.idx = member_minigame_betting_info.member_idx where member.head_office_idx = h_idx;
        delete member_rates from member_rates left join member on member.idx = member_rates.member_idx where member.head_office_idx = h_idx;
        
        delete member_status_security from member_status_security left join member on member.idx = member_status_security.member_idx where member.head_office_idx = h_idx;
        delete member_toto_betting_info from member_toto_betting_info left join member on member.idx = member_toto_betting_info.member_idx where member.head_office_idx = h_idx;
	      
		delete from mini_game_per_head_office  where mini_game_per_head_office.headoffice_idx = h_idx;
        delete minigame_popular_games from minigame_popular_games left join member on member.idx = minigame_popular_games.partner_idx where member.head_office_idx = h_idx;
        delete minigame_recently_played from minigame_recently_played left join member on member.idx = minigame_recently_played.member_idx where member.head_office_idx = h_idx;
        delete minigame_virtual_favorites from minigame_virtual_favorites left join member on member.idx = minigame_virtual_favorites.member_idx where member.head_office_idx = h_idx;
       
        delete noticeboard_template from noticeboard_template 
        left join noticeboard_template_types on noticeboard_template_types.template_type_idx = noticeboard_template.template_type_idx 
        left join member on member.idx = noticeboard_template_types.head_office_idx 
        where member.head_office_idx = h_idx;
        
		delete from noticeboard_template_types  where noticeboard_template_types.headoffice_idx = h_idx;
        
        delete partner_announcement from partner_announcement left join member on member.idx = partner_announcement.partner_idx where member.head_office_idx = h_idx;
        
        delete partner_bank from partner_bank left join member on member.idx = partner_bank.partner_idx where member.head_office_idx = h_idx;
        delete partner_banner from partner_banner left join member on member.idx = partner_banner.partner_idx where member.head_office_idx = h_idx;
        delete partner_charge_info from partner_charge_info left join member on member.idx = partner_charge_info.partner_idx where member.head_office_idx = h_idx;
        delete partner_customer_service from partner_customer_service left join member on member.idx = partner_customer_service.partner_idx where member.head_office_idx = h_idx;
        
        delete partner_detail_info from partner_detail_info left join member on member.idx = partner_detail_info.partner_idx where member.head_office_idx = h_idx;
        
        delete partner_event from partner_event left join member on member.idx = partner_event.partner_idx where member.head_office_idx = h_idx;
        delete partner_exchange_info from partner_exchange_info left join member on member.idx = partner_exchange_info.partner_idx where member.head_office_idx = h_idx;
        delete partner_payment_collection_info from partner_payment_collection_info left join member on member.idx = partner_payment_collection_info.partner_idx where member.head_office_idx = h_idx;
        delete partner_popup from partner_popup left join member on member.idx = partner_popup.partner_idx where member.head_office_idx = h_idx;
               
		delete partner_rates from partner_rates left join member on member.idx = partner_rates.partner_idx where member.head_office_idx = h_idx;
        delete partner_sub_info from partner_sub_info left join member on member.idx = partner_sub_info.partner_idx where member.head_office_idx = h_idx;
		
		delete personal_account_number from personal_account_number left join member on member.idx = personal_account_number.member_idx where member.head_office_idx = h_idx;
        
        delete sms_auth from sms_auth left join member on member.idx = sms_auth.partner_idx where member.head_office_idx = h_idx;
		
        delete from static_bonus_option  where static_bonus_option.partner_idx = h_idx;
        
		delete from static_admin_whitelist  where static_admin_whitelist.head_office_idx = h_idx;
        delete from static_bonus_option  where static_bonus_option.partner_idx = h_idx;
		delete from static_charge_guide_info  where static_charge_guide_info.partner_idx = h_idx;
                
        delete from static_dividen_combination  where static_dividen_combination.partner_idx = h_idx;
        delete from static_dividend_policy  where static_dividend_policy.partner_idx = h_idx;
        
        delete from static_exchange_guide_info  where static_exchange_guide_info.partner_idx = h_idx;
        
        
        delete from static_head_office_config_data  where static_head_office_config_data.head_office_idx = h_idx;
        
        delete from static_head_office_leagues  where static_head_office_leagues.head_office_idx = h_idx;
        delete from static_head_office_markets  where static_head_office_markets.head_office_idx = h_idx;
      			
		delete from static_head_office_mini_game  where static_head_office_mini_game.partner_idx = h_idx;
        delete from static_head_office_participants  where static_head_office_participants.head_office_idx = h_idx;
        delete from static_head_office_refund_rate_market  where static_head_office_refund_rate_market.head_office_idx = h_idx;
        delete from static_head_office_sports  where static_head_office_sports.head_office_idx = h_idx;
		delete from static_inplay_check_time_score  where static_inplay_check_time_score.head_office_idx = h_idx;
     
		
		delete from static_level_account  where static_level_account.partner_idx = h_idx;
        
        delete from static_level_auto_level_up_config  where static_level_auto_level_up_config.partner_idx = h_idx;
        delete from static_level_auto_level_up_detail  where static_level_auto_level_up_detail.partner_idx = h_idx;
        
		delete from static_level_bonus_basic_option_rolling_config  where static_level_bonus_basic_option_rolling_config.partner_idx = h_idx;
        				
		delete from static_level_bonus_charge_plus_config  where static_level_bonus_charge_plus_config.partner_idx = h_idx;
        delete from static_level_bonus_charge_plus_detail  where static_level_bonus_charge_plus_detail.partner_idx = h_idx;
        delete from static_level_charge_bonus_option  where static_level_charge_bonus_option.partner_idx = h_idx;
        delete from static_level_charge_config  where static_level_charge_config.partner_idx = h_idx;
		delete from static_level_charge_detail  where static_level_charge_detail.partner_idx = h_idx;
        
        delete from static_level_event_charge_config  where static_level_event_charge_config.partner_idx = h_idx;
        delete from static_level_event_charge_detail  where static_level_event_charge_detail.partner_idx = h_idx;
        delete from static_main_server_mgr  where static_main_server_mgr.head_office_idxs = h_idx;
        delete from static_maintenance_anouncement  where static_maintenance_anouncement.partner_idx = h_idx;
        delete from static_marketing_admin_rule_set  where static_marketing_admin_rule_set.partner_idx = h_idx;
        delete from static_marketing_whitelist  where static_marketing_whitelist.head_office_idx = h_idx;
        delete from static_min_max_limit_win_betting_money  where static_min_max_limit_win_betting_money.partner_idx = h_idx;
		delete from static_partner_admin_rule_set  where static_partner_admin_rule_set.partner_idx = h_idx;
        
        delete from static_partner_config_juckjang_data  where static_partner_config_juckjang_data.partner_idx = h_idx;
        delete from static_partner_front_rule_set  where static_partner_front_rule_set.partner_idx = h_idx;
        
        delete from static_partner_level_rates  where static_partner_level_rates.partner_idx = h_idx;
        
        delete from static_switch_config  where static_switch_config.head_office_idx = h_idx;
		delete from static_switch_manager  where static_switch_manager.head_office_idx = h_idx;	
        
        delete from static_whitelist  where static_whitelist.head_office_idx = h_idx;	
		delete from statistic_casino_group  where statistic_casino_group.head_office_idx = h_idx;	
        
        delete from statistic_casino_slot  where statistic_casino_slot.head_office_idx = h_idx;	
        
        delete from statistic_fixtures  where statistic_fixtures.partner_idx = h_idx;	
	
        delete statistic_max_charge from statistic_max_charge left join member on member.idx = statistic_max_charge.member_idx where member.head_office_idx = h_idx;
        delete statistic_max_exchange from statistic_max_exchange left join member on member.idx = statistic_max_exchange.member_idx where member.head_office_idx = h_idx;
        
        delete statistic_member_comprehensive_details from statistic_member_comprehensive_details left join member on member.idx = statistic_member_comprehensive_details.member_idx where member.head_office_idx = h_idx;
        
        delete statistic_today_max_charge from statistic_today_max_charge left join member on member.idx = statistic_today_max_charge.member_idx where member.head_office_idx = h_idx;
        delete statistic_today_max_exchange from statistic_today_max_exchange left join member on member.idx = statistic_today_max_exchange.member_idx where member.head_office_idx = h_idx;
	
		delete from tt_header_sound  where tt_header_sound.partner_idx = h_idx;	
        
        delete statistics.statistics_source_data from statistics.statistics_source_data left join member on member.idx = statistics.statistics_source_data.member_idx where member.head_office_idx = h_idx;
        
        delete log.log_info from log.log_info left join member on member.idx = log.log_info.member_idx where member.head_office_idx = h_idx;
        
        delete from member  where member.head_office_idx = h_idx;	
		
	COMMIT;
END main ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `init_head_office` */;
DELIMITER ;;
CREATE DEFINER=`admin`@`%` PROCEDURE `init_head_office`(
in_head_office_id varchar(45)
)
main : BEGIN

  declare h_idx bigint;
  
  DECLARE ret_code INT;
  DECLARE errno INT;
  DECLARE v_txt_error_msg text;
    
  DECLARE EXIT HANDLER FOR SQLEXCEPTION
    BEGIN
		GET CURRENT DIAGNOSTICS CONDITION 1 errno = MYSQL_ERRNO
		, v_txt_error_msg = MESSAGE_TEXT;
        set ret_code = -1000;
		SELECT ret_code,errno AS MYSQL_ERROR,v_txt_error_msg as MESSAGE_TEXT;
		ROLLBACK;
    END;
           
    START TRANSACTION;
    
		select member.idx
			into h_idx
		from main.member 
			left join main.partner_detail_info on member.idx = partner_detail_info.partner_idx
        where id = in_head_office_id;
		
        delete from basic_announcement where basic_announcement.head_office_idx = h_idx;
        delete from basic_banner where basic_banner.head_office_idx = h_idx;
        delete from basic_event where basic_event.head_office_idx = h_idx;
        delete from basic_popup where basic_popup.head_office_idx = h_idx;
        delete from dividend_information where dividend_information.head_office_idx = h_idx;
        
        delete game_favorite from game_favorite left join member on member.idx = game_favorite.member_id where member.head_office_idx = h_idx;
        delete game_played from game_played left join member on member.idx = game_played.member_id where member.head_office_idx = h_idx;
        
        delete from head_office_event_image_info  where head_office_event_image_info.head_office_idx = h_idx;
		delete from head_office_game_manager  where head_office_game_manager.head_office_idx = h_idx;
        delete from head_office_main_popup_image_info  where head_office_main_popup_image_info.head_office_idx = h_idx;
        
		delete member_admin_domain from member_admin_domain left join member on member.idx = member_admin_domain.partner_idx where member.head_office_idx = h_idx;
        
        delete member_bank from member_bank left join member on member.idx = member_bank.member_idx where member.head_office_idx = h_idx;
        
        delete member_casino_slot_betting_info_callback from member_casino_slot_betting_info_callback 
        left join member_casino_slot_betting_info on member_casino_slot_betting_info.u_key = member_casino_slot_betting_info_callback.betting_info_id 
        left join member on member.idx = member_casino_slot_betting_info.member_idx 
        where member.head_office_idx = h_idx;
        
        delete member_casino_slot_betting_info from member_casino_slot_betting_info left join member on member.idx = member_casino_slot_betting_info.member_idx where member.head_office_idx = h_idx;
        delete member_charge_info from member_charge_info left join member on member.idx = member_charge_info.member_idx where member.head_office_idx = h_idx;
        delete member_customer_service from member_customer_service left join member on member.idx = member_customer_service.member_idx where member.head_office_idx = h_idx;
                
		delete member_domain from member_domain left join member on member.idx = member_domain.partner_idx where member.head_office_idx = h_idx;
	
        delete member_event_charge from member_event_charge left join member on member.idx = member_event_charge.member_idx where member.head_office_idx = h_idx;
        delete member_exchange_info from member_exchange_info left join member on member.idx = member_exchange_info.member_idx where member.head_office_idx = h_idx;
        -- delete member_extend from member_extend left join member on member.idx = member_extend.member_idx where member.head_office_idx = h_idx;
        delete member_fixtures_bet_sum from member_fixtures_bet_sum left join member on member.idx = member_fixtures_bet_sum.member_idx where member.head_office_idx = h_idx;
        
		delete member_game_betting_type_info from member_game_betting_type_info left join member on member.idx = member_game_betting_type_info.member_idx where member.head_office_idx = h_idx;
        delete member_item from member_item left join member on member.idx = member_item.member_idx where member.head_office_idx = h_idx;
        
        delete member_memo from member_memo left join member on member.idx = member_memo.member_idx where member.head_office_idx = h_idx;
        delete member_message_sending from member_message_sending left join member on member.idx = member_message_sending.member_idx where member.head_office_idx = h_idx;
        delete member_minigame_betting_info from member_minigame_betting_info left join member on member.idx = member_minigame_betting_info.member_idx where member.head_office_idx = h_idx;
        delete member_rates from member_rates left join member on member.idx = member_rates.member_idx where member.head_office_idx = h_idx;
        
        delete member_status_security from member_status_security left join member on member.idx = member_status_security.member_idx where member.head_office_idx = h_idx;
        delete member_toto_betting_info from member_toto_betting_info left join member on member.idx = member_toto_betting_info.member_idx where member.head_office_idx = h_idx;
	      
		delete from mini_game_per_head_office  where mini_game_per_head_office.headoffice_idx = h_idx;
        delete minigame_popular_games from minigame_popular_games left join member on member.idx = minigame_popular_games.partner_idx where member.head_office_idx = h_idx;
        delete minigame_recently_played from minigame_recently_played left join member on member.idx = minigame_recently_played.member_idx where member.head_office_idx = h_idx;
        delete minigame_virtual_favorites from minigame_virtual_favorites left join member on member.idx = minigame_virtual_favorites.member_idx where member.head_office_idx = h_idx;
       
        delete noticeboard_template from noticeboard_template 
        left join noticeboard_template_types on noticeboard_template_types.template_type_idx = noticeboard_template.template_type_idx 
        left join member on member.idx = noticeboard_template_types.head_office_idx 
        where member.head_office_idx = h_idx;
        
		delete from noticeboard_template_types  where noticeboard_template_types.head_office_idx = h_idx;
        
        delete partner_announcement from partner_announcement left join member on member.idx = partner_announcement.partner_idx where member.head_office_idx = h_idx;
        
        delete partner_bank from partner_bank left join member on member.idx = partner_bank.partner_idx where member.head_office_idx = h_idx;
        delete partner_banner from partner_banner left join member on member.idx = partner_banner.partner_idx where member.head_office_idx = h_idx;
        delete partner_charge_info from partner_charge_info left join member on member.idx = partner_charge_info.partner_idx where member.head_office_idx = h_idx;
        delete partner_customer_service from partner_customer_service left join member on member.idx = partner_customer_service.partner_idx where member.head_office_idx = h_idx;
        
        delete partner_detail_info from partner_detail_info left join member on member.idx = partner_detail_info.partner_idx where member.head_office_idx = h_idx;
        
        delete partner_event from partner_event left join member on member.idx = partner_event.partner_idx where member.head_office_idx = h_idx;
        delete partner_exchange_info from partner_exchange_info left join member on member.idx = partner_exchange_info.partner_idx where member.head_office_idx = h_idx;
        delete partner_payment_collection_info from partner_payment_collection_info left join member on member.idx = partner_payment_collection_info.partner_idx where member.head_office_idx = h_idx;
        delete partner_popup from partner_popup left join member on member.idx = partner_popup.partner_idx where member.head_office_idx = h_idx;
               
		delete partner_rates from partner_rates left join member on member.idx = partner_rates.partner_idx where member.head_office_idx = h_idx;
        delete partner_sub_info from partner_sub_info left join member on member.idx = partner_sub_info.partner_idx where member.head_office_idx = h_idx;
		
		delete personal_account_number from personal_account_number left join member on member.idx = personal_account_number.member_idx where member.head_office_idx = h_idx;
        
        delete sms_auth from sms_auth left join member on member.idx = sms_auth.partner_idx where member.head_office_idx = h_idx;
		
        delete from static_bonus_option  where static_bonus_option.partner_idx = h_idx;
        
		delete from static_admin_whitelist  where static_admin_whitelist.head_office_idx = h_idx;
        
		delete from static_charge_guide_info  where static_charge_guide_info.partner_idx = h_idx;
                
        -- delete from static_dividend_combination  where static_dividen_combination.partner_idx = h_idx;
        delete from static_dividend_policy  where static_dividend_policy.partner_idx = h_idx;
        
        delete from static_exchange_guide_info  where static_exchange_guide_info.partner_idx = h_idx;
        
        
        delete from static_head_office_config_data  where static_head_office_config_data.head_office_idx = h_idx;
        
        delete from static_head_office_leagues  where static_head_office_leagues.head_office_idx = h_idx;
        delete from static_head_office_markets  where static_head_office_markets.head_office_idx = h_idx;
      			
		delete from static_head_office_mini_game  where static_head_office_mini_game.partner_idx = h_idx;
        delete from static_head_office_participants  where static_head_office_participants.head_office_idx = h_idx;
        delete from static_head_office_refund_rate_market  where static_head_office_refund_rate_market.head_office_idx = h_idx;
        delete from static_head_office_sports  where static_head_office_sports.head_office_idx = h_idx;
		delete from static_inplay_check_time_score  where static_inplay_check_time_score.partner_idx = h_idx;
     
		
		delete from static_level_account  where static_level_account.partner_idx = h_idx;
        
        delete from static_level_auto_level_up_config  where static_level_auto_level_up_config.partner_idx = h_idx;
        delete from static_level_auto_level_up_detail  where static_level_auto_level_up_detail.partner_idx = h_idx;
        
		delete from static_level_bonus_basic_option_rolling_config  where static_level_bonus_basic_option_rolling_config.partner_idx = h_idx;
        				
		delete from static_level_bonus_charge_plus_config  where static_level_bonus_charge_plus_config.partner_idx = h_idx;
        delete from static_level_bonus_charge_plus_detail  where static_level_bonus_charge_plus_detail.partner_idx = h_idx;
        delete from static_level_charge_bonus_option  where static_level_charge_bonus_option.partner_idx = h_idx;
        delete from static_level_charge_config  where static_level_charge_config.partner_idx = h_idx;
		delete from static_level_charge_detail  where static_level_charge_detail.partner_idx = h_idx;
        
        delete from static_level_event_charge_config  where static_level_event_charge_config.partner_idx = h_idx;
        delete from static_level_event_charge_detail  where static_level_event_charge_detail.partner_idx = h_idx;
        delete from static_main_server_mgr  where static_main_server_mgr.head_office_idxs = h_idx;
        delete from static_maintenance_anouncement  where static_maintenance_anouncement.partner_idx = h_idx;
        delete from static_marketing_admin_rule_set  where static_marketing_admin_rule_set.partner_idx = h_idx;
        delete from static_marketing_whitelist  where static_marketing_whitelist.head_office_idx = h_idx;
        delete from static_min_max_limit_win_betting_money  where static_min_max_limit_win_betting_money.partner_idx = h_idx;
		delete from static_partner_admin_rule_set  where static_partner_admin_rule_set.partner_idx = h_idx;
        
        delete from static_partner_config_juckjang_data  where static_partner_config_juckjang_data.partner_idx = h_idx;
        delete from static_partner_front_rule_set  where static_partner_front_rule_set.partner_idx = h_idx;
        
        delete from static_partner_level_rates  where static_partner_level_rates.partner_idx = h_idx;
        
        delete from static_switch_config  where static_switch_config.head_office_idx = h_idx;
		delete from static_switch_manager  where static_switch_manager.head_office_idx = h_idx;	
        
        delete from static_whitelist  where static_whitelist.head_office_idx = h_idx;	
		delete from statistic_casino_group  where statistic_casino_group.head_office_idx = h_idx;	
        
        delete from statistic_casino_slot  where statistic_casino_slot.head_office_idx = h_idx;	
        
        delete from statistic_fixtures  where statistic_fixtures.partner_idx = h_idx;	
	
        delete statistic_max_charge from statistic_max_charge left join member on member.idx = statistic_max_charge.member_idx where member.head_office_idx = h_idx;
        delete statistic_max_exchange from statistic_max_exchange left join member on member.idx = statistic_max_exchange.member_idx where member.head_office_idx = h_idx;
        
        delete statistic_member_comprehensive_details from statistic_member_comprehensive_details left join member on member.idx = statistic_member_comprehensive_details.member_idx where member.head_office_idx = h_idx;
        
        delete statistic_today_max_charge from statistic_today_max_charge left join member on member.idx = statistic_today_max_charge.member_idx where member.head_office_idx = h_idx;
        delete statistic_today_max_exchange from statistic_today_max_exchange left join member on member.idx = statistic_today_max_exchange.member_idx where member.head_office_idx = h_idx;
	
		delete from tt_header_sound  where tt_header_sound.partner_idx = h_idx;	
                
        delete  from statistics.statistics_casino_slot_types_data  where statistics.statistics_casino_slot_types_data.head_office_idx = h_idx;
        delete  from statistics.statistics_league_data  where statistics.statistics_league_data.head_office_idx = h_idx;
        
        delete statistics.statistics_member_juckjang_daily_data from statistics.statistics_member_juckjang_daily_data left join member on member.idx = statistics.statistics_member_juckjang_daily_data.member_idx where member.head_office_idx = h_idx;
        delete statistics.statistics_partner_bonus from statistics.statistics_partner_bonus left join member on member.idx = statistics.statistics_partner_bonus.partner_idx where member.head_office_idx = h_idx;
        delete statistics.statistics_partner_juckjang_daily_data from statistics.statistics_partner_juckjang_daily_data left join member on member.idx = statistics.statistics_partner_juckjang_daily_data.partner_idx where member.head_office_idx = h_idx;
        delete statistics.statistics_source_daily_data from statistics.statistics_source_daily_data left join member on member.idx = statistics.statistics_source_daily_data.partner_idx where member.head_office_idx = h_idx;
        delete statistics.statistics_source_data from statistics.statistics_source_data left join member on member.idx = statistics.statistics_source_data.member_idx where member.head_office_idx = h_idx;  
        delete  from statistics.statistics_sports_types_data  where statistics.statistics_sports_types_data.head_office_idx = h_idx;
        delete  from statistics.statistics_virtual_mini_types_data  where statistics.statistics_virtual_mini_types_data.head_office_idx = h_idx;
        
        delete log.log_error from log.log_error left join member on member.idx = log.log_error.member_idx where member.head_office_idx = h_idx;
        delete log.log_info from log.log_info left join member on member.idx = log.log_info.member_idx where member.head_office_idx = h_idx;
        delete log.log_juckjang_cycle_error from log.log_juckjang_cycle_error left join member on member.idx = log.log_juckjang_cycle_error.partner_idx where member.head_office_idx = h_idx;
        delete log.log_juckjang_error from log.log_juckjang_error left join member on member.idx = log.log_juckjang_error.member_idx where member.head_office_idx = h_idx;
        delete log.log_rolling_comp from log.log_rolling_comp left join member on member.idx = log.log_rolling_comp.member_idx where member.head_office_idx = h_idx;
        
        delete from member  where member.head_office_idx = h_idx;	
		
	COMMIT;
END main ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `insert_member_rates` */;
DELIMITER ;;
CREATE DEFINER=`admin`@`%` PROCEDURE `insert_member_rates`()
main : BEGIN
	DECLARE ret_code INT;
	DECLARE errno INT;
    DECLARE v_txt_error_msg text;
    DECLARE $next TEXT;
	DECLARE $value TEXT;
	   
    DECLARE v_idx bigint;
    DECLARE v_partner_type int;
    DECLARE v_value int;
    DECLARE done INTEGER DEFAULT 0;
    DEClARE openCursor CURSOR FOR SELECT mb.idx,mb.partner_type
    FROM main.member as mb where mb.member_type = 'player';
             
	DECLARE CONTINUE HANDLER FOR NOT FOUND SET done = true;
    
    DECLARE EXIT HANDLER FOR SQLEXCEPTION
    BEGIN
		GET CURRENT DIAGNOSTICS CONDITION 1 errno = MYSQL_ERRNO
		, v_txt_error_msg = MESSAGE_TEXT;
        set ret_code = -1000;
		SELECT ret_code,errno AS MYSQL_ERROR,v_txt_error_msg as MESSAGE_TEXT;
		ROLLBACK;
    END;
           
    START TRANSACTION;
        
        OPEN openCursor;
			  read_loop: LOOP
					   
				   FETCH openCursor INTO v_idx,v_partner_type;
				   
				   IF done THEN
						   LEAVE read_loop;
				   END IF;

			  
			                
                set v_value = 5;
                
                insert into member_rates(member_idx,rate_type,value) values(v_idx,1,v_value),(v_idx,2,v_value),(v_idx,3,v_value)
                ,(v_idx,4,v_value),(v_idx,5,v_value),(v_idx,6,v_value)
                ,(v_idx,7,v_value),(v_idx,8,v_value),(v_idx,9,v_value)
                ,(v_idx,100,v_value),(v_idx,101,v_value),(v_idx,102,v_value)
                ,(v_idx,103,v_value),(v_idx,104,v_value),(v_idx,105,v_value)
                ,(v_idx,106,v_value),(v_idx,107,v_value),(v_idx,201,v_value)
                ,(v_idx,202,v_value),(v_idx,203,v_value),(v_idx,204,v_value)
                ,(v_idx,205,v_value),(v_idx,206,v_value),(v_idx,207,v_value)
				,(v_idx,208,v_value);
              
              
			  END LOOP read_loop;

         CLOSE openCursor;
    
    
	COMMIT;
END main ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `insert_partner_level_rates` */;
DELIMITER ;;
CREATE DEFINER=`admin`@`%` PROCEDURE `insert_partner_level_rates`()
main : BEGIN
	DECLARE ret_code INT;
	DECLARE errno INT;
    DECLARE v_txt_error_msg text;
    DECLARE $next TEXT;
	DECLARE $value TEXT;
	   
    DECLARE v_idx bigint;
    DECLARE v_partner_type int;
    DECLARE v_value int;
    DECLARE k INT DEFAULT 1;
    DECLARE done INTEGER DEFAULT 0;
    DEClARE openCursor CURSOR FOR SELECT mb.idx,mb.partner_type
    FROM main.member as mb where mb.partner_type in(1,201);
             
	DECLARE CONTINUE HANDLER FOR NOT FOUND SET done = true;
    
    DECLARE EXIT HANDLER FOR SQLEXCEPTION
    BEGIN
		GET CURRENT DIAGNOSTICS CONDITION 1 errno = MYSQL_ERRNO
		, v_txt_error_msg = MESSAGE_TEXT;
        set ret_code = -1000;
		SELECT ret_code,errno AS MYSQL_ERROR,v_txt_error_msg as MESSAGE_TEXT;
		ROLLBACK;
    END;
           
    START TRANSACTION;
        
        OPEN openCursor;
			  read_loop: LOOP
					   
				   FETCH openCursor INTO v_idx,v_partner_type;
				   
				   IF done THEN
						   LEAVE read_loop;
				   END IF;

			  
				if 1 = v_partner_type then
					set v_value = 10;
				elseif 2 = v_partner_type then
					set v_value = 20;
                end if;
                
				WHILE(k <= 20) DO 
					insert into static_partner_level_rates(partner_idx,rate_type,level,value,recommend_value) values
                    (v_idx,1,k,v_value,v_value),(v_idx,2,k,v_value,v_value),(v_idx,3,k,v_value,v_value)
                    ,(v_idx,4,k,v_value,v_value),(v_idx,5,k,v_value,v_value),(v_idx,6,k,v_value,v_value)
                    ,(v_idx,7,k,v_value,v_value),(v_idx,8,k,v_value,v_value),(v_idx,9,k,v_value,v_value)
                    ,(v_idx,100,k,v_value,v_value),(v_idx,101,k,v_value,v_value),(v_idx,102,k,v_value,v_value)
                    ,(v_idx,103,k,v_value,v_value),(v_idx,104,k,v_value,v_value),(v_idx,105,k,v_value,v_value)
                    ,(v_idx,106,k,v_value,v_value),(v_idx,107,k,v_value,v_value),(v_idx,201,k,v_value,v_value)
                    ,(v_idx,202,k,v_value,v_value),(v_idx,203,k,v_value,v_value),(v_idx,204,k,v_value,v_value)
                    ,(v_idx,205,k,v_value,v_value),(v_idx,206,k,v_value,v_value),(v_idx,207,k,v_value,v_value);	
					SET k = k+1 ;
				END WHILE;
              SET k = 1 ;
			  END LOOP read_loop;

         CLOSE openCursor;
    
    
	COMMIT;
END main ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `insert_partner_rates` */;
DELIMITER ;;
CREATE DEFINER=`admin`@`%` PROCEDURE `insert_partner_rates`()
main : BEGIN
	DECLARE ret_code INT;
	DECLARE errno INT;
    DECLARE v_txt_error_msg text;
    DECLARE $next TEXT;
	DECLARE $value TEXT;
	   
    DECLARE v_idx bigint;
    DECLARE v_partner_type int;
    DECLARE v_value int;
    DECLARE done INTEGER DEFAULT 0;
    DEClARE openCursor CURSOR FOR SELECT mb.idx,mb.partner_type
    FROM main.member as mb where mb.member_type = 'partner';
             
	DECLARE CONTINUE HANDLER FOR NOT FOUND SET done = true;
    
    DECLARE EXIT HANDLER FOR SQLEXCEPTION
    BEGIN
		GET CURRENT DIAGNOSTICS CONDITION 1 errno = MYSQL_ERRNO
		, v_txt_error_msg = MESSAGE_TEXT;
        set ret_code = -1000;
		SELECT ret_code,errno AS MYSQL_ERROR,v_txt_error_msg as MESSAGE_TEXT;
		ROLLBACK;
    END;
           
    START TRANSACTION;
        
        OPEN openCursor;
			  read_loop: LOOP
					   
				   FETCH openCursor INTO v_idx,v_partner_type;
				   
				   IF done THEN
						   LEAVE read_loop;
				   END IF;

			  
				if 601 = v_partner_type then
					set v_value = 10;
				elseif 501 = v_partner_type then
					set v_value = 20;
                elseif 401 = v_partner_type then
					set v_value = 30;
                elseif 301 = v_partner_type then
					set v_value = 40;
                elseif 201 = v_partner_type then
					set v_value = 50;
                elseif 1 = v_partner_type then
					set v_value = 60;
                end if;
                
                insert into partner_rates(partner_idx,rate_type,value) values(v_idx,1,v_value),(v_idx,2,v_value),(v_idx,3,v_value)
                ,(v_idx,4,v_value),(v_idx,5,v_value),(v_idx,6,v_value)
                ,(v_idx,7,v_value),(v_idx,8,v_value),(v_idx,9,v_value)
                ,(v_idx,100,v_value),(v_idx,101,v_value),(v_idx,102,v_value)
                ,(v_idx,103,v_value),(v_idx,104,v_value),(v_idx,105,v_value)
                ,(v_idx,106,v_value),(v_idx,107,v_value),(v_idx,201,v_value)
                ,(v_idx,202,v_value),(v_idx,203,v_value),(v_idx,204,v_value)
                ,(v_idx,205,v_value),(v_idx,206,v_value),(v_idx,207,v_value)
				,(v_idx,208,v_value);
              
              
			  END LOOP read_loop;

         CLOSE openCursor;
    
    
	COMMIT;
END main ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `migration_leagues` */;
DELIMITER ;;
CREATE DEFINER=`admin`@`%` PROCEDURE `migration_leagues`(
in_head_office_id varchar(45)
)
main : BEGIN
	
    DECLARE ret_code INT;
	DECLARE errno INT;
    DECLARE v_txt_error_msg text;
   
    declare h_idx bigint;
    
    DECLARE EXIT HANDLER FOR SQLEXCEPTION
    BEGIN
		GET CURRENT DIAGNOSTICS CONDITION 1 errno = MYSQL_ERRNO
		, v_txt_error_msg = MESSAGE_TEXT;
        set ret_code = -1000;
		SELECT ret_code,errno AS MYSQL_ERROR,v_txt_error_msg as MESSAGE_TEXT;
		ROLLBACK;
    END;
	START TRANSACTION;
    
		select member.idx
			into h_idx
		from member 
        where id = in_head_office_id;
                
		main_leagues : BEGIN
			declare v_id int; 
			declare v_bet_type int;
			declare v_name varchar(45); 
			declare v_display_name varchar(45);
			declare v_location_id int; 
			declare v_sport_id int ;
			declare v_season varchar(45); 
			declare v_lang varchar(4); 
			declare v_is_use tinyint; 
			declare v_deduction_refund_rate decimal(5,2); 
			declare v_is_margin_refund int; 
			declare v_dividend_rank int;
			declare v_my_league int; 
			declare v_quarter_time int; 
			declare v_image_path varchar(200); 
			declare v_input_refund_rate decimal(5,2);
            		
            declare l_name varchar(100);
		    declare l_is_use tinyint;
			DECLARE leagues_done INTEGER DEFAULT 0;
            declare l_bet_type int;
						
			DEClARE openCursor_leagues CURSOR FOR 
			SELECT a.id,a.bet_type,a.name,a.display_name,a.location_id
            ,a.sport_id,a.season,a.lang,a.is_use,a.deduction_refund_rate
            ,a.is_margin_refund,a.dividend_rank,a.my_league,a.quarter_time,a.image_path
            ,a.input_refund_rate
			FROM mydb_betgo.lsports_leagues as a
            LEFT JOIN main.lsports_leagues as b ON a.id = b.id 
            WHERE b.id is null group by a.id;
         			                        
			DECLARE CONTINUE HANDLER FOR NOT FOUND SET leagues_done = true;
            OPEN openCursor_leagues;
            
			leagues_loop: LOOP
				FETCH  openCursor_leagues INTO  
                v_id,v_bet_type,v_name,v_display_name,v_location_id
				,v_sport_id,v_season,v_lang,v_is_use,v_deduction_refund_rate
				,v_is_margin_refund,v_dividend_rank,v_my_league,v_quarter_time,v_image_path
				,v_input_refund_rate;
									  
				IF leagues_done THEN
					LEAVE leagues_loop;
				END IF;
                
                set l_name = v_name;
                
				
                
                IF 1 = v_is_use OR 2 = v_is_use THEN
					set l_is_use = 1;
                ELSE 
					set l_is_use = 2;
                END IF;
                
                IF 1 = v_bet_type THEN
					set l_bet_type = 2;
                ELSE 
					set l_bet_type = 1;
                END IF;
                                
				
				insert into lsports_leagues(id,name,location_id,sports_id,is_use) value(v_id,l_name,v_location_id,v_sport_id,l_is_use);
                
                          
             
			END LOOP leagues_loop;
			CLOSE openCursor_leagues;
                  
        END  main_leagues;
		select 'end_main_leagues';
        
        
      main_leagues_static : BEGIN
			declare v_id int; 
			declare v_bet_type int;
			declare v_name varchar(45); 
			declare v_display_name varchar(45);
			declare v_location_id int; 
			declare v_sport_id int ;
			declare v_season varchar(45); 
			declare v_lang varchar(4); 
			declare v_is_use tinyint; 
			declare v_deduction_refund_rate decimal(5,2); 
			declare v_is_margin_refund int; 
			declare v_dividend_rank int;
			declare v_my_league int; 
			declare v_quarter_time int; 
			declare v_image_path varchar(200); 
			declare v_input_refund_rate decimal(5,2);
            		
            declare l_name varchar(100);
		    declare l_is_use tinyint;
			DECLARE leagues_done_static INTEGER DEFAULT 0;
            declare l_bet_type int;
		    declare l_image_path varchar(200);
            
			DEClARE openCursor_leagues_static CURSOR FOR 
			SELECT a.id,a.bet_type,a.name,a.display_name,a.location_id
            ,a.sport_id,a.season,a.lang,a.is_use,a.deduction_refund_rate
            ,a.is_margin_refund,a.dividend_rank,a.my_league,a.quarter_time,a.image_path
            ,a.input_refund_rate
			FROM mydb_betgo.lsports_leagues as a
            LEFT JOIN static_origin.static_head_office_leagues_origin as b ON a.id = b.id 
            WHERE b.id is null;
         			                        
			DECLARE CONTINUE HANDLER FOR NOT FOUND SET leagues_done_static = true;
            OPEN openCursor_leagues_static;
            
			leagues_loop_static: LOOP
				FETCH  openCursor_leagues_static INTO  
                v_id,v_bet_type,v_name,v_display_name,v_location_id
				,v_sport_id,v_season,v_lang,v_is_use,v_deduction_refund_rate
				,v_is_margin_refund,v_dividend_rank,v_my_league,v_quarter_time,v_image_path
				,v_input_refund_rate;
									  
				IF leagues_done_static THEN
					LEAVE leagues_loop_static;
				END IF;
                
                IF '' = v_display_name or v_display_name is null then
					set l_name = v_name;
                ELSE 
					set l_name = v_display_name;
                END IF;
                
                IF 1 = v_is_use OR 2 = v_is_use THEN
					set l_is_use = 1;
                ELSE 
					set l_is_use = 2;
                END IF;
                
                IF 1 = v_bet_type THEN
					set l_bet_type = 2;
                ELSE 
					set l_bet_type = 1;
                END IF;
         
				SELECT image_path into l_image_path FROM static_origin.static_head_office_leagues_origin where id = v_id;
				
                
				IF 1 = l_is_use AND ('' = l_image_path OR l_image_path is null) THEN
				   insert into static_origin.static_head_office_leagues_origin(head_office_idx,id,game_type,location_id,sports_id
                   ,is_use,deduction_refund_rate,is_margin_refund,input_refund_rate,dividend_rank
                   ,display_name,`status`,image_path) value(2,v_id,l_bet_type,v_location_id,v_sport_id
                   ,l_is_use,v_deduction_refund_rate,v_is_margin_refund,v_input_refund_rate,v_dividend_rank
                   ,l_name,2,v_image_path);
                ELSEIF  1 = l_is_use THEN
                   insert into static_origin.static_head_office_leagues_origin(head_office_idx,id,game_type,location_id,sports_id
                   ,is_use,deduction_refund_rate,is_margin_refund,input_refund_rate,dividend_rank
                   ,display_name,`status`) value(2,v_id,l_bet_type,v_location_id,v_sport_id
                   ,l_is_use,v_deduction_refund_rate,v_is_margin_refund,v_input_refund_rate,v_dividend_rank
                   ,l_name,2);
                END IF;
             
			END LOOP leagues_loop_static;
			CLOSE openCursor_leagues_static;
                  
        END  main_leagues_static;
		select 'end_main_leagues_static';
        
		insert into static_head_office_leagues(head_office_idx,id,game_type,location_id,sports_id,is_use,deduction_refund_rate,is_margin_refund,input_refund_rate
        ,dividend_rank,image_path,display_name,`status`) 
        SELECT h_idx,id,game_type,location_id,sports_id,is_use,deduction_refund_rate,is_margin_refund,input_refund_rate
        ,dividend_rank,image_path,display_name,`status` FROM static_origin.static_head_office_leagues_origin;
	COMMIT;
END main ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `migration_participants` */;
DELIMITER ;;
CREATE DEFINER=`admin`@`%` PROCEDURE `migration_participants`(
in_head_office_id varchar(45)
)
main : BEGIN
	
    DECLARE ret_code INT;
	DECLARE errno INT;
    DECLARE v_txt_error_msg text;
   
    declare h_idx bigint;
    
    DECLARE EXIT HANDLER FOR SQLEXCEPTION
    BEGIN
		GET CURRENT DIAGNOSTICS CONDITION 1 errno = MYSQL_ERRNO
		, v_txt_error_msg = MESSAGE_TEXT;
        set ret_code = -1000;
		SELECT ret_code,errno AS MYSQL_ERROR,v_txt_error_msg as MESSAGE_TEXT;
		ROLLBACK;
    END;
	START TRANSACTION;
    
		select member.idx
			into h_idx
		from member 
        where id = in_head_office_id;
        
        
		main_participants : BEGIN
		 
            declare v_fp_id int;
            declare v_sports_id int;
            declare v_location_id int;
            declare v_league_id int;
            declare v_team_name varchar(100);
            declare v_display_name varchar(45);
            declare v_is_new tinyint;
            		
            declare l_name varchar(100);
			DECLARE participants_done INTEGER DEFAULT 0;
						
			DEClARE openCursor_participants CURSOR FOR 
			SELECT a.fp_id,a.sports_id,a.location_id,a.league_id,a.team_name,display_name,a.is_new
			FROM mydb_betgo.lsports_participant as a
            LEFT JOIN main.lsports_participant b ON a.fp_id = b.fp_id
			WHERE b.fp_id IS NULL;
         			                        
			DECLARE CONTINUE HANDLER FOR NOT FOUND SET participants_done = true;
            OPEN openCursor_participants;
			participants_loop: LOOP
				FETCH  openCursor_participants INTO  v_fp_id,v_sports_id,v_location_id,v_league_id,v_team_name,v_display_name,v_is_new;
									  
				IF participants_done THEN
					LEAVE participants_loop;
				END IF;
                
                set l_name = v_team_name;
                
                
                
				
				insert into lsports_participant(fp_id,sports_id,location_id,league_id,name,is_use) value(v_fp_id,v_sports_id,v_location_id,v_league_id,l_name,1);
                
				
			END LOOP participants_loop;
			CLOSE openCursor_participants;
                  
        END  main_participants;
        
        select 'end_main_participants';
        
        main_participants_static : BEGIN
		 
            declare v_fp_id int;
            declare v_sports_id int;
            declare v_location_id int;
            declare v_league_id int;
            declare v_team_name varchar(100);
            declare v_display_name varchar(45);
            declare v_is_new tinyint;
            		
                    
            declare l_name varchar(100);
            declare l_image_path varchar(200);
			DECLARE participants_done_static INTEGER DEFAULT 0;
						
			DEClARE openCursor_participants_static CURSOR FOR 
			SELECT a.fp_id,a.sports_id,a.location_id,a.league_id,a.team_name,a.display_name,a.is_new
			FROM mydb_betgo.lsports_participant as a
            LEFT JOIN static_origin.static_head_office_participants_origin b ON a.fp_id = b.fp_id
			WHERE b.fp_id IS NULL;
                     			                        
			DECLARE CONTINUE HANDLER FOR NOT FOUND SET participants_done_static = true;
            OPEN openCursor_participants_static;
			participants_loop_static: LOOP
				FETCH  openCursor_participants_static INTO  v_fp_id,v_sports_id,v_location_id,v_league_id,v_team_name,v_display_name,v_is_new;
									  
				IF participants_done_static THEN
					LEAVE participants_loop_static;
				END IF;
                
                IF '' = v_display_name or v_display_name is null then
					set l_name = v_team_name;
                ELSE 
					set l_name = v_display_name;
                END IF;
               	
                
                
				
				
                
					insert into static_origin.static_head_office_participants_origin(head_office_idx,fp_id,sports_id,location_id,league_id,display_name) value(2,v_fp_id,v_sports_id,v_location_id,v_league_id,l_name);
                
                
				
                
             
			END LOOP participants_loop_static;
			CLOSE openCursor_participants_static;
                  
        END  main_participants_static;
        select 'end_main_participants_static';
        
		insert into static_head_office_participants(head_office_idx,fp_id,sports_id,location_id,league_id,display_name,image_path) 
		SELECT h_idx,fp_id,sports_id,location_id,league_id,display_name,image_path FROM static_origin.static_head_office_participants_origin;
	COMMIT;
END main ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `migration_refund_rate` */;
DELIMITER ;;
CREATE DEFINER=`admin`@`%` PROCEDURE `migration_refund_rate`(
in_head_office_id varchar(45)
)
main : BEGIN
	DECLARE ret_code INT;
	DECLARE errno INT;
    DECLARE v_txt_error_msg text;
   
    declare h_idx bigint;
    DECLARE EXIT HANDLER FOR SQLEXCEPTION
    BEGIN
		GET CURRENT DIAGNOSTICS CONDITION 1 errno = MYSQL_ERRNO
		, v_txt_error_msg = MESSAGE_TEXT;
        set ret_code = -1000;
		SELECT ret_code,errno AS MYSQL_ERROR,v_txt_error_msg as MESSAGE_TEXT;
		ROLLBACK;
    END;
           
    START TRANSACTION;
    
    	select member.idx into h_idx
		from member 
        where id = in_head_office_id;
        
		main_sports_refund : BEGIN
            declare v_id int default 0;
            declare v_bet_type int default 0;
            declare v_is_use int default 0;
            declare v_input_refund_rate decimal(5,2) default 0.0;
            declare v_deduction_refund_rate decimal(5,2) default 0.0;
            declare v_is_margin_refund decimal(5,2) default 0.0;
			DECLARE done INTEGER DEFAULT 0;
        
			DEClARE openCursor CURSOR FOR SELECT id,bet_type,is_use,input_refund_rate
				,deduction_refund_rate,is_margin_refund
			FROM mydb_betgo.lsports_sports as bg_sp;
			
			DECLARE CONTINUE HANDLER FOR NOT FOUND SET done = true;
			
			OPEN openCursor;
			  read_loop: LOOP
				  FETCH openCursor INTO v_id,v_bet_type,v_is_use,v_input_refund_rate
                  ,v_deduction_refund_rate,v_is_margin_refund;
                                      
				   IF done THEN
					LEAVE read_loop;
				   END IF;
				  
                   if 1 = v_bet_type then
						set v_bet_type = 2;
                   else 
						set v_bet_type = 1;
				   end if;
				   
                   IF EXISTS(SELECT * from static_head_office_sports where head_office_idx = h_idx and id = v_id and game_type = v_bet_type) THEN
                        
						update static_head_office_sports set is_use = v_is_use,input_refund_rate = v_input_refund_rate
                        ,deduction_refund_rate = v_deduction_refund_rate,is_margin_refund = v_is_margin_refund where head_office_idx = h_idx and id = v_id and game_type = v_bet_type;
                   END IF;
                   
			  END LOOP read_loop;
			CLOSE openCursor;
        END main_sports_refund;
        
		main_leagues_refund : BEGIN
			declare v_id int default 0;
			declare v_bet_type int default 0;
            declare v_display_name varchar(45) default '';
            declare v_location_id int default 0;
			declare v_sport_id int default 0;
			declare v_is_use int default 0;
            declare v_dividend_rank int default 0;
			declare v_input_refund_rate decimal(5,2) default 0.0;
			declare v_deduction_refund_rate decimal(5,2) default 0.0;
			declare v_is_margin_refund decimal(5,2) default 0.0;
            
			DECLARE done INTEGER DEFAULT 0;
		
			DEClARE openCursor CURSOR FOR SELECT id,bet_type,display_name,location_id,sport_id
				,is_use,input_refund_rate,deduction_refund_rate,is_margin_refund,dividend_rank,input_refund_rate
			FROM mydb_betgo.lsports_leagues as bg_lg where bg_lg.is_use in (1);
			
			DECLARE CONTINUE HANDLER FOR NOT FOUND SET done = true;
			
			OPEN openCursor;
			  read_loop: LOOP
				  FETCH openCursor INTO v_id,v_bet_type,v_display_name,v_location_id,v_sport_id
				,v_is_use,v_input_refund_rate,v_deduction_refund_rate,v_is_margin_refund,v_dividend_rank,v_input_refund_rate;
									  
				   IF done THEN
					LEAVE read_loop;
				   END IF;
				  
                   set v_is_use = 1;
				   if 1 = v_bet_type then
						set v_bet_type = 2;
                   else 
						set v_bet_type = 1;
				   end if;
				   
				   IF EXISTS(SELECT * from static_head_office_leagues where head_office_idx = h_idx and id = v_id and game_type = v_bet_type and dividend_rank = v_dividend_rank) THEN
						update static_head_office_leagues set input_refund_rate = v_input_refund_rate
						,deduction_refund_rate = v_deduction_refund_rate,is_margin_refund = v_is_margin_refund where head_office_idx = h_idx and id = v_id and game_type = v_bet_type and dividend_rank = v_dividend_rank;
                   END IF;
				END LOOP read_loop;
			CLOSE openCursor;
		END main_leagues_refund;
                
        main_market_refund : BEGIN
			declare v_sports_id int default 0;
            declare v_league_id int default 0;
            declare v_market_id int default 0;
			declare v_bet_type int default 0;
            declare v_refund_rate decimal(5,2) default 0.0;
        	declare v_deduction_refund_rate decimal(5,2) default 0.0;
			declare v_is_margin_refund decimal(5,2) default 0.0;    
			
			DECLARE done INTEGER DEFAULT 0;
		
			DEClARE openCursor CURSOR FOR SELECT sports_id,league_id,market_id,bet_type,refund_rate,deduction_refund_rate,is_margin_refund
			FROM mydb_betgo.lsports_refund_rate_market as bg_mk;
			
			DECLARE CONTINUE HANDLER FOR NOT FOUND SET done = true;
			
			OPEN openCursor;
			  read_loop: LOOP
				  FETCH openCursor INTO v_sports_id,v_league_id,v_market_id,v_bet_type,v_refund_rate,v_deduction_refund_rate,v_is_margin_refund;
									  
				   IF done THEN
					LEAVE read_loop;
				   END IF;
				  
				   if 1 = v_bet_type then
						set v_bet_type = 2;
                   else 
						set v_bet_type = 1;
				   end if;
				   
				   IF EXISTS(SELECT * from static_head_office_refund_rate_market where head_office_idx = h_idx and sports_id = v_sports_id and league_id = v_league_id 
						and market_id = v_market_id and game_type = v_bet_type) THEN
						update static_head_office_refund_rate_market set refund_rate = v_refund_rate
						,deduction_refund_rate = v_deduction_refund_rate,is_margin_refund = v_is_margin_refund where head_office_idx = h_idx and sports_id = v_sports_id and league_id = v_league_id 
						and market_id = v_market_id and game_type = v_bet_type;
				   ELSE
						insert into static_head_office_refund_rate_market(head_office_idx,sports_id,league_id,market_id,game_type
                        ,refund_rate,deduction_refund_rate,is_margin_refund) 
                        value(h_idx,v_sports_id,v_league_id,v_market_id,v_bet_type
                        ,v_refund_rate,v_deduction_refund_rate,v_is_margin_refund);
                   END IF;
                                      
				END LOOP read_loop;
			CLOSE openCursor;
		END main_market_refund;
	COMMIT;
END main ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `migration_tt` */;
DELIMITER ;;
CREATE DEFINER=`admin`@`%` PROCEDURE `migration_tt`(
in_head_office_id varchar(45)
)
main : BEGIN

	DECLARE ret_code INT;
	DECLARE errno INT;
    DECLARE v_txt_error_msg text;
 
    
    declare h_idx bigint;
    declare h_password varchar(512);
	declare h_second_password varchar(512);
	declare h_domain varchar(100);
    
    DECLARE EXIT HANDLER FOR SQLEXCEPTION
    BEGIN
		GET CURRENT DIAGNOSTICS CONDITION 1 errno = MYSQL_ERRNO
		, v_txt_error_msg = MESSAGE_TEXT;
        set ret_code = -1000;
		SELECT ret_code,errno AS MYSQL_ERROR,v_txt_error_msg as MESSAGE_TEXT;
		ROLLBACK;
    END;
           
    START TRANSACTION;
		
		select member.idx,member.`password`,member.second_password,partner_detail_info.partner_domain 
			into h_idx,h_password,h_second_password,h_domain
		from member 
			left join partner_detail_info on member.idx = partner_detail_info.partner_idx
        where id = in_head_office_id;
        
        main_partner : BEGIN
        
		DECLARE v_idx bigint;
		DECLARE v_id varchar(45);
		declare v_charge_first_per int;
		DECLARE v_password varchar(200);
		DECLARE v_nick_name varchar(45);
		DECLARE v_u_business int;
		declare v_money int;
		declare v_point int;
		declare v_call varchar(45);
		
		DECLARE v_is_recommend enum('Y','N');
		DECLARE v_status int;
		DECLARE v_level int;
		DECLARE v_auto_level enum('Y','N');
		
		DECLARE v_last_login datetime;
		DECLARE v_recommend_code varchar(45);
		DECLARE v_recommend_member int;
		
		DECLARE v_account_number varchar(45);
		DECLARE v_account_name varchar(45);
		DECLARE v_account_bank varchar(45);
		
		DECLARE v_exchange_password varchar(200);
		
		DECLARE v_is_monitor enum('Y','N');
		DECLARE v_is_monitor_charge enum('Y','N');
		DECLARE v_is_monitor_security enum('Y','N');
		DECLARE v_is_monitor_bet enum('Y','N');
		
		DECLARE v_dis_id varchar(45);
		
		DECLARE v_reg_time varchar(45);
		DECLARE v_reg_first_charge varchar(45);
		DECLARE v_birth varchar(45);
		DECLARE v_mobile_carrier int;
		DECLARE v_g_point int;
		DECLARE v_g_money int;
        
		declare v_bet_pre_s_fee decimal(7,2) default 0.0;
		declare v_bet_pre_d_fee decimal(7,2) default 0.0;
		declare v_bet_real_s_fee decimal(7,2) default 0.0;
		declare v_bet_real_d_fee decimal(7,2) default 0.0;
		declare v_bet_mini_fee decimal(7,2) default 0.0;
		declare v_pre_s_fee decimal(7,2) default 0.0;
		declare v_bet_casino_fee decimal(7,2) default 0.0;
		declare v_bet_slot_fee decimal(7,2) default 0.0;
		declare v_bet_win_mini_fee decimal(7,2)  default 0.0;
		declare v_bet_win_casino_fee decimal(7,2) default 0.0;
		declare v_bet_win_slot_fee decimal(7,2) default 0.0;
		declare v_bet_lose_mini_fee decimal(7,2) default 0.0;
		declare v_bet_lose_casino_fee decimal(7,2) default 0.0;
		declare v_bet_lose_slot_fee decimal(7,2) default 0.0;
    
		declare l_idx bigint default 0;
		declare l_partner_type int default 0;
		declare l_bank_id int default 0;
	   
		declare l_sales_idx bigint default 0;
		declare l_low_sales_idx bigint default 0;
		declare l_dist_idx bigint default 0;
		declare l_shop_idx bigint default 0;
        
		declare l_pt_idx bigint default 0;
        DECLARE done INTEGER DEFAULT 0;
        
        DEClARE openCursor CURSOR FOR SELECT bg_mb.idx,bg_mb.id,bg_mb.charge_first_per,bg_mb.`password`
		,bg_mb.nick_name,bg_mb.u_business,bg_mb.money
		,bg_mb.`point`,bg_mb.`call`,bg_mb.is_recommend
		,bg_mb.`status`,bg_mb.`level`,bg_mb.auto_level
		,bg_mb.last_login,bg_mb.recommend_code,bg_mb.recommend_member
		,bg_mb.account_number,bg_mb.account_name,bg_mb.account_bank
		,bg_mb.exchange_password,bg_mb.is_monitor,bg_mb.is_monitor_charge
		,bg_mb.is_monitor_security,bg_mb.is_monitor_bet,bg_mb.dis_id
		,bg_mb.reg_time,bg_mb.reg_first_charge,bg_mb.birth
		,bg_mb.mobile_carrier,bg_mb.g_point,bg_mb.g_money
		FROM mydb_betgo.member as bg_mb where bg_mb.u_business <> 1 order by bg_mb.u_business asc;
        
        DECLARE CONTINUE HANDLER FOR NOT FOUND SET done = true;
        
        OPEN openCursor;
			  read_loop: LOOP
				  FETCH openCursor INTO  v_idx,v_id ,v_charge_first_per ,v_password
                    ,v_nick_name,v_u_business,v_money
                    ,v_point , v_call, v_is_recommend
                    ,v_status,v_level,v_auto_level
                    ,v_last_login,v_recommend_code,v_recommend_member
					,v_account_number,v_account_name,v_account_bank
                    ,v_exchange_password,v_is_monitor,v_is_monitor_charge
                    ,v_is_monitor_security,v_is_monitor_bet,v_dis_id
                    , v_reg_time,v_reg_first_charge,v_birth
					,v_mobile_carrier,v_g_point,v_g_money;
                                      
				   IF done THEN
                      
					LEAVE read_loop;
				   END IF;
                 
				   set l_idx = 0;
				   set l_partner_type = 0;
				   set l_bank_id = 0;
				   set l_sales_idx = 0;
				   set l_low_sales_idx = 0;
				   set l_dist_idx = 0;
				   set l_shop_idx = 0;
				   set l_pt_idx = 0;
                   
                   IF 10 = v_u_business THEN
					set l_partner_type = 301;
                    set l_pt_idx = h_idx;
				   ELSEIF 11 = v_u_business THEN
                    set l_partner_type = 401;
					 IF EXISTS(SELECT * from member where id = v_dis_id) THEN
                      select idx into l_pt_idx from member where id = v_dis_id;
                     END IF;
				   ELSEIF 12 = v_u_business THEN
					set l_partner_type = 501;
                     IF EXISTS(SELECT * from member where id = v_dis_id) THEN
                      select idx into l_pt_idx from member where id = v_dis_id;
                     END IF;
				   END IF;
                   
                   IF v_birth is null then
					set v_birth = '';
                   END IF;
                   
                   IF v_last_login is null THEN
                    set v_last_login = '';
                   END IF; 
                   
                   insert into member (
                   id,nick_name,temp_password,second_password,partner_type
                   ,money,`point`,hp,is_recommend,`status`
                   ,`level`,is_auto_level_up,last_login,temp_dis_id,reg_time
                   ,birth,mobile_carrier,member_type,id_color,parent_partner_idx)
					value(v_id,v_nick_name,v_password,h_second_password,l_partner_type
                    ,v_money,v_point,v_call,'N',v_status
                    ,v_level,'N',v_last_login,v_dis_id,v_reg_time
                    ,v_birth,v_mobile_carrier,'partner','#646464',l_pt_idx
                    );
					
				   set l_idx = last_insert_id();
					
				   update member set head_office_idx = h_idx,unique_id = concat(v_id,'_',h_idx) where idx = l_idx;
                
                   set l_bank_id = 0;
				   IF EXISTS(SELECT * FROM main.static_account where account_code = v_account_bank) THEN
					   SELECT bank_id into l_bank_id FROM main.static_account where account_code = v_account_bank;

					   IF v_account_name is null THEN
						set v_account_name = '';
					   END IF;
					   
					   IF v_account_number is null THEN
						set v_account_number = '';
					   END IF;
					   
					   IF v_exchange_password is null THEN
						set v_exchange_password = '';
					   END IF;
					   
					   insert into partner_bank(partner_idx,account_bank_id,account_name,account_number,exchange_password)
						value(l_idx,l_bank_id,v_account_name,v_account_number,v_exchange_password);
				   END IF;
                   
                    IF EXISTS(SELECT * FROM mydb_betgo.t_member_memo where member_idx = v_idx) THEN
					   insert into member_memo(member_idx,type,content,a_id,reg_time) 
						SELECT l_idx,m_type,content,a_id,reg_time FROM mydb_betgo.t_member_memo where member_idx = v_idx;
					END IF;
                   
                   IF h_domain is null THEN
					set h_domain = '';
                   END IF;
                   
                   insert into member_admin_domain(partner_idx,domain,id) value (l_idx,h_domain,v_id);
                   
				   
                   
                   IF EXISTS(SELECT * from mydb_betgo.shop_config where member_idx = v_idx) THEN
					   select  bet_pre_s_fee,bet_pre_d_fee,bet_real_s_fee
					   ,bet_real_d_fee,bet_mini_fee,pre_s_fee
					   ,bet_casino_fee,bet_slot_fee,bet_win_mini_fee
					   ,bet_win_casino_fee,bet_win_slot_fee,bet_lose_mini_fee
					   ,bet_lose_casino_fee,bet_lose_slot_fee
					   into v_bet_pre_s_fee,v_bet_pre_d_fee,v_bet_real_s_fee
					   ,v_bet_real_d_fee,v_bet_mini_fee,v_pre_s_fee
					   ,v_bet_casino_fee,v_bet_slot_fee,v_bet_win_mini_fee
					   ,v_bet_win_casino_fee,v_bet_win_slot_fee,v_bet_lose_mini_fee
					   ,v_bet_lose_casino_fee,v_bet_lose_slot_fee from mydb_betgo.shop_config where member_idx = v_idx;
					   
					   insert into partner_rates(partner_idx,rate_type,value) select l_idx,type,0 from static_rates; 
					   
					   update partner_rates set value = v_bet_pre_s_fee where partner_idx = l_idx and rate_type = 2;
					   update partner_rates set value = v_bet_pre_d_fee where partner_idx = l_idx and rate_type = 3;
					   update partner_rates set value = v_bet_real_s_fee where partner_idx = l_idx and rate_type = 4;
					   update partner_rates set value = v_bet_real_d_fee where partner_idx = l_idx and rate_type = 5;
					   update partner_rates set value = v_bet_mini_fee where partner_idx = l_idx and rate_type = 6;
					   update partner_rates set value = v_bet_mini_fee where partner_idx = l_idx and rate_type = 7;
					   
					   update partner_rates set value = v_pre_s_fee where partner_idx = l_idx and rate_type = 1;
					   
					   update partner_rates set value = v_bet_casino_fee where partner_idx = l_idx and rate_type = 8;
					   update partner_rates set value = v_bet_slot_fee where partner_idx = l_idx and rate_type = 9;
										  
					   update partner_rates set value = v_bet_win_mini_fee where partner_idx = l_idx and rate_type = 205;
					   update partner_rates set value = v_bet_win_mini_fee where partner_idx = l_idx and rate_type = 206;
					   
					   update partner_rates set value = v_bet_win_casino_fee where partner_idx = l_idx and rate_type = 207;
					   update partner_rates set value = v_bet_win_slot_fee where partner_idx = l_idx and rate_type = 208;
										  
					   update partner_rates set value = v_bet_lose_mini_fee where partner_idx = l_idx and rate_type = 104;
					   update partner_rates set value = v_bet_lose_mini_fee where partner_idx = l_idx and rate_type = 105;
					   
					   update partner_rates set value = v_bet_lose_casino_fee where partner_idx = l_idx and rate_type = 106;
					   update partner_rates set value = v_bet_lose_slot_fee where partner_idx = l_idx and rate_type = 107;
                   END IF;
                   
                    
				   IF 10 = v_u_business THEN
                       
						set l_low_sales_idx = create_partner(h_idx
						,v_id
						,'부본'
						,l_idx
						,401
						,h_domain 
						,h_password 
						,h_second_password
						);
                        
                        set l_dist_idx = create_partner(h_idx
						,v_id
						,'총판'
						,l_low_sales_idx
						,501
						,h_domain 
						,h_password 
						,h_second_password
						);
                        
					    set l_shop_idx = create_partner(h_idx
						,v_id
						,'매장'
						,l_dist_idx
						,601
						,h_domain 
						,h_password 
						,h_second_password
						);
					
				   ELSEIF 11 = v_u_business THEN
                     set l_dist_idx = create_partner(h_idx
						,v_id
						,'총판'
						,l_idx
						,501
						,h_domain 
						,h_password 
						,h_second_password
						);
                        
					    set l_shop_idx = create_partner(h_idx
						,v_id
						,'매장'
						,l_dist_idx
						,601
						,h_domain 
						,h_password 
						,h_second_password
						);
				   ELSEIF 12 = v_u_business THEN
					    set l_shop_idx = create_partner(h_idx
						,v_id
						,'매장'
						,l_idx
						,601
						,h_domain 
						,h_password 
						,h_second_password
						);
				   END IF;
                   
                   update member set temp_shop_idx = l_shop_idx where idx = l_idx;
                   
                   
                   
                   
                   
			              
			  END LOOP read_loop;
	    CLOSE openCursor;
        END main_partner;
        
      
        main_member : BEGIN
        DECLARE v_idx bigint;
		DECLARE v_id varchar(45);
		declare v_charge_first_per int;
		DECLARE v_password varchar(200);
		DECLARE v_nick_name varchar(45);
		DECLARE v_u_business int;
		declare v_money int;
		declare v_point int;
		declare v_call varchar(45);
		
		DECLARE v_is_recommend enum('Y','N');
		DECLARE v_status int;
		DECLARE v_level int;
		DECLARE v_auto_level enum('Y','N');
		
		DECLARE v_last_login datetime;
		DECLARE v_recommend_code varchar(45);
		DECLARE v_recommend_member int;
		
		DECLARE v_account_number varchar(45);
		DECLARE v_account_name varchar(45);
		DECLARE v_account_bank varchar(45);
		
		DECLARE v_exchange_password varchar(200);
		
		DECLARE v_is_monitor enum('Y','N');
		DECLARE v_is_monitor_charge enum('Y','N');
		DECLARE v_is_monitor_security enum('Y','N');
		DECLARE v_is_monitor_bet enum('Y','N');
		
		DECLARE v_dis_id varchar(45);
		
		DECLARE v_reg_time varchar(45);
		DECLARE v_reg_first_charge varchar(45);
		DECLARE v_birth varchar(45);
		DECLARE v_mobile_carrier int;
		DECLARE v_g_point int;
		DECLARE v_g_money int;
        	    
		declare l_idx bigint default 0;
		declare l_partner_type int default 0;
		declare l_bank_id int default 0;
	   	        
		declare l_pt_idx bigint default 0;
        declare l_charge_first_per enum('Y','N') default 'N';
		declare l_reg_first_charge enum('Y','N') default 'N';
		declare l_member_type varchar(20) default 'player';
        DECLARE done INTEGER DEFAULT 0;
        
        DEClARE openCursor_mb CURSOR FOR SELECT bg_mb.idx,bg_mb.id,bg_mb.charge_first_per,bg_mb.`password`
		,bg_mb.nick_name,bg_mb.u_business,bg_mb.money
		,bg_mb.`point`,bg_mb.`call`,bg_mb.is_recommend
		,bg_mb.`status`,bg_mb.`level`,bg_mb.auto_level
		,bg_mb.last_login,bg_mb.recommend_code,bg_mb.recommend_member
		,bg_mb.account_number,bg_mb.account_name,bg_mb.account_bank
		,bg_mb.exchange_password,bg_mb.is_monitor,bg_mb.is_monitor_charge
		,bg_mb.is_monitor_security,bg_mb.is_monitor_bet,bg_mb.dis_id
		,bg_mb.reg_time,bg_mb.reg_first_charge,bg_mb.birth
		,bg_mb.mobile_carrier,bg_mb.g_point,bg_mb.g_money
		FROM mydb_betgo.member as bg_mb where bg_mb.u_business = 1;
    
        DECLARE CONTINUE HANDLER FOR NOT FOUND SET done = true;
        
        OPEN openCursor_mb;
			  mb_read_loop: LOOP
				  FETCH openCursor_mb INTO  v_idx,v_id,v_charge_first_per,v_password
                    ,v_nick_name,v_u_business,v_money
                    ,v_point,v_call,v_is_recommend
                    ,v_status,v_level,v_auto_level
                    ,v_last_login,v_recommend_code,v_recommend_member
					,v_account_number,v_account_name,v_account_bank
                    ,v_exchange_password,v_is_monitor,v_is_monitor_charge
                    ,v_is_monitor_security,v_is_monitor_bet,v_dis_id
                    ,v_reg_time,v_reg_first_charge,v_birth
					,v_mobile_carrier,v_g_point,v_g_money;
                                      
				   IF done THEN
                    
					LEAVE mb_read_loop;
				   END IF;
                   
				   set l_idx = 0;
				   set l_partner_type = 0;
				   set l_bank_id = 0;
	   	           set l_pt_idx  =  0;
				   set l_charge_first_per  =  'N';
				   set l_reg_first_charge  = 'N';
				   set l_member_type  =  'player';
        
				   IF EXISTS(SELECT * from member where id = v_dis_id) THEN
					select temp_shop_idx into l_pt_idx from member where id = v_dis_id;
                   END IF;
                   IF v_birth is null then
					set v_birth = '';
                   END IF;
                   
                   IF v_last_login is null THEN
                    set v_last_login = '';
                   END IF; 
                   
                   
                   if 9 = v_level then
					set l_member_type = 'tester';
                   end if;
                   
                   set v_money = 0;
                   set v_point = 0;
                   
                   insert into member (
                   id,nick_name,temp_password,second_password,partner_type
                   ,money,`point`,hp,is_recommend,`status`
                   ,`level`,is_auto_level_up,last_login,temp_dis_id,reg_time
                   ,birth,mobile_carrier,member_type,id_color,temp_recommend_idx,parent_partner_idx)
					value(v_id,v_nick_name,v_password,h_second_password,10001
                    ,v_money,v_point,v_call,v_is_recommend,v_status
                    ,v_level,v_auto_level,v_last_login,v_dis_id,v_reg_time
                    ,v_birth,v_mobile_carrier,l_member_type,'#646464',v_recommend_member,l_pt_idx
                    );
					
				   set l_idx = last_insert_id();
					
				   update member set head_office_idx = h_idx,unique_id = concat(v_id,'_',h_idx) where idx = l_idx;
                
                   set l_bank_id = 0;
                   IF EXISTS(SELECT * FROM main.static_account where account_code = v_account_bank) THEN
					   SELECT bank_id into l_bank_id FROM main.static_account where account_code = v_account_bank;

					   IF v_account_name is null THEN
						set v_account_name = '';
					   END IF;
					   
					   IF v_account_number is null THEN
						set v_account_number = '';
					   END IF;
					   
					   IF v_exchange_password is null THEN
						set v_exchange_password = '';
					   END IF;
					   
					   
					   insert into member_bank(member_idx,account_bank_id,account_name,account_number,exchange_password)
						value(l_idx,l_bank_id,v_account_name,v_account_number,v_exchange_password);
				   END IF;
                   
                    IF EXISTS(SELECT * FROM mydb_betgo.t_member_memo where member_idx = v_idx) THEN
					   insert into member_memo(member_idx,type,content,a_id,reg_time) 
						SELECT l_idx,m_type,content,a_id,reg_time FROM mydb_betgo.t_member_memo where member_idx = v_idx;
                    END IF;
                   
                   IF 0 = v_charge_first_per THEN
					set l_charge_first_per = 'N';
                   END IF;
                   
                   IF 0 = v_reg_first_charge THEN
					set l_reg_first_charge = 'N';
                   END IF;
                   
                   IF null = v_charge_first_per THEN
					set l_charge_first_per = 'N';
                   END IF;
                   
                   IF null = v_reg_first_charge THEN
					set l_reg_first_charge = 'N';
                   END IF;
                                      
				   insert into member_event_charge(member_idx,first_register_charge,first_charge)
					value(l_idx,l_reg_first_charge,l_charge_first_per);
                  
                   
                   main_2 : BEGIN
                        
                        DECLARE v_game_type int DEFAULT 0;
						DECLARE v_status enum('ON','OFF');
                        DECLARE gt_done INTEGER DEFAULT 0;
                        
                        DECLARE l_name varchar(64);
                        declare l_type int ;
						DEClARE openCursor_bet CURSOR FOR 
						SELECT bg_mb_gt.game_type,bg_mb_gt.`status`
						FROM mydb_betgo.member_game_type as bg_mb_gt 
                        WHERE bg_mb_gt.member_idx = v_idx and bg_mb_gt.game_type not in(5,11,12,13,16,21);
                        
    					DECLARE CONTINUE HANDLER FOR NOT FOUND SET gt_done = true;
						
                        OPEN openCursor_bet;
							bet_read_loop: LOOP
								FETCH  openCursor_bet INTO  v_game_type,v_status;
													  
								IF gt_done THEN
                                    
									LEAVE bet_read_loop;
							    END IF;
                                
                                IF 1 = v_game_type then
									set l_type = 1;
                                ELSEIF 2 = v_game_type then
									set l_type = 2;
								ELSEIF 3 = v_game_type then
									set l_type = 10;                        
                                ELSEIF 4 = v_game_type then
									set l_type = 11;        
                                ELSEIF 6 = v_game_type then
									set l_type = 207;
                                ELSEIF 7 = v_game_type then
									set l_type = 208;    
							    ELSEIF 8 = v_game_type then
									set l_type = 101;    
                                ELSEIF 9 = v_game_type then
									set l_type = 300;
                                ELSEIF 10 = v_game_type then
									set l_type = 301;      

                                ELSEIF 14 = v_game_type then
									set l_type = 12;      
								ELSEIF 15 = v_game_type then
									set l_type = 201;      
                                    
                                ELSEIF 50 = v_game_type then
									set l_type = 105;       
                                ELSEIF 51 = v_game_type then
									set l_type = 108;       
                                ELSEIF 52 = v_game_type then
									set l_type = 202;       
                                ELSEIF 53 = v_game_type then
									set l_type = 203;           
                                ELSEIF 54 = v_game_type then
									set l_type = 204;       
                                ELSEIF 55 = v_game_type then
									set l_type = 205;       
                                ELSEIF 56 = v_game_type then
									set l_type = 206;
                                    
                                ELSEIF 57 = v_game_type then
									set l_type = 209;       
                                ELSEIF 58 = v_game_type then
									set l_type = 210;       
                                    
                                ELSEIF 59 = v_game_type then
									set l_type = 211;       
                                ELSEIF 60 = v_game_type then
									set l_type = 212;       
                                ELSEIF 61 = v_game_type then
									set l_type = 213;      
                                    
                                ELSEIF 62 = v_game_type then
									set l_type = 217;       
                                    
                                ELSEIF 63 = v_game_type then
									set l_type = 214;       
                                ELSEIF 64 = v_game_type then
									set l_type = 215;       
                                ELSEIF 65 = v_game_type then
									set l_type = 216;  
                                    
                                ELSEIF 66 = v_game_type then
									set l_type = 102;     
                                    
                                ELSEIF 67 = v_game_type then
									set l_type = 104;       
                                ELSEIF 68 = v_game_type then
									set l_type = 103;
                                    
                                ELSEIF 69 = v_game_type then
									set l_type = 109;
                                    
                                ELSEIF 70 = v_game_type then
									set l_type = 106;
                                    
							    ELSEIF 71 = v_game_type then
									set l_type = 107; 
                                    
							    ELSEIF 72 = v_game_type then
									set l_type = 13;
                                ELSEIF 73 = v_game_type then
									set l_type = 3;           
                                end if;
                                
                                IF 'ON' = v_status then
									set v_status = 'OFF';
                                else
									set v_status = 'ON';
                                end if;
                                
                             
                                
								select name into l_name from static_game_betting_type_mgr where id = l_type;
								insert into member_game_betting_type_info(id,member_idx,name,status) value(l_type,l_idx,l_name,v_status);
                                
							END LOOP bet_read_loop;
					    CLOSE openCursor_bet;
                   END main_2;
                   
                   
                   insert into member_status_security(member_idx,type,is_monitor)
					values(l_idx,1,v_is_monitor)
                    ,(l_idx,2,v_is_monitor_charge)
                    ,(l_idx,3,v_is_monitor_security)
                    ,(l_idx,4,v_is_monitor_bet);
                   
                   
                    IF EXISTS(SELECT * FROM mydb_betgo.personal_account_number where member_idx = v_idx) THEN
						insert into personal_account_number(member_idx,account_number_1,account_name_1,account_bank_id_1
						,account_number_2,account_name_2,account_bank_id_2) 
						SELECT l_idx
						,mydb_betgo.personal_account_number.account_number_1 ,mydb_betgo.personal_account_number.account_name_1, sa_1.bank_id
						,mydb_betgo.personal_account_number.account_number_2 ,mydb_betgo.personal_account_number.account_name_2, sa_2.bank_id
						FROM mydb_betgo.personal_account_number 
						left join static_account as sa_1 on sa_1.account_code = mydb_betgo.personal_account_number.account_bank_1
						left join static_account as sa_2 on sa_2.account_code = mydb_betgo.personal_account_number.account_bank_2
						where member_idx = v_idx;
                    END IF;
                    
                    main_total_info : BEGIN
						declare v_charge_total_count int;
                        declare v_charge_total_money bigint;
                        declare v_exchange_total_count int;
                        declare v_exchange_total_money bigint;
                        declare v_bet_total_count int; 
						declare	v_bet_total_money bigint;
                        declare v_pre_s_total_money bigint;
						declare v_pre_m_total_money bigint;
						declare v_real_s_total_money bigint;
						declare v_real_m_total_money bigint; 
						declare v_mini_total_money bigint; 
						declare v_casino_total_money bigint; 
						declare v_slot_total_money bigint; 
						declare v_take_total_money bigint; 
						declare v_take_slot_total_money bigint ;
						declare v_take_casino_total_money bigint; 
						declare v_take_mini_total_money bigint; 
						declare v_take_real_m_total_money bigint; 
						declare v_take_real_s_total_money bigint; 
						declare v_take_pre_m_total_money bigint; 
						declare v_take_pre_s_total_money bigint;
                        declare v_vir_total_money bigint; 
						declare v_take_vir_total_money bigint;
						IF EXISTS(SELECT * from mydb_betgo.total_member_cash where member_idx = v_idx) THEN
							select charge_total_count,charge_total_money ,exchange_total_count,exchange_total_money
							,bet_total_count,bet_total_money,pre_s_total_money,pre_m_total_money
							,real_s_total_money,real_m_total_money,mini_total_money,casino_total_money
							,slot_total_money,take_total_money,take_slot_total_money,take_casino_total_money
							,take_mini_total_money,take_real_m_total_money,take_real_s_total_money,take_pre_m_total_money
							,take_pre_s_total_money,vir_total_money,take_vir_total_money
							into 
							v_charge_total_count,v_charge_total_money,v_exchange_total_count,v_exchange_total_money
							,v_bet_total_count,v_bet_total_money,v_pre_s_total_money,v_pre_m_total_money
							,v_real_s_total_money,v_real_m_total_money,v_mini_total_money,v_casino_total_money
							,v_slot_total_money,v_take_total_money,v_take_slot_total_money,v_take_casino_total_money
							,v_take_mini_total_money,v_take_real_m_total_money,v_take_real_s_total_money,v_take_pre_m_total_money
							,v_take_pre_s_total_money,v_vir_total_money,v_take_vir_total_money
							from mydb_betgo.total_member_cash where member_idx = v_idx;
							
							insert into statistic_member_comprehensive_details(member_idx,total_charge,total_exchange,total_charge_count,total_exchange_count
							,total_bet_count,total_bet,total_win_bet,total_one_prematch_bet,total_one_prematch_win_bet
							,total_multi_prematch_bet ,total_multi_prematch_win_bet,total_one_inplay_bet ,total_one_inplay_win_bet 
							,total_multi_inplay_bet ,total_multi_inplay_win_bet,total_casino_bet ,total_casino_win_bet
							,total_slot_bet ,total_slot_win_bet ) 
							value(l_idx,v_charge_total_money,v_exchange_total_money,v_charge_total_count,v_exchange_total_count
							,v_bet_total_count,v_bet_total_money,v_take_total_money,v_pre_s_total_money,v_take_pre_s_total_money
							,v_pre_m_total_money,v_take_pre_m_total_money,v_real_s_total_money,v_take_real_s_total_money
							,v_real_m_total_money,v_take_real_m_total_money,v_casino_total_money,v_take_casino_total_money
							,v_slot_total_money,v_take_slot_total_money);
                        END IF;
                        
                    END main_total_info;
                   
                  
			  END LOOP mb_read_loop;
        CLOSE openCursor_mb;
        END main_member;
       
      
      
	COMMIT;
END main ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `migration_tt_bets` */;
DELIMITER ;;
CREATE DEFINER=`admin`@`%` PROCEDURE `migration_tt_bets`(
in_head_office_id varchar(45)
)
main : BEGIN

	DECLARE ret_code INT;
	DECLARE errno INT;
    DECLARE v_txt_error_msg text;
     
    declare h_idx bigint;
    
    declare h_password varchar(512);
	declare h_second_password varchar(512);
	declare h_domain varchar(100);
    
    DECLARE EXIT HANDLER FOR SQLEXCEPTION
    BEGIN
		GET CURRENT DIAGNOSTICS CONDITION 1 errno = MYSQL_ERRNO
		, v_txt_error_msg = MESSAGE_TEXT;
        set ret_code = -1000;
		SELECT ret_code,errno AS MYSQL_ERROR,v_txt_error_msg as MESSAGE_TEXT;
		ROLLBACK;
    END;
           
    START TRANSACTION;
		
		select member.idx,member.`password`,member.second_password,partner_detail_info.partner_domain 
			into h_idx,h_password,h_second_password,h_domain
		from member 
			left join partner_detail_info on member.idx = partner_detail_info.partner_idx
        where id = in_head_office_id;
        
        main_partner : BEGIN
		
		DECLARE v_idx bigint;
		DECLARE v_id varchar(45);
		declare v_charge_first_per int;
		DECLARE v_password varchar(200);
		DECLARE v_nick_name varchar(45);
		DECLARE v_u_business int;
		declare v_money int;
		declare v_point int;
		declare v_call varchar(45);
		
		DECLARE v_is_recommend enum('Y','N');
		DECLARE v_status int;
		DECLARE v_level int;
		DECLARE v_auto_level enum('Y','N');
		
		DECLARE v_last_login datetime;
		DECLARE v_recommend_code varchar(45);
		DECLARE v_recommend_member int;
		
		DECLARE v_account_number varchar(45);
		DECLARE v_account_name varchar(45);
		DECLARE v_account_bank varchar(45);
		
		DECLARE v_exchange_password varchar(200);
		
		DECLARE v_is_monitor enum('Y','N');
		DECLARE v_is_monitor_charge enum('Y','N');
		DECLARE v_is_monitor_security enum('Y','N');
		DECLARE v_is_monitor_bet enum('Y','N');
		
		DECLARE v_dis_id varchar(45);
		
		DECLARE v_reg_time varchar(45);
		DECLARE v_reg_first_charge varchar(45);
		DECLARE v_birth varchar(45);
		DECLARE v_mobile_carrier int;
		-- DECLARE v_g_point int;
		-- DECLARE v_g_money int;
        
		declare v_bet_pre_s_fee decimal(7,2) default 0.0;
		declare v_bet_pre_d_fee decimal(7,2) default 0.0;
		declare v_bet_real_s_fee decimal(7,2) default 0.0;
		declare v_bet_real_d_fee decimal(7,2) default 0.0;
		declare v_bet_mini_fee decimal(7,2) default 0.0;
		declare v_pre_s_fee decimal(7,2) default 0.0;
		declare v_bet_casino_fee decimal(7,2) default 0.0;
		declare v_bet_slot_fee decimal(7,2) default 0.0;
		declare v_bet_win_mini_fee decimal(7,2)  default 0.0;
		declare v_bet_win_casino_fee decimal(7,2) default 0.0;
		declare v_bet_win_slot_fee decimal(7,2) default 0.0;
		declare v_bet_lose_mini_fee decimal(7,2) default 0.0;
		declare v_bet_lose_casino_fee decimal(7,2) default 0.0;
		declare v_bet_lose_slot_fee decimal(7,2) default 0.0;
    
		declare l_idx bigint default 0;
		declare l_partner_type int default 0;
		declare l_bank_id int default 0;
	   
		declare l_sales_idx bigint default 0;
		declare l_low_sales_idx bigint default 0;
		declare l_dist_idx bigint default 0;
		declare l_shop_idx bigint default 0;
        
		declare l_pt_idx bigint default 0;
        declare l_pt_id varchar(45) default '';
        declare l_pt_nick_name varchar(45) default '';
        declare l_pt_partner_type int default 0;
        
        declare l_pt_noble_point int default 0;
		declare l_pt_noble_money int default 0;
        declare l_pt_nova_point int default 0;
		declare l_pt_nova_money int default 0;
        
		DECLARE l_u_key varchar(64);
		DECLARE l_pkey varchar(2);
        DECLARE l_day int;
    
        DECLARE done INTEGER DEFAULT 0;
        
        DEClARE openCursor CURSOR FOR SELECT bg_mb.idx,bg_mb.id,bg_mb.charge_first_per,bg_mb.`password`
		,bg_mb.nick_name,bg_mb.u_business,bg_mb.money
		,bg_mb.`point`,bg_mb.`call`,bg_mb.is_recommend
		,bg_mb.`status`,bg_mb.`level`,bg_mb.auto_level
		,bg_mb.last_login,bg_mb.recommend_code,bg_mb.recommend_member
		,bg_mb.account_number,bg_mb.account_name,bg_mb.account_bank
		,bg_mb.exchange_password,bg_mb.is_monitor,bg_mb.is_monitor_charge
		,bg_mb.is_monitor_security,bg_mb.is_monitor_bet,bg_mb.dis_id
		,bg_mb.reg_time,bg_mb.reg_first_charge,bg_mb.birth
		,bg_mb.mobile_carrier
		FROM mydb_bets.member as bg_mb where bg_mb.u_business <> 1 order by bg_mb.u_business asc;
        
        DECLARE CONTINUE HANDLER FOR NOT FOUND SET done = true;
        
        select 'start_partner';
        OPEN openCursor;
			  read_loop: LOOP
				  FETCH openCursor INTO  v_idx,v_id ,v_charge_first_per ,v_password
                    ,v_nick_name,v_u_business,v_money
                    ,v_point , v_call, v_is_recommend
                    ,v_status,v_level,v_auto_level
                    ,v_last_login,v_recommend_code,v_recommend_member
					,v_account_number,v_account_name,v_account_bank
                    ,v_exchange_password,v_is_monitor,v_is_monitor_charge
                    ,v_is_monitor_security,v_is_monitor_bet,v_dis_id
                    , v_reg_time,v_reg_first_charge,v_birth
					,v_mobile_carrier;
                                      
				   IF done THEN
                      -- SELECT v_id;
					LEAVE read_loop;
				   END IF;
                 
				   set l_idx = 0;
				   set l_partner_type = 0;
				   set l_bank_id = 0;
				   set l_sales_idx = 0;
				   set l_low_sales_idx = 0;
				   set l_dist_idx = 0;
				   set l_shop_idx = 0;
				   set l_pt_idx = 0;
                   
				   set l_pt_noble_point = 0;
				   set l_pt_noble_money = 0;
				   set l_pt_nova_point = 0;
				   set l_pt_nova_money = 0;
                   -- 파트너 정보를 생성한다
                   IF 10 = v_u_business THEN
					set l_partner_type = 301;
                    set l_pt_idx = h_idx;
                    set l_pt_id = in_head_office_id;
                    set l_pt_nick_name = in_head_office_id;
                    set l_pt_partner_type = 201;
				   ELSEIF 11 = v_u_business THEN
                    set l_partner_type = 401;
					 IF EXISTS(SELECT * from member where id = v_dis_id and head_office_idx = h_idx) THEN
                      select idx,id,nick_name,partner_type into l_pt_idx,l_pt_id,l_pt_nick_name,l_pt_partner_type from member where id = v_dis_id and head_office_idx = h_idx;
                     END IF;
				   ELSEIF 12 = v_u_business THEN
					set l_partner_type = 501;
                     IF EXISTS(SELECT * from member where id = v_dis_id and head_office_idx = h_idx) THEN
                      select idx,id,nick_name,partner_type into l_pt_idx,l_pt_id,l_pt_nick_name,l_pt_partner_type from member where id = v_dis_id and head_office_idx = h_idx;
                     END IF;
				   END IF;
                   
                   IF v_birth is null then
					set v_birth = '';
                   END IF;
                   
                   IF v_last_login is null THEN
                    set v_last_login = '';
                   END IF; 
                                  
                   
                   -- password 는 temp_password, dis_id 는 temp_dis_id에 저장한다.,#646464
                   insert into member (
                   id,nick_name,temp_password,second_password,partner_type
                   ,money,`point`,hp,is_recommend,`status`
                   ,`level`,is_auto_level_up,last_login,temp_dis_id,reg_time
                   ,birth,mobile_carrier,member_type,id_color,parent_partner_idx)
					value(v_id,v_nick_name,v_password,h_second_password,l_partner_type
                    ,v_money,v_point,v_call,'N',v_status
                    ,v_level,'N',v_last_login,v_dis_id,v_reg_time
                    ,v_birth,v_mobile_carrier,'partner','#646464',l_pt_idx
                    );
					
				   set l_idx = last_insert_id();
					
				   update member set head_office_idx = h_idx,unique_id = concat(v_id,'_',h_idx) where idx = l_idx;
				  
                    set l_u_key = UUID();
				    SELECT DAY(NOW()) into l_day;
				    IF  9 < l_day THEN
					  set l_pkey = CAST(l_day AS CHAR) ;
				    ELSE
					  set l_pkey = CONCAT('0',CAST(l_day AS CHAR)) ;
				    END IF;
                   
                   set l_bank_id = 0;
				   IF EXISTS(SELECT * FROM main.static_account where account_code = v_account_bank) THEN
					   SELECT bank_id into l_bank_id FROM main.static_account where account_code = v_account_bank;

					   IF v_account_name is null THEN
						set v_account_name = '';
					   END IF;
					   
					   IF v_account_number is null THEN
						set v_account_number = '';
					   END IF;
					   
					   IF v_exchange_password is null THEN
						set v_exchange_password = '';
					   END IF;
					   
					   insert into partner_bank(partner_idx,account_bank_id,account_name,account_number,exchange_password)
						value(l_idx,l_bank_id,v_account_name,v_account_number,v_exchange_password);
				   END IF;
                   -- 메모
                    IF EXISTS(SELECT * FROM mydb_bets.t_member_memo where member_idx = v_idx) THEN
					   insert into member_memo(member_idx,type,content,a_id,reg_time) 
						SELECT l_idx,m_type,content,a_id,reg_time FROM mydb_bets.t_member_memo where member_idx = v_idx;
					END IF;
                   -- 도메인 정보 등록
                   IF h_domain is null THEN
					set h_domain = '';
                   END IF;
                   
                   insert into member_admin_domain(partner_idx,domain,id) value (l_idx,h_domain,v_id);
                   
				   -- 요율 정보 
                   
                   IF EXISTS(SELECT * from mydb_bets.shop_config where member_idx = v_idx) THEN
					   select  bet_pre_s_fee,bet_pre_d_fee,bet_real_s_fee
					   ,bet_real_d_fee,bet_mini_fee,pre_s_fee
					   ,bet_casino_fee,bet_slot_fee,bet_win_mini_fee
					   ,bet_win_casino_fee,bet_win_slot_fee,bet_lose_mini_fee
					   ,bet_lose_casino_fee,bet_lose_slot_fee
					   into v_bet_pre_s_fee,v_bet_pre_d_fee,v_bet_real_s_fee
					   ,v_bet_real_d_fee,v_bet_mini_fee,v_pre_s_fee
					   ,v_bet_casino_fee,v_bet_slot_fee,v_bet_win_mini_fee
					   ,v_bet_win_casino_fee,v_bet_win_slot_fee,v_bet_lose_mini_fee
					   ,v_bet_lose_casino_fee,v_bet_lose_slot_fee from mydb_bets.shop_config where member_idx = v_idx;
					   -- 
					   insert into partner_rates(partner_idx,rate_type,value) select l_idx,type,0 from static_rates; 
					   
					   update partner_rates set value = v_bet_pre_s_fee where partner_idx = l_idx and rate_type = 2;
					   update partner_rates set value = v_bet_pre_d_fee where partner_idx = l_idx and rate_type = 3;
					   update partner_rates set value = v_bet_real_s_fee where partner_idx = l_idx and rate_type = 4;
					   update partner_rates set value = v_bet_real_d_fee where partner_idx = l_idx and rate_type = 5;
					   update partner_rates set value = v_bet_mini_fee where partner_idx = l_idx and rate_type = 6;
					   update partner_rates set value = v_bet_mini_fee where partner_idx = l_idx and rate_type = 7;
					   
					   update partner_rates set value = v_pre_s_fee where partner_idx = l_idx and rate_type = 1;
					   
					   update partner_rates set value = v_bet_casino_fee where partner_idx = l_idx and rate_type = 8;
					   update partner_rates set value = v_bet_slot_fee where partner_idx = l_idx and rate_type = 9;
										  
					   update partner_rates set value = v_bet_win_mini_fee where partner_idx = l_idx and rate_type = 205;
					   update partner_rates set value = v_bet_win_mini_fee where partner_idx = l_idx and rate_type = 206;
					   
					   update partner_rates set value = v_bet_win_casino_fee where partner_idx = l_idx and rate_type = 207;
					   update partner_rates set value = v_bet_win_slot_fee where partner_idx = l_idx and rate_type = 208;
										  
					   update partner_rates set value = v_bet_lose_mini_fee where partner_idx = l_idx and rate_type = 104;
					   update partner_rates set value = v_bet_lose_mini_fee where partner_idx = l_idx and rate_type = 105;
					   
					   update partner_rates set value = v_bet_lose_casino_fee where partner_idx = l_idx and rate_type = 106;
					   update partner_rates set value = v_bet_lose_slot_fee where partner_idx = l_idx and rate_type = 107;
                   END IF;
                   -- 각 파트너에 맞게 하부를 생성해준다. 매장정보를 저장한다.
                    -- 파트너 정보를 생성한다
				   IF 10 = v_u_business THEN
                       ##########################부본########################
						set l_low_sales_idx = create_partner(h_idx
						,v_id
						,'b'
						,l_idx
						,401
						,h_domain 
						,h_password 
						,h_second_password
						,'none'
						);
                        
                        set l_dist_idx = create_partner(h_idx
						,v_id
						,'c'
						,l_low_sales_idx
						,501
						,h_domain 
						,h_password 
						,h_second_password
						,'none'
						);
                        
					    set l_shop_idx = create_partner(h_idx
						,v_id
						,'d'
						,l_dist_idx
						,601
						,h_domain 
						,h_password 
						,h_second_password
                        ,'none'
						);
					
				   ELSEIF 11 = v_u_business THEN
                     set l_dist_idx = create_partner(h_idx
						,v_id
						,'c'
						,l_idx
						,501
						,h_domain 
						,h_password 
						,h_second_password
						,'none'
						);
                        
					    set l_shop_idx = create_partner(h_idx
						,v_id
						,'d'
						,l_dist_idx
						,601
						,h_domain 
						,h_password 
						,h_second_password
						,'none'
						);
				   ELSEIF 12 = v_u_business THEN
					    set l_shop_idx = create_partner(h_idx
						,v_id
						,'d'
						,l_idx
						,601
						,h_domain 
						,h_password 
						,h_second_password
						,'none'
						);
				   END IF;
                   
                   update member set temp_shop_idx = l_shop_idx where idx = l_idx;
			              
			  END LOOP read_loop;
	    CLOSE openCursor;
        select 'end_partner';
        END main_partner;
        -- 일반유저 이관
      
        main_member : BEGIN -- gamble 정보 이관
        DECLARE v_idx bigint;
		DECLARE v_id varchar(45);
		declare v_charge_first_per int;
		DECLARE v_password varchar(200);
		DECLARE v_nick_name varchar(45);
		DECLARE v_u_business int;
		declare v_money int;
		declare v_point int;
		declare v_call varchar(45);
		
		DECLARE v_is_recommend enum('Y','N');
		DECLARE v_status int;
		DECLARE v_level int;
		DECLARE v_auto_level enum('Y','N');
		
		DECLARE v_last_login datetime;
		DECLARE v_recommend_code varchar(45);
		DECLARE v_recommend_member int;
		
		DECLARE v_account_number varchar(45);
		DECLARE v_account_name varchar(45);
		DECLARE v_account_bank varchar(45);
		
		DECLARE v_exchange_password varchar(200);
		
		DECLARE v_is_monitor enum('Y','N');
		DECLARE v_is_monitor_charge enum('Y','N');
		DECLARE v_is_monitor_security enum('Y','N');
		DECLARE v_is_monitor_bet enum('Y','N');
		
		DECLARE v_dis_id varchar(45);
		
		DECLARE v_reg_time varchar(45);
		DECLARE v_reg_first_charge varchar(45);
		DECLARE v_birth varchar(45);
		DECLARE v_mobile_carrier int;
		DECLARE v_betting_p int;
		-- DECLARE v_g_money int;
        	    
		declare l_idx bigint default 0;
		declare l_partner_type int default 0;
		declare l_bank_id int default 0;
	   	        
		declare l_pt_idx bigint default 0;
        declare l_charge_first_per enum('Y','N') default 'N';
		declare l_reg_first_charge enum('Y','N') default 'N';
		declare l_member_type varchar(20) default 'player';
        
        declare l_temp_recommend_id varchar(64) default '';
        
        DECLARE done INTEGER DEFAULT 0;
        
        DEClARE openCursor_mb CURSOR FOR SELECT bg_mb.idx,bg_mb.id,bg_mb.charge_first_per,bg_mb.`password`
		,bg_mb.nick_name,bg_mb.u_business,bg_mb.money
		,bg_mb.`point`,bg_mb.`call`,bg_mb.is_recommend
		,bg_mb.`status`,bg_mb.`level`,bg_mb.auto_level
		,bg_mb.last_login,bg_mb.recommend_code,bg_mb.recommend_member
		,bg_mb.account_number,bg_mb.account_name,bg_mb.account_bank
		,bg_mb.exchange_password,bg_mb.is_monitor,bg_mb.is_monitor_charge
		,bg_mb.is_monitor_security,bg_mb.is_monitor_bet,bg_mb.dis_id
		,bg_mb.reg_time,bg_mb.reg_first_charge,bg_mb.birth
		,bg_mb.mobile_carrier,bg_mb.betting_p
		FROM mydb_bets.member as bg_mb where bg_mb.u_business = 1 and bg_mb.`status` in (1,2,11) and bg_mb.nick_name is not null and bg_mb.call is not null
        and '2024-10-01 00:00:00' < bg_mb.last_login;-- and level <> 9;
    
        DECLARE CONTINUE HANDLER FOR NOT FOUND SET done = true;
        
        select 'start main_member_bets';
        OPEN openCursor_mb;
			  mb_read_loop: LOOP
				  FETCH openCursor_mb INTO  v_idx,v_id,v_charge_first_per,v_password
                    ,v_nick_name,v_u_business,v_money
                    ,v_point,v_call,v_is_recommend
                    ,v_status,v_level,v_auto_level
                    ,v_last_login,v_recommend_code,v_recommend_member
					,v_account_number,v_account_name,v_account_bank
                    ,v_exchange_password,v_is_monitor,v_is_monitor_charge
                    ,v_is_monitor_security,v_is_monitor_bet,v_dis_id
                    ,v_reg_time,v_reg_first_charge,v_birth
					,v_mobile_carrier,v_betting_p;
                                      
				   IF done THEN
					LEAVE mb_read_loop;
				   END IF;
                   
				   set l_idx = 0;
				   set l_partner_type = 0;
				   set l_bank_id = 0;
	   	           set l_pt_idx  =  0;
				   set l_charge_first_per  =  'N';
				   set l_reg_first_charge  = 'N';
				   set l_member_type  =  'player';
        
				   IF EXISTS(SELECT * from member where id = v_dis_id and head_office_idx = h_idx) THEN
					select temp_shop_idx into l_pt_idx from member where id = v_dis_id and head_office_idx = h_idx;
                   END IF;
                   IF v_birth is null then
					set v_birth = '';
                   END IF;
                   
                   IF v_last_login is null THEN
                    set v_last_login = '';
                   END IF; 
                   -- password 는 temp_password, dis_id 는 temp_dis_id에 저장한다.,#646464
                   
                   if 9 = v_level then
					set l_member_type = 'tester';
                   end if;
                                      
                   IF EXISTS(SELECT * from mydb_bets.member where idx = v_recommend_member) THEN
					select id into l_temp_recommend_id from mydb_bets.member where idx = v_recommend_member;
                   END IF;
                   
                   set v_money = 0;
                   set v_point = 0;
                   
                  
                   insert into member (
                   id,nick_name,temp_password,second_password,partner_type
                   ,money,`point`,hp,is_recommend,`status`
                   ,`level`,is_auto_level_up,last_login,temp_dis_id,reg_time
                   ,birth,mobile_carrier,member_type,id_color,temp_recommend_idx,parent_partner_idx,betting_p,temp_recommend_id,temp_mg)
					value(v_id,v_nick_name,v_password,h_second_password,10001
                    ,v_money,v_point,v_call,v_is_recommend,v_status
                    ,v_level,v_auto_level,v_last_login,v_dis_id,v_reg_time
                    ,v_birth,v_mobile_carrier,l_member_type,'#646464',v_recommend_member,l_pt_idx,v_betting_p,l_temp_recommend_id,'bets'
                    );
					
				   set l_idx = last_insert_id();
				   select 'bets id => ',v_id;	
				   update member set head_office_idx = h_idx,unique_id = concat(v_id,'_',h_idx) where idx = l_idx;
                
                   set l_bank_id = 0;
                   IF EXISTS(SELECT * FROM main.static_account where account_code = v_account_bank) THEN
					   SELECT bank_id into l_bank_id FROM main.static_account where account_code = v_account_bank;

					   IF v_account_name is null THEN
						set v_account_name = '';
					   END IF;
					   
					   IF v_account_number is null THEN
						set v_account_number = '';
					   END IF;
					   
					   IF v_exchange_password is null THEN
						set v_exchange_password = '';
					   END IF;
					   
					   
					   insert into member_bank(member_idx,account_bank_id,account_name,account_number,exchange_password)
						value(l_idx,l_bank_id,v_account_name,v_account_number,v_exchange_password);
				   END IF;
                   -- 메모
                    IF EXISTS(SELECT * FROM mydb_bets.t_member_memo where member_idx = v_idx) THEN
					   insert into member_memo(member_idx,type,content,a_id,reg_time) 
						SELECT l_idx,m_type,content,a_id,reg_time FROM mydb_bets.t_member_memo where member_idx = v_idx;
                    END IF;
                   -- 이벤트
                   IF 0 = v_charge_first_per THEN
					set l_charge_first_per = 'N';
                   END IF;
                   
                   IF 0 = v_reg_first_charge THEN
					set l_reg_first_charge = 'N';
                   END IF;
                   
                   IF null = v_charge_first_per THEN
					set l_charge_first_per = 'N';
                   END IF;
                   
                   IF null = v_reg_first_charge THEN
					set l_reg_first_charge = 'N';
                   END IF;
                                      
				   insert into member_event_charge(member_idx,first_register_charge,first_charge)
					value(l_idx,l_reg_first_charge,l_charge_first_per);
                  
                   -- 베팅제한
                   main_2 : BEGIN
                        
                        DECLARE v_game_type int DEFAULT 0;
						DECLARE v_status enum('ON','OFF');
                        DECLARE gt_done INTEGER DEFAULT 0;
                        
                        DECLARE l_name varchar(64);
                        declare l_type int ;
						DEClARE openCursor_bet CURSOR FOR 
						SELECT bg_mb_gt.game_type,bg_mb_gt.`status`
						FROM mydb_bets.member_game_type as bg_mb_gt 
                        WHERE bg_mb_gt.member_idx = v_idx and bg_mb_gt.game_type not in(5,11,12,13,16,21);
                        
    					DECLARE CONTINUE HANDLER FOR NOT FOUND SET gt_done = true;
						
                        OPEN openCursor_bet;
							bet_read_loop: LOOP
								FETCH  openCursor_bet INTO  v_game_type,v_status;
													  
								IF gt_done THEN
                                    -- select 'bet_read_loop';
									LEAVE bet_read_loop;
							    END IF;
                                
                                IF 1 = v_game_type then
									set l_type = 1;
                                ELSEIF 2 = v_game_type then
									set l_type = 2;
								ELSEIF 3 = v_game_type then
									set l_type = 10;                        
                                ELSEIF 4 = v_game_type then
									set l_type = 11;        
                                ELSEIF 6 = v_game_type then
									set l_type = 207;
                                ELSEIF 7 = v_game_type then
									set l_type = 208;    
							    ELSEIF 8 = v_game_type then
									set l_type = 101;    
                                ELSEIF 9 = v_game_type then
									set l_type = 300;
                                ELSEIF 10 = v_game_type then
									set l_type = 301;      

                                ELSEIF 14 = v_game_type then
									set l_type = 12;      
								ELSEIF 15 = v_game_type then
									set l_type = 201;      
                                    
                                ELSEIF 50 = v_game_type then
									set l_type = 105;       
                                ELSEIF 51 = v_game_type then
									set l_type = 108;       
                                ELSEIF 52 = v_game_type then
									set l_type = 202;       
                                ELSEIF 53 = v_game_type then
									set l_type = 203;           
                                ELSEIF 54 = v_game_type then
									set l_type = 204;       
                                ELSEIF 55 = v_game_type then
									set l_type = 205;       
                                ELSEIF 56 = v_game_type then
									set l_type = 206;
                                    
                                ELSEIF 57 = v_game_type then
									set l_type = 209;       
                                ELSEIF 58 = v_game_type then
									set l_type = 210;       
                                    
                                ELSEIF 59 = v_game_type then
									set l_type = 211;       
                                ELSEIF 60 = v_game_type then
									set l_type = 212;       
                                ELSEIF 61 = v_game_type then
									set l_type = 213;      
                                    
                                ELSEIF 62 = v_game_type then
									set l_type = 217;       
                                    
                                ELSEIF 63 = v_game_type then
									set l_type = 214;       
                                ELSEIF 64 = v_game_type then
									set l_type = 215;       
                                ELSEIF 65 = v_game_type then
									set l_type = 216;  
                                    
                                ELSEIF 66 = v_game_type then
									set l_type = 102;     
                                    
                                ELSEIF 67 = v_game_type then
									set l_type = 104;       
                                ELSEIF 68 = v_game_type then
									set l_type = 103;
                                    
                                ELSEIF 69 = v_game_type then
									set l_type = 109;
                                    
                                ELSEIF 70 = v_game_type then
									set l_type = 106;
                                    
							    ELSEIF 71 = v_game_type then
									set l_type = 107; 
                                    
							    ELSEIF 72 = v_game_type then
									set l_type = 13;
                                ELSEIF 73 = v_game_type then
									set l_type = 3;           
                                end if;
                                
                                IF 'ON' = v_status then
									set v_status = 'OFF';
                                else
									set v_status = 'ON';
                                end if;
                                
                             
                                -- SELECT l_type,l_idx;
								select name into l_name from static_game_betting_type_mgr where id = l_type;
								insert into member_game_betting_type_info(id,member_idx,name,status) value(l_type,l_idx,l_name,v_status);
                                
							END LOOP bet_read_loop;
					    CLOSE openCursor_bet;
                   END main_2;
                   
                   -- 모니터링 정보
                   insert into member_status_security(member_idx,type,is_monitor)
					values(l_idx,1,v_is_monitor)
                    ,(l_idx,2,v_is_monitor_charge)
                    ,(l_idx,3,v_is_monitor_security)
                    ,(l_idx,4,v_is_monitor_bet);
                   -- 개인개좌
                   
                    IF EXISTS(SELECT * FROM mydb_bets.personal_account_number where member_idx = v_idx) THEN
						insert into personal_account_number(member_idx,account_number_1,account_name_1,account_bank_id_1
						,account_number_2,account_name_2,account_bank_id_2) 
						SELECT l_idx
						,mydb_bets.personal_account_number.account_number_1 ,mydb_bets.personal_account_number.account_name_1, sa_1.bank_id
						,mydb_bets.personal_account_number.account_number_2 ,mydb_bets.personal_account_number.account_name_2, sa_2.bank_id
						FROM mydb_bets.personal_account_number 
						left join static_account as sa_1 on sa_1.account_code = mydb_bets.personal_account_number.account_bank_1
						left join static_account as sa_2 on sa_2.account_code = mydb_bets.personal_account_number.account_bank_2
						where member_idx = v_idx;
                    END IF;
                    -- 종합정보 이관 
                    main_total_info : BEGIN
						declare v_charge_total_count int;
                        declare v_charge_total_money bigint;
                        declare v_exchange_total_count int;
                        declare v_exchange_total_money bigint;
                        declare v_bet_total_count int; 
						declare	v_bet_total_money bigint;
                        declare v_pre_s_total_money bigint;
						declare v_pre_m_total_money bigint;
						declare v_real_s_total_money bigint;
						declare v_real_m_total_money bigint; 
						declare v_mini_total_money bigint; 
						declare v_casino_total_money bigint; 
						declare v_slot_total_money bigint; 
						declare v_take_total_money bigint; 
						declare v_take_slot_total_money bigint ;
						declare v_take_casino_total_money bigint; 
						declare v_take_mini_total_money bigint; 
						declare v_take_real_m_total_money bigint; 
						declare v_take_real_s_total_money bigint; 
						declare v_take_pre_m_total_money bigint; 
						declare v_take_pre_s_total_money bigint;
                        declare v_vir_total_money bigint; 
						declare v_take_vir_total_money bigint;
						IF EXISTS(SELECT * from mydb_bets.total_member_cash where member_idx = v_idx) THEN
							select charge_total_count,charge_total_money ,exchange_total_count,exchange_total_money
							,bet_total_count,bet_total_money,pre_s_total_money,pre_m_total_money
							,real_s_total_money,real_m_total_money,mini_total_money,casino_total_money
							,slot_total_money,take_total_money,take_slot_total_money,take_casino_total_money
							,take_mini_total_money,take_real_m_total_money,take_real_s_total_money,take_pre_m_total_money
							,take_pre_s_total_money,vir_total_money,take_vir_total_money
							into 
							v_charge_total_count,v_charge_total_money,v_exchange_total_count,v_exchange_total_money
							,v_bet_total_count,v_bet_total_money,v_pre_s_total_money,v_pre_m_total_money
							,v_real_s_total_money,v_real_m_total_money,v_mini_total_money,v_casino_total_money
							,v_slot_total_money,v_take_total_money,v_take_slot_total_money,v_take_casino_total_money
							,v_take_mini_total_money,v_take_real_m_total_money,v_take_real_s_total_money,v_take_pre_m_total_money
							,v_take_pre_s_total_money,v_vir_total_money,v_take_vir_total_money
							from mydb_bets.total_member_cash where member_idx = v_idx;
							
							insert into statistic_member_comprehensive_details(member_idx,total_charge,total_exchange,total_charge_count,total_exchange_count
							,total_bet_count,total_bet,total_win_bet,total_one_prematch_bet,total_one_prematch_win_bet
							,total_multi_prematch_bet ,total_multi_prematch_win_bet,total_one_inplay_bet ,total_one_inplay_win_bet 
							,total_multi_inplay_bet ,total_multi_inplay_win_bet,total_casino_bet ,total_casino_win_bet
							,total_slot_bet ,total_slot_win_bet ) 
							value(l_idx,v_charge_total_money,v_exchange_total_money,v_charge_total_count,v_exchange_total_count
							,v_bet_total_count,v_bet_total_money,v_take_total_money,v_pre_s_total_money,v_take_pre_s_total_money
							,v_pre_m_total_money,v_take_pre_m_total_money,v_real_s_total_money,v_take_real_s_total_money
							,v_real_m_total_money,v_take_real_m_total_money,v_casino_total_money,v_take_casino_total_money
							,v_slot_total_money,v_take_slot_total_money);
                        END IF;
                        
                    END main_total_info;
                   
                  -- SELECT 'end';
			  END LOOP mb_read_loop;
        CLOSE openCursor_mb;
		select 'end main_member_bets';
        END main_member;
        
        main_recommend : BEGIN
		 
            declare v_member_id varchar(45);
            declare v_recommend_id varchar(45);
            
			declare l_member_idx bigint;
            declare l_recommend_idx bigint;
            
			DECLARE recommend_done INTEGER DEFAULT 0;
						
			DEClARE openCursor_recommend CURSOR FOR 
			SELECT mb.idx,mb.id,mb.temp_recommend_id as recommend_id
			FROM member as mb
            left join member as rm on mb.temp_recommend_id = rm.id
			WHERE rm.partner_type = 10001 and (mb.temp_recommend_id is not null and mb.temp_recommend_id <> '') and mb.partner_type = 10001 and mb.head_office_idx = h_idx;
                        
			DECLARE CONTINUE HANDLER FOR NOT FOUND SET recommend_done = true;
            
            select 'start main_recommend';
            OPEN openCursor_recommend;
			recommend_loop: LOOP
				FETCH  openCursor_recommend INTO  l_member_idx,v_member_id,v_recommend_id;
									  
				IF recommend_done THEN
					LEAVE recommend_loop;
				END IF;
                
                IF  NOT EXISTS(select idx from member where id = v_recommend_id and head_office_idx = h_idx) then
                    ITERATE recommend_loop;
                END IF;
                
                select idx into l_recommend_idx from member where id = v_recommend_id and head_office_idx = h_idx;
                          
                update member set recommend_idx =  l_recommend_idx where idx = l_member_idx;
			END LOOP recommend_loop;
			CLOSE openCursor_recommend;
        select 'end main_recommend';           
        END  main_recommend;
          
	COMMIT;
END main ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `migration_tt_gamble` */;
DELIMITER ;;
CREATE DEFINER=`admin`@`%` PROCEDURE `migration_tt_gamble`(
in_head_office_id varchar(45)
)
main : BEGIN

	DECLARE ret_code INT;
	DECLARE errno INT;
    DECLARE v_txt_error_msg text;
     
    declare h_idx bigint;
    
    declare h_password varchar(512);
	declare h_second_password varchar(512);
	declare h_domain varchar(100);
    
    DECLARE EXIT HANDLER FOR SQLEXCEPTION
    BEGIN
		GET CURRENT DIAGNOSTICS CONDITION 1 errno = MYSQL_ERRNO
		, v_txt_error_msg = MESSAGE_TEXT;
        set ret_code = -1000;
		SELECT ret_code,errno AS MYSQL_ERROR,v_txt_error_msg as MESSAGE_TEXT;
		ROLLBACK;
    END;
           
    START TRANSACTION;
		
		select member.idx,member.`password`,member.second_password,partner_detail_info.partner_domain 
			into h_idx,h_password,h_second_password,h_domain
		from member 
			left join partner_detail_info on member.idx = partner_detail_info.partner_idx
        where id = in_head_office_id;
        
        main_partner : BEGIN
		
		DECLARE v_idx bigint;
		DECLARE v_id varchar(45);
		declare v_charge_first_per int;
		DECLARE v_password varchar(200);
		DECLARE v_nick_name varchar(45);
		DECLARE v_u_business int;
		declare v_money int;
		declare v_point int;
		declare v_call varchar(45);
		
		DECLARE v_is_recommend enum('Y','N');
		DECLARE v_status int;
		DECLARE v_level int;
		DECLARE v_auto_level enum('Y','N');
		
		DECLARE v_last_login datetime;
		DECLARE v_recommend_code varchar(45);
		DECLARE v_recommend_member int;
		
		DECLARE v_account_number varchar(45);
		DECLARE v_account_name varchar(45);
		DECLARE v_account_bank varchar(45);
		
		DECLARE v_exchange_password varchar(200);
		
		DECLARE v_is_monitor enum('Y','N');
		DECLARE v_is_monitor_charge enum('Y','N');
		DECLARE v_is_monitor_security enum('Y','N');
		DECLARE v_is_monitor_bet enum('Y','N');
		
		DECLARE v_dis_id varchar(45);
		
		DECLARE v_reg_time varchar(45);
		DECLARE v_reg_first_charge varchar(45);
		DECLARE v_birth varchar(45);
		DECLARE v_mobile_carrier int;
		DECLARE v_g_point int;
		DECLARE v_g_money int;
        
		declare v_bet_pre_s_fee decimal(7,2) default 0.0;
		declare v_bet_pre_d_fee decimal(7,2) default 0.0;
		declare v_bet_real_s_fee decimal(7,2) default 0.0;
		declare v_bet_real_d_fee decimal(7,2) default 0.0;
		declare v_bet_mini_fee decimal(7,2) default 0.0;
		declare v_pre_s_fee decimal(7,2) default 0.0;
		declare v_bet_casino_fee decimal(7,2) default 0.0;
		declare v_bet_slot_fee decimal(7,2) default 0.0;
		declare v_bet_win_mini_fee decimal(7,2)  default 0.0;
		declare v_bet_win_casino_fee decimal(7,2) default 0.0;
		declare v_bet_win_slot_fee decimal(7,2) default 0.0;
		declare v_bet_lose_mini_fee decimal(7,2) default 0.0;
		declare v_bet_lose_casino_fee decimal(7,2) default 0.0;
		declare v_bet_lose_slot_fee decimal(7,2) default 0.0;
    
		declare l_idx bigint default 0;
		declare l_partner_type int default 0;
		declare l_bank_id int default 0;
	   
		declare l_sales_idx bigint default 0;
		declare l_low_sales_idx bigint default 0;
		declare l_dist_idx bigint default 0;
		declare l_shop_idx bigint default 0;
        
		declare l_pt_idx bigint default 0;
        declare l_pt_id varchar(45) default '';
        declare l_pt_nick_name varchar(45) default '';
        declare l_pt_partner_type int default 0;
        
        declare l_pt_noble_point int default 0;
		declare l_pt_noble_money int default 0;
        declare l_pt_nova_point int default 0;
		declare l_pt_nova_money int default 0;
        
		DECLARE l_u_key varchar(64);
		DECLARE l_pkey varchar(2);
        DECLARE l_day int;
    
        DECLARE done INTEGER DEFAULT 0;
        
        DEClARE openCursor CURSOR FOR SELECT bg_mb.idx,bg_mb.id,bg_mb.charge_first_per,bg_mb.`password`
		,bg_mb.nick_name,bg_mb.u_business,bg_mb.money
		,bg_mb.`point`,bg_mb.`call`,bg_mb.is_recommend
		,bg_mb.`status`,bg_mb.`level`,bg_mb.auto_level
		,bg_mb.last_login,bg_mb.recommend_code,bg_mb.recommend_member
		,bg_mb.account_number,bg_mb.account_name,bg_mb.account_bank
		,bg_mb.exchange_password,bg_mb.is_monitor,bg_mb.is_monitor_charge
		,bg_mb.is_monitor_security,bg_mb.is_monitor_bet,bg_mb.dis_id
		,bg_mb.reg_time,bg_mb.reg_first_charge,bg_mb.birth
		,bg_mb.mobile_carrier,bg_mb.g_point,bg_mb.g_money
		FROM mydb_gamble.member as bg_mb where bg_mb.u_business <> 1 order by bg_mb.u_business asc;
        
        DECLARE CONTINUE HANDLER FOR NOT FOUND SET done = true;
        
        select 'start_partner';
        OPEN openCursor;
			  read_loop: LOOP
				  FETCH openCursor INTO  v_idx,v_id ,v_charge_first_per ,v_password
                    ,v_nick_name,v_u_business,v_money
                    ,v_point , v_call, v_is_recommend
                    ,v_status,v_level,v_auto_level
                    ,v_last_login,v_recommend_code,v_recommend_member
					,v_account_number,v_account_name,v_account_bank
                    ,v_exchange_password,v_is_monitor,v_is_monitor_charge
                    ,v_is_monitor_security,v_is_monitor_bet,v_dis_id
                    , v_reg_time,v_reg_first_charge,v_birth
					,v_mobile_carrier,v_g_point,v_g_money;
                                      
				   IF done THEN
                      -- SELECT v_id;
					LEAVE read_loop;
				   END IF;
                 
				   set l_idx = 0;
				   set l_partner_type = 0;
				   set l_bank_id = 0;
				   set l_sales_idx = 0;
				   set l_low_sales_idx = 0;
				   set l_dist_idx = 0;
				   set l_shop_idx = 0;
				   set l_pt_idx = 0;
                   
				   set l_pt_noble_point = 0;
				   set l_pt_noble_money = 0;
				   set l_pt_nova_point = 0;
				   set l_pt_nova_money = 0;
                   -- 파트너 정보를 생성한다
                   IF 10 = v_u_business THEN
					set l_partner_type = 301;
                    set l_pt_idx = h_idx;
                    set l_pt_id = in_head_office_id;
                    set l_pt_nick_name = in_head_office_id;
                    set l_pt_partner_type = 201;
				   ELSEIF 11 = v_u_business THEN
                    set l_partner_type = 401;
					 IF EXISTS(SELECT * from member where id = v_dis_id and head_office_idx = h_idx) THEN
                      select idx,id,nick_name,partner_type into l_pt_idx,l_pt_id,l_pt_nick_name,l_pt_partner_type from member where id = v_dis_id and head_office_idx = h_idx;
                     END IF;
				   ELSEIF 12 = v_u_business THEN
					set l_partner_type = 501;
                     IF EXISTS(SELECT * from member where id = v_dis_id and head_office_idx = h_idx) THEN
                      select idx,id,nick_name,partner_type into l_pt_idx,l_pt_id,l_pt_nick_name,l_pt_partner_type from member where id = v_dis_id and head_office_idx = h_idx;
                     END IF;
				   END IF;
                   
                   IF v_birth is null then
					set v_birth = '';
                   END IF;
                   
                   IF v_last_login is null THEN
                    set v_last_login = '';
                   END IF; 
                                  
                   
                   -- password 는 temp_password, dis_id 는 temp_dis_id에 저장한다.,#646464
                   insert into member (
                   id,nick_name,temp_password,second_password,partner_type
                   ,money,`point`,hp,is_recommend,`status`
                   ,`level`,is_auto_level_up,last_login,temp_dis_id,reg_time
                   ,birth,mobile_carrier,member_type,id_color,parent_partner_idx)
					value(v_id,v_nick_name,v_password,h_second_password,l_partner_type
                    ,v_money,v_point,v_call,'N',v_status
                    ,v_level,'N',v_last_login,v_dis_id,v_reg_time
                    ,v_birth,v_mobile_carrier,'partner','#646464',l_pt_idx
                    );
					
				   set l_idx = last_insert_id();
					
				   update member set head_office_idx = h_idx,unique_id = concat(v_id,'_',h_idx) where idx = l_idx;
				  
                    set l_u_key = UUID();
				    SELECT DAY(NOW()) into l_day;
				    IF  9 < l_day THEN
					  set l_pkey = CAST(l_day AS CHAR) ;
				    ELSE
					  set l_pkey = CONCAT('0',CAST(l_day AS CHAR)) ;
				    END IF;
                
					INSERT INTO log.log_info (u_key,pkey,member_idx,id,nick_name,`level`,partner_type,pt_member_idx,pt_id
                       ,pt_nick_name,pt_partner_type,main_type,sub_type,domain,ip,country,detail_info,`status`,value_type) 
                       VALUES (l_u_key, l_pkey, l_idx,v_id, v_nick_name, v_level,l_partner_type
                       ,l_pt_idx ,l_pt_id,l_pt_nick_name,l_pt_partner_type
                       ,41,3001,'' ,'' ,'',JSON_OBJECT('desc','gamble에서 획득한 포인트', 'point',v_point,'partner_id',in_head_office_id,'after_point',v_point
                       ,'partner_idx',h_idx,'before_point',0,'partner_nick_name',in_head_office_id,'parent_partner_type',201,'partner_type_classification',201)
                       ,1,2);
                       
