2025-03-24 11:14:46,306 - stock_data_import - ERROR - 创建表失败: Not an executable object: "\n        CREATE TABLE IF NOT EXISTS stock_semi_annual_report (\n            id INT AUTO_INCREMENT PRIMARY KEY,\n            stock_code VARCHAR(20) NOT NULL COMMENT '股票代码',\n            stock_name VARCHAR(50) NOT NULL COMMENT '股票名称',\n            report_date DATE NOT NULL COMMENT '报告日期',\n            \n            product_1_name VARCHAR(100) COMMENT '产品1名称',\n            product_1_revenue DECIMAL(20,4) COMMENT '产品1营业收入',\n            product_1_cost DECIMAL(20,4) COMMENT '产品1成本',\n            product_1_gross_profit DECIMAL(20,4) COMMENT '产品1毛利',\n            product_1_gross_margin DECIMAL(10,4) COMMENT '产品1毛利率',\n            \n            product_2_name VARCHAR(100) COMMENT '产品2名称',\n            product_2_revenue DECIMAL(20,4) COMMENT '产品2营业收入',\n            product_2_cost DECIMAL(20,4) COMMENT '产品2成本',\n            product_2_gross_profit DECIMAL(20,4) COMMENT '产品2毛利',\n            product_2_gross_margin DECIMAL(10,4) COMMENT '产品2毛利率',\n            \n            product_3_name VARCHAR(100) COMMENT '产品3名称',\n            product_3_revenue DECIMAL(20,4) COMMENT '产品3营业收入',\n            product_3_cost DECIMAL(20,4) COMMENT '产品3成本',\n            product_3_gross_profit DECIMAL(20,4) COMMENT '产品3毛利',\n            product_3_gross_margin DECIMAL(10,4) COMMENT '产品3毛利率',\n            \n            product_4_name VARCHAR(100) COMMENT '产品4名称',\n            product_4_revenue DECIMAL(20,4) COMMENT '产品4营业收入',\n            product_4_cost DECIMAL(20,4) COMMENT '产品4成本',\n            product_4_gross_profit DECIMAL(20,4) COMMENT '产品4毛利',\n            product_4_gross_margin DECIMAL(10,4) COMMENT '产品4毛利率',\n            \n            product_5_name VARCHAR(100) COMMENT '产品5名称',\n            product_5_revenue DECIMAL(20,4) COMMENT '产品5营业收入',\n            product_5_cost DECIMAL(20,4) COMMENT '产品5成本',\n            product_5_gross_profit DECIMAL(20,4) COMMENT '产品5毛利',\n            product_5_gross_margin DECIMAL(10,4) COMMENT '产品5毛利率',\n            \n            created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,\n            updated_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,\n            \n            UNIQUE KEY idx_stock_report (stock_code, report_date)\n        ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='股票半年报主营业务数据';\n        "
2025-03-24 11:14:46,308 - stock_data_import - ERROR - 表创建失败，程序退出
2025-03-24 11:16:57,259 - stock_data_import - ERROR - 创建表失败: Not an executable object: "\n        CREATE TABLE IF NOT EXISTS stock_semi_annual_report (\n            id INT AUTO_INCREMENT PRIMARY KEY,\n            stock_code VARCHAR(20) NOT NULL COMMENT '股票代码',\n            stock_name VARCHAR(50) NOT NULL COMMENT '股票名称',\n            report_date DATE NOT NULL COMMENT '报告日期',\n            \n            product_1_name VARCHAR(100) COMMENT '产品1名称',\n            product_1_revenue DECIMAL(20,4) COMMENT '产品1营业收入',\n            product_1_cost DECIMAL(20,4) COMMENT '产品1成本',\n            product_1_gross_profit DECIMAL(20,4) COMMENT '产品1毛利',\n            product_1_gross_margin DECIMAL(10,4) COMMENT '产品1毛利率',\n            \n            product_2_name VARCHAR(100) COMMENT '产品2名称',\n            product_2_revenue DECIMAL(20,4) COMMENT '产品2营业收入',\n            product_2_cost DECIMAL(20,4) COMMENT '产品2成本',\n            product_2_gross_profit DECIMAL(20,4) COMMENT '产品2毛利',\n            product_2_gross_margin DECIMAL(10,4) COMMENT '产品2毛利率',\n            \n            product_3_name VARCHAR(100) COMMENT '产品3名称',\n            product_3_revenue DECIMAL(20,4) COMMENT '产品3营业收入',\n            product_3_cost DECIMAL(20,4) COMMENT '产品3成本',\n            product_3_gross_profit DECIMAL(20,4) COMMENT '产品3毛利',\n            product_3_gross_margin DECIMAL(10,4) COMMENT '产品3毛利率',\n            \n            product_4_name VARCHAR(100) COMMENT '产品4名称',\n            product_4_revenue DECIMAL(20,4) COMMENT '产品4营业收入',\n            product_4_cost DECIMAL(20,4) COMMENT '产品4成本',\n            product_4_gross_profit DECIMAL(20,4) COMMENT '产品4毛利',\n            product_4_gross_margin DECIMAL(10,4) COMMENT '产品4毛利率',\n            \n            product_5_name VARCHAR(100) COMMENT '产品5名称',\n            product_5_revenue DECIMAL(20,4) COMMENT '产品5营业收入',\n            product_5_cost DECIMAL(20,4) COMMENT '产品5成本',\n            product_5_gross_profit DECIMAL(20,4) COMMENT '产品5毛利',\n            product_5_gross_margin DECIMAL(10,4) COMMENT '产品5毛利率',\n            \n            created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,\n            updated_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,\n            \n            UNIQUE KEY idx_stock_report (stock_code, report_date)\n        ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='股票半年报主营业务数据';\n        "
2025-03-24 11:16:57,259 - stock_data_import - ERROR - 表创建失败，程序退出
2025-03-24 11:18:55,299 - stock_data_import - INFO - 表创建成功或已存在
2025-03-24 11:18:55,301 - stock_data_import - INFO - 使用 utf-8 编码成功读取CSV
2025-03-24 11:18:55,432 - stock_data_import - ERROR - 导入数据失败: Not an executable object: "\n                SELECT COUNT(*) FROM stock_semi_annual_report \n                WHERE stock_code = '688981.SH' AND report_date = '2024-06-30'\n                "
2025-03-24 11:18:55,432 - stock_data_import - ERROR - 数据导入失败
2025-03-24 11:21:49,621 - stock_data_import - INFO - 表创建成功或已存在
2025-03-24 11:21:49,623 - stock_data_import - INFO - 使用 utf-8 编码成功读取CSV
2025-03-24 11:21:49,759 - stock_data_import - INFO - 插入股票 688981.SH 的数据
2025-03-24 11:21:49,768 - stock_data_import - INFO - 成功导入 1 条记录到数据库
2025-03-24 11:21:49,769 - stock_data_import - INFO - 数据导入成功
2025-03-24 11:22:10,329 - stock_data_import - INFO - 表创建成功或已存在
2025-03-24 11:22:10,330 - stock_data_import - INFO - 使用 utf-8 编码成功读取CSV
2025-03-24 11:22:10,467 - stock_data_import - INFO - 插入股票 688981.SH 的数据
2025-03-24 11:22:10,476 - stock_data_import - INFO - 成功导入 1 条记录到数据库
2025-03-24 11:22:10,476 - stock_data_import - INFO - 数据导入成功
