Przeglądaj źródła

change the readme file

Y 3 miesięcy temu
rodzic
commit
e696153024
9 zmienionych plików z 19 dodań i 3168 usunięć
  1. 12 12
      .env
  2. 7 3
      README.md
  3. 0 290
      mer1.py
  4. 0 65
      merge_excel.py
  5. BIN
      merged_data.xlsx
  6. 0 1324
      result.json
  7. 0 1264
      result_combine.json
  8. 0 210
      test.py
  9. BIN
      换行示例.xlsx

+ 12 - 12
.env

@@ -1,15 +1,15 @@
-HOST='10.40.0.126'
-PORT=8123
-USER='ai_user'
-PASSWORD='IM795qItL!e&nXKY'
-DATABASE=''
-CONNECT_TIMEOUT=10
-SEND_RECEIVE_TIMEOUT=120
+HOST=
+PORT=
+USER=
+PASSWORD=
+DATABASE=
+CONNECT_TIMEOUT=
+SEND_RECEIVE_TIMEOUT=
 
-IMAGE_GET_APP_KEY=de933f5509a94fbaad9ef36f8e1a5d0e
-IMAGE_GET_APP_SECRET=36j853joip6mogju3zthzl3k0qb2w8lrkyna5gvne90cquqjz8ya2q623tn02939
+IMAGE_GET_APP_KEY=
+IMAGE_GET_APP_SECRET=
 
-TOS_ACCESS_KEY='AKLTNDNlMTFlNzk4OTNmNGU1YTlhMzQ0MmJjZjViMzc0YzQ'
-TOS_SECRET_KEY='T0dReU1USm1PVEkzT0RSa05EY3hZamt6Wm1SalpqUmlOamhqTnpZMVlUVQ=='
+TOS_ACCESS_KEY=
+TOS_SECRET_KEY=
 
-ARK_API_KEY = "817dff39-5586-4f9b-acba-55004167c0b1"
+ARK_API_KEY = 

+ 7 - 3
README.md

@@ -6,6 +6,10 @@
 4、根据主推款信息和【商品ID】&【颜色ID】获取 》【主推款频次】
 5、根据主推款信息和【商品ID】&【颜色ID】获取 》【组合订单】
 
-## TODO
-1. 连带率 转为 Float
-2. 连带率 单元格格式设置为 百分数保留两位小数
+## 项目启动
+```pyhon
+git clone [本项目]
+cd large-order-fusion
+uv sync
+uv run python main.py
+```

+ 0 - 290
mer1.py

@@ -1,290 +0,0 @@
-import openpyxl
-from openpyxl.styles import Font, Alignment, Border, Side, PatternFill, NamedStyle
-from openpyxl.drawing.image import Image
-from openpyxl.utils import get_column_letter
-from openpyxl.worksheet.merge import MergedCellRange
-import os
-import copy
-
-def copy_cell_style_complete(src_cell, dest_cell):
-    """
-    完整复制单元格所有样式属性
-    """
-    try:
-        # 1. 复制字体
-        if src_cell.font:
-            dest_cell.font = Font(
-                name=src_cell.font.name,
-                size=src_cell.font.size,
-                bold=src_cell.font.bold,
-                italic=src_cell.font.italic,
-                underline=src_cell.font.underline,
-                strike=src_cell.font.strike,
-                color=copy.copy(src_cell.font.color)
-            )
-        
-        # 2. 复制对齐方式
-        if src_cell.alignment:
-            dest_cell.alignment = Alignment(
-                horizontal=src_cell.alignment.horizontal,
-                vertical=src_cell.alignment.vertical,
-                text_rotation=src_cell.alignment.text_rotation,
-                wrap_text=src_cell.alignment.wrap_text,
-                shrink_to_fit=src_cell.alignment.shrink_to_fit,
-                indent=src_cell.alignment.indent
-            )
-        
-        # 3. 复制边框
-        if src_cell.border:
-            dest_cell.border = Border(
-                left=copy_border_side(src_cell.border.left),
-                right=copy_border_side(src_cell.border.right),
-                top=copy_border_side(src_cell.border.top),
-                bottom=copy_border_side(src_cell.border.bottom)
-            )
-        
-        # 4. 复制填充颜色
-        if src_cell.fill:
-            if src_cell.fill.fill_type == 'patternFill':
-                dest_cell.fill = PatternFill(
-                    fill_type=src_cell.fill.fill_type,
-                    start_color=src_cell.fill.start_color,
-                    end_color=src_cell.fill.end_color,
-                    patternType=src_cell.fill.patternType
-                )
-            elif src_cell.fill.fill_type == 'gradientFill':
-                # 处理渐变填充(如果需要)
-                pass
-        
-        # 5. 复制数字格式
-        dest_cell.number_format = src_cell.number_format
-        
-        # 6. 复制保护设置
-        dest_cell.protection = copy.copy(src_cell.protection)
-        
-    except Exception as e:
-        print(f"复制单元格样式时出错: {e}")
-
-
-def copy_border_side(side):
-    """复制边框边"""
-    if side and side.style:
-        return Side(
-            style=side.style,
-            color=copy.copy(side.color)
-        )
-    return None
-
-def copy_merged_cells(src_ws, dest_ws, row_offset=0, col_offset=0):
-    """
-    复制合并单元格设置
-    """
-    try:
-        for merged_range in src_ws.merged_cells.ranges:
-            # 调整合并单元格的位置
-            min_row = merged_range.min_row + row_offset
-            max_row = merged_range.max_row + row_offset
-            min_col = merged_range.min_col + col_offset
-            max_col = merged_range.max_col + col_offset
-            
-            # 在目标工作表中创建合并单元格
-            dest_ws.merge_cells(
-                start_row=min_row, 
-                start_column=min_col,
-                end_row=max_row, 
-                end_column=max_col
-            )
-            print(f"复制合并单元格: {get_column_letter(min_col)}{min_row}:{get_column_letter(max_col)}{max_row}")
-            
-    except Exception as e:
-        print(f"复制合并单元格时出错: {e}")
-
-def copy_row_heights_complete(src_ws, dest_ws, start_row=1):
-    """
-    完整复制行高设置
-    """
-    try:
-        for row_idx, row_dim in src_ws.row_dimensions.items():
-            if row_dim.height is not None:
-                dest_row = start_row + row_idx - 1
-                dest_ws.row_dimensions[dest_row].height = row_dim.height
-                
-                # 复制其他行属性
-                dest_ws.row_dimensions[dest_row].hidden = row_dim.hidden
-    except Exception as e:
-        print(f"复制行高时出错: {e}")
-
-def copy_column_widths_complete(src_ws, dest_ws, start_col=1):
-    """
-    完整复制列宽设置
-    """
-    try:
-        for col_idx, col_dim in src_ws.column_dimensions.items():
-            if col_dim.width is not None:
-                dest_col_letter = get_column_letter(start_col + (ord(col_idx) - ord('A')))
-                dest_ws.column_dimensions[dest_col_letter].width = col_dim.width
-                
-                # 复制其他列属性
-                dest_ws.column_dimensions[dest_col_letter].hidden = col_dim.hidden
-    except Exception as e:
-        print(f"复制列宽时出错: {e}")
-
-def copy_images_improved(src_ws, dest_ws, row_offset=0):
-    """
-    改进的图片复制函数,处理各种图片嵌入方式
-    """
-    try:
-        # 方法1: 直接复制图片对象
-        for img in src_ws._images:
-            try:
-                # 创建新的图片对象
-                if hasattr(img, 'ref') and img.ref:
-                    # 如果有图片引用,使用引用创建新图片
-                    new_img = Image(img.ref)
-                elif hasattr(img, 'path') and img.path and os.path.exists(img.path):
-                    # 如果有图片路径,使用路径创建新图片
-                    new_img = Image(img.path)
-                else:
-                    # 尝试从图片数据创建
-                    img_data = img._data()
-                    img_stream = io.BytesIO(img_data)
-                    new_img = Image(img_stream)
-                
-                # 设置图片位置(考虑行偏移)
-                if hasattr(img, 'anchor'):
-                    new_img.anchor = img.anchor
-                    # 调整行位置
-                    if row_offset > 0:
-                        # 这里需要根据具体锚点类型调整
-                        if hasattr(new_img.anchor, '_from') and hasattr(new_img.anchor._from, 'row'):
-                            new_img.anchor._from.row += row_offset
-                        if hasattr(new_img.anchor, 'to') and hasattr(new_img.anchor.to, 'row'):
-                            new_img.anchor.to.row += row_offset
-                
-                dest_ws.add_image(new_img)
-                print(f"成功复制图片到位置: {new_img.anchor}")
-                
-            except Exception as img_error:
-                print(f"复制单个图片时出错: {img_error}")
-                continue
-                
-    except Exception as e:
-        print(f"图片复制过程中出错: {e}")
-
-def copy_worksheet_complete(src_ws, dest_ws, start_row=1, start_col=1):
-    """
-    完整复制工作表的所有内容和样式
-    """
-    row_offset = start_row - 1
-    col_offset = start_col - 1
-    
-    # 1. 先复制合并单元格
-    copy_merged_cells(src_ws, dest_ws, row_offset, col_offset)
-    
-    # 2. 复制行高和列宽
-    copy_row_heights_complete(src_ws, dest_ws, start_row)
-    copy_column_widths_complete(src_ws, dest_ws, start_col)
-    
-    # 3. 复制单元格内容和样式
-    for row_idx, row in enumerate(src_ws.iter_rows(), 1):
-        for col_idx, cell in enumerate(row, 1):
-            dest_row = row_idx + row_offset
-            dest_col = col_idx + col_offset
-            
-            dest_cell = dest_ws.cell(
-                row=dest_row, 
-                column=dest_col, 
-                value=cell.value
-            )
-            copy_cell_style_complete(cell, dest_cell)
-    
-    # 4. 复制图片
-    copy_images_improved(src_ws, dest_ws, row_offset)
-
-def merge_fashion_tables_complete(file1, file2, output_file):
-    """
-    完整保留样式的服装搭配表格合并
-    """
-    try:
-        # 加载工作簿
-        wb1 = openpyxl.load_workbook(file1)
-        wb2 = openpyxl.load_workbook(file2)
-        
-        # 创建新工作簿
-        merged_wb = openpyxl.Workbook()
-        merged_ws = merged_wb.active
-        merged_ws.title = "合并服装搭配表"
-        
-        # 获取工作表
-        ws1 = wb1.active
-        ws2 = wb2.active
-        
-        print("开始合并第一个表格...")
-        # 复制第一个表格(从第1行开始)
-        copy_worksheet_complete(ws1, merged_ws, start_row=1, start_col=1)
-        
-        # 计算第一个表格的行数
-        first_table_rows = ws1.max_row
-        
-        print("开始合并第二个表格...")
-        # 复制第二个表格(从第一个表格末尾+2行开始,留出间隔)
-        copy_worksheet_complete(ws2, merged_ws, start_row=first_table_rows + 2, start_col=1)
-        
-        # 保存合并结果
-        merged_wb.save(output_file)
-        print(f"表格合并完成!输出文件: {output_file}")
-        
-        # 验证结果
-        verify_merge_complete(output_file, ws1, ws2)
-        
-        return True
-        
-    except Exception as e:
-        print(f"合并过程中出现错误: {e}")
-        import traceback
-        traceback.print_exc()
-        return False
-
-def verify_merge_complete(output_file, ws1, ws2):
-    """
-    验证合并结果是否完整
-    """
-    try:
-        wb = openpyxl.load_workbook(output_file)
-        ws = wb.active
-        
-        print("\n=== 合并结果验证 ===")
-        print(f"总行数: {ws.max_row}")
-        print(f"总列数: {ws.max_column}")
-        print(f"合并单元格数量: {len(ws.merged_cells.ranges)}")
-        print(f"图片数量: {len(ws._images)}")
-        
-        # 检查样式
-        sample_cell = ws.cell(row=1, column=1)
-        if sample_cell.fill.start_color:
-            print(f"示例单元格填充颜色: {sample_cell.fill.start_color}")
-        
-        if sample_cell.alignment:
-            print(f"示例单元格对齐方式: {sample_cell.alignment.horizontal}")
-        
-        wb.close()
-        
-    except Exception as e:
-        print(f"验证过程中出错: {e}")
-
-# 使用示例
-if __name__ == "__main__":
-    file1 = "./output/xxxxxxxxxxx.xlsx"
-    file2 = "./output/10CL6E1U086Y.xlsx"
-    output = "merged_data.xlsx"
-
-    
-    if os.path.exists(file1) and os.path.exists(file2):
-        print("开始合并服装搭配表格(完整样式保留)...")
-        success = merge_fashion_tables_complete(file1, file2, output)
-        if success:
-            print("合并成功!")
-        else:
-            print("合并失败!")
-    else:
-        print("请确保两个Excel文件都存在!")

+ 0 - 65
merge_excel.py

@@ -1,65 +0,0 @@
-from clickhouse_driver import Client
-import time
-import os
-import clickhouse_connect
-from dotenv import load_dotenv
-load_dotenv()
-# SQL查询语句
-SQL_QUERY = """
-select g.code, g.name, cl.`code`, cl.name, sea.name, cat.name, sg.sales_price
-from rbp.rbp_sales_order_bill_size as ss
-left join rbp.rbp_goods g on ss.goods_id = g.id
-left join rbp.rbp_color cl on ss.color_id = cl.id
-left join rbp.rbp_sales_order_bill_goods sg on sg.goods_id = g.id
-LEFT JOIN rbp.rbp_season sea on g.season_id = toInt64(sea.id) 
-LEFT JOIN rbp.rbp_category cat on g.category_id = toInt64(cat.id)
-where ss.goods_id = 2586599671001600 and ss.color_id = 2055025368795724  limit 0, 1;
-"""
-
-# 查询ClickHouse数据库
-def query_clickhouse(sql_query, max_retries=3):
-    """
-    连接ClickHouse数据库并执行查询
-    """
-    for attempt in range(max_retries):
-        try:
-
-            print(type(os.getenv("CONNECT_TIMEOUT")))
-            # 创建ClickHouse客户端连接
-            client = clickhouse_connect.get_client(
-                host=os.getenv('HOST'),
-                port=int(os.getenv('PORT')),
-                user=os.getenv('USER'),
-                password=os.getenv('PASSWORD'),
-                database=os.getenv('DATABASE'),
-                connect_timeout=int(os.getenv('CONNECT_TIMEOUT')),
-                send_receive_timeout=int(os.getenv('SEND_RECEIVE_TIMEOUT'))
-            )
-            
-            print(f"第{attempt+1}次尝试连接成功")
-            
-            # 执行查询语句
-            result = client.command(sql_query)
-            return result
-                
-        except Exception as e:
-            print(f"第{attempt+1}次尝试连接失败: {str(e)}")
-            if attempt < max_retries - 1:
-                print(f"Waiting 2 seconds before retrying...")
-                time.sleep(2)
-            else:
-                print(f"经过{max_retries}次尝试后仍然无法连接到数据库")
-                return None
-        finally:
-            # 关闭连接
-            if 'client' in locals():
-                try:
-                    client.disconnect()
-                    print("数据库连接已关闭")
-                except:
-                    pass
-
-# 执行查询
-if __name__ == "__main__":
-    query_result = query_clickhouse(SQL_QUERY)
-    print(query_result)

BIN
merged_data.xlsx


+ 0 - 1324
result.json

@@ -1,1324 +0,0 @@
-{
-    "primary_goods_info": {
-        "goods_info": {
-            "sku": "1ACLAB10A",
-            "name": "水洗羊毛短外套+半裙+全羊毛衫",
-            "color_code": "86Y",
-            "color": "咖啡色",
-            "season": "冬季",
-            "category": "套装",
-            "image_url": "http://pim.gloria.com.cn/productImg/1ACLAB10A/origin/color/0747e69c5a10463db9bfddee7eb495c3.jpg?x-oss-process=image/resize,w_300",
-            "image_path": "./data/sku_image/1ACLAB10A86Y.png",
-            "skc": "1ACLAB10A86Y",
-            "price": "1999"
-        },
-        "goods_code": "1ACLAB10A",
-        "color_code": "86Y",
-        "goods_id": "2089741809109504",
-        "color_id": "2055025368803881",
-        "freq_two": 561,
-        "freq_three": 4101
-    },
-    "combine_two_info": [
-        {
-            "goods_info": {
-                "sku": "189A9M06I",
-                "name": "女士长袖长裤睡衣两件套",
-                "color_code": "20D",
-                "color": "白底黑点",
-                "season": "秋季",
-                "category": "家居",
-                "goods_id": "2739585094554112",
-                "color_id": "2055025368795719",
-                "image_url": null,
-                "image_path": null,
-                "skc": "189A9M06I20D",
-                "price": "1799"
-            },
-            "freq": 26,
-            "count": 52,
-            "main_freq": 561,
-            "sales": 98748.0,
-            "combine_rate": 0.04634581105169341
-        },
-        {
-            "goods_info": {
-                "sku": "1ECRAC070",
-                "name": "羊毛混纺套装(马甲+半裙+内搭)",
-                "color_code": "07X",
-                "color": "浅灰中灰双色",
-                "season": "冬季",
-                "category": "套装",
-                "goods_id": "2714090201747968",
-                "color_id": "2178212532990464",
-                "image_url": "http://pim.gloria.com.cn/productImg/1ECRAC070/origin/color/51a109613c0a49c69bac8b9e83fe6e3c.jpg?x-oss-process=image/resize,w_300",
-                "image_path": "./data/sku_image/1ECRAC07007X.png",
-                "skc": "1ECRAC07007X",
-                "price": "999"
-            },
-            "freq": 20,
-            "count": 40,
-            "main_freq": 561,
-            "sales": 62958.0,
-            "combine_rate": 0.035650623885918005
-        },
-        {
-            "goods_info": {
-                "sku": "1A5A9B12F",
-                "name": "小号环保袋",
-                "color_code": "64C",
-                "color": "黑底米白山茶花提花",
-                "season": "夏季",
-                "category": "饰品",
-                "goods_id": "2724795234365952",
-                "color_id": "2250812625949184",
-                "image_url": "http://pim.gloria.com.cn/productImg/1A5A9B12F/origin/color/03428988ee574cbbbf3333489259295c.jpg?x-oss-process=image/resize,w_300",
-                "image_path": "./data/sku_image/1A5A9B12F64C.png",
-                "skc": "1A5A9B12F64C",
-                "price": "139"
-            },
-            "freq": 17,
-            "count": 34,
-            "main_freq": 561,
-            "sales": 36346.0,
-            "combine_rate": 0.030303030303030304
-        },
-        {
-            "goods_info": {
-                "sku": "112L6E27A",
-                "name": "精纺羊毛风衣外套(配送本布腰带)",
-                "color_code": "61Y",
-                "color": "浅驼",
-                "season": "秋季",
-                "category": "外套",
-                "goods_id": "2067913521187328",
-                "color_id": "2055025368795673",
-                "image_url": "http://pim.gloria.com.cn/productImg/112L6E27A/origin/color/9986e5687a9c4b63aa1728a9ebdaeae8.jpg?x-oss-process=image/resize,w_300",
-                "image_path": "./data/sku_image/112L6E27A61Y.png",
-                "skc": "112L6E27A61Y",
-                "price": "1698"
-            },
-            "freq": 16,
-            "count": 32,
-            "main_freq": 561,
-            "sales": 59152.0,
-            "combine_rate": 0.0285204991087344
-        },
-        {
-            "goods_info": {
-                "sku": "1B9L6E040",
-                "name": "水洗羊毛短外套",
-                "color_code": "86Y",
-                "color": "咖啡色",
-                "season": "秋季",
-                "category": "外套",
-                "goods_id": "2133763145124352",
-                "color_id": "2055025368803881",
-                "image_url": "http://pim.gloria.com.cn/productImg/1B9L6E040/origin/color/EMM/tmz(1)_1688367599559.jpg?x-oss-process=image/resize,w_300",
-                "image_path": "./data/sku_image/1B9L6E04086Y.png",
-                "skc": "1B9L6E04086Y",
-                "price": "799"
-            },
-            "freq": 10,
-            "count": 20,
-            "main_freq": 561,
-            "sales": 27980.0,
-            "combine_rate": 0.017825311942959002
-        },
-        {
-            "goods_info": {
-                "sku": "195A9M05J",
-                "name": "吊带睡裙",
-                "color_code": "06D",
-                "color": "杏底印花",
-                "season": "夏季",
-                "category": "饰品",
-                "goods_id": "2472689685254656",
-                "color_id": "2055025368787482",
-                "image_url": "http://pim.gloria.com.cn/productImg/195A9M05J/origin/color/1d3efc5bd3d9493486f3d05660fd4907.jpg?x-oss-process=image/resize,w_300",
-                "image_path": "./data/sku_image/195A9M05J06D.png",
-                "skc": "195A9M05J06D",
-                "price": "799"
-            },
-            "freq": 10,
-            "count": 20,
-            "main_freq": 561,
-            "sales": 27980.0,
-            "combine_rate": 0.017825311942959002
-        },
-        {
-            "goods_info": {
-                "sku": "1EDJAC330",
-                "name": "针织西装套装(西装+连衣裙)",
-                "color_code": "50B",
-                "color": "灰黑色",
-                "season": "冬季",
-                "category": "套装",
-                "goods_id": "2724692049818112",
-                "color_id": "2055025368803872",
-                "image_url": "http://pim.gloria.com.cn/productImg/1EDJAC330/origin/color/98d4625f72664d4783fcaece01d5d320.jpg?x-oss-process=image/resize,w_300",
-                "image_path": "./data/sku_image/1EDJAC33050B.png",
-                "skc": "1EDJAC33050B",
-                "price": "1499"
-            },
-            "freq": 9,
-            "count": 18,
-            "main_freq": 561,
-            "sales": 31482.0,
-            "combine_rate": 0.016042780748663103
-        },
-        {
-            "goods_info": {
-                "sku": "1BNR4K360",
-                "name": "荷叶领丝绒连衣裙",
-                "color_code": "00B",
-                "color": "黑色",
-                "season": "冬季",
-                "category": "连衣裙",
-                "goods_id": "2289431368610304",
-                "color_id": "2055025368779367",
-                "image_url": "http://pim.gloria.com.cn/productImg/1BNR4K360/origin/color/9cf446d1c9804c86a220d8c0bcf6fd18.jpg?x-oss-process=image/resize,w_300",
-                "image_path": "./data/sku_image/1BNR4K36000B.png",
-                "skc": "1BNR4K36000B",
-                "price": "699"
-            },
-            "freq": 8,
-            "count": 16,
-            "main_freq": 561,
-            "sales": 21584.0,
-            "combine_rate": 0.0142602495543672
-        },
-        {
-            "goods_info": {
-                "sku": "1CDLAB610",
-                "name": "水洗羊毛套装(毛织+背心连衣裙)",
-                "color_code": "44B",
-                "color": "烟灰",
-                "season": "冬季",
-                "category": "套装",
-                "goods_id": "2457369111015936",
-                "color_id": "2055025368787546",
-                "image_url": "http://pim.gloria.com.cn/productImg/1CDLAB610/origin/color/081e976aac684608b35d01a8e8f24774.jpg?x-oss-process=image/resize,w_300",
-                "image_path": "./data/sku_image/1CDLAB61044B.png",
-                "skc": "1CDLAB61044B",
-                "price": "1499"
-            },
-            "freq": 8,
-            "count": 16,
-            "main_freq": 561,
-            "sales": 27634.2,
-            "combine_rate": 0.0142602495543672
-        },
-        {
-            "goods_info": {
-                "sku": "1E8J6E0S0",
-                "name": "全羊毛开衫",
-                "color_code": "91R",
-                "color": "酒红",
-                "season": "秋季",
-                "category": "外套",
-                "goods_id": "2650713725325824",
-                "color_id": "2055025368787480",
-                "image_url": "http://pim.gloria.com.cn/productImg/1E8J6E0S0/origin/color/defae75de52749eb9174f06d40ec6e01.jpg?x-oss-process=image/resize,w_300",
-                "image_path": "./data/sku_image/1E8J6E0S091R.png",
-                "skc": "1E8J6E0S091R",
-                "price": "599"
-            },
-            "freq": 7,
-            "count": 14,
-            "main_freq": 561,
-            "sales": 18186.0,
-            "combine_rate": 0.012477718360071301
-        },
-        {
-            "goods_info": {
-                "sku": "1381T3001",
-                "name": "20寸环球之旅限量旅行箱(黑灰版)",
-                "color_code": "00B",
-                "color": "黑色",
-                "season": "夏季",
-                "category": "饰品",
-                "goods_id": "2235639419843072",
-                "color_id": "2055025368779367",
-                "image_url": null,
-                "image_path": null,
-                "skc": "1381T300100B",
-                "price": "599"
-            },
-            "freq": 7,
-            "count": 14,
-            "main_freq": 561,
-            "sales": 18186.0,
-            "combine_rate": 0.012477718360071301
-        },
-        {
-            "goods_info": {
-                "sku": "195A9M05N",
-                "name": "吊带睡裙",
-                "color_code": "07W",
-                "color": "米色",
-                "season": "夏季",
-                "category": "饰品",
-                "goods_id": "2481831999058432",
-                "color_id": "2055025368795710",
-                "image_url": "http://pim.gloria.com.cn/productImg/195A9M05N/origin/color/ccdbd630c3e64f3b823aee37cc330bed.jpg?x-oss-process=image/resize,w_300",
-                "image_path": "./data/sku_image/195A9M05N07W.png",
-                "skc": "195A9M05N07W",
-                "price": "799"
-            },
-            "freq": 7,
-            "count": 14,
-            "main_freq": 561,
-            "sales": 19586.0,
-            "combine_rate": 0.012477718360071301
-        },
-        {
-            "goods_info": {
-                "sku": "1C2R2B06B",
-                "name": "黑白提花马面裙(配送打底裙)",
-                "color_code": "64C",
-                "color": "黑底米白山茶花提花",
-                "season": "春季",
-                "category": "半截裙",
-                "goods_id": "2343267549057536",
-                "color_id": "2250812625949184",
-                "image_url": "http://pim.gloria.com.cn/productImg/1C2R2B06B/origin/color/6b02505533534d0fbaedbc7be7bf6635.jpg?x-oss-process=image/resize,w_300",
-                "image_path": "./data/sku_image/1C2R2B06B64C.png",
-                "skc": "1C2R2B06B64C",
-                "price": "699"
-            },
-            "freq": 7,
-            "count": 14,
-            "main_freq": 561,
-            "sales": 18886.0,
-            "combine_rate": 0.012477718360071301
-        },
-        {
-            "goods_info": {
-                "sku": "1ECCAA230",
-                "name": "两件套(假两件拉链上衣+长裤)",
-                "color_code": "91Y",
-                "color": "啡色",
-                "season": "冬季",
-                "category": "套装",
-                "goods_id": "2714090216542720",
-                "color_id": "2055025368795724",
-                "image_url": "http://pim.gloria.com.cn/productImg/1ECCAA230/origin/color/93c9ce3bea254b14a54ddef3fa25eff1.jpg?x-oss-process=image/resize,w_300",
-                "image_path": "./data/sku_image/1ECCAA23091Y.png",
-                "skc": "1ECCAA23091Y",
-                "price": "1399"
-            },
-            "freq": 6,
-            "count": 12,
-            "main_freq": 561,
-            "sales": 20388.0,
-            "combine_rate": 0.0106951871657754
-        },
-        {
-            "goods_info": {
-                "sku": "1361T3001",
-                "name": "20寸「乐园」旅行箱",
-                "color_code": "00B",
-                "color": "黑色",
-                "season": "夏季",
-                "category": "饰品",
-                "goods_id": "2178367505592832",
-                "color_id": "2055025368779367",
-                "image_url": "http://pim.gloria.com.cn/productImg/1361T3001/origin/color/0348db290d2a4610a68455b0c69503b4.png?x-oss-process=image/resize,w_300",
-                "image_path": "./data/sku_image/1361T300100B.png",
-                "skc": "1361T300100B",
-                "price": "599"
-            },
-            "freq": 6,
-            "count": 12,
-            "main_freq": 561,
-            "sales": 15588.0,
-            "combine_rate": 0.0106951871657754
-        },
-        {
-            "goods_info": {
-                "sku": "1E1CCD020",
-                "name": "修身直筒牛仔裤",
-                "color_code": "75U",
-                "color": "牛仔蓝",
-                "season": "春季",
-                "category": "牛仔裤类",
-                "goods_id": "2517339663135232",
-                "color_id": "2055025368795675",
-                "image_url": "http://pim.gloria.com.cn/productImg/1E1CCD020/origin/color/6a89495509fd48be8d370e9eaa07862a.jpg?x-oss-process=image/resize,w_300",
-                "image_path": "./data/sku_image/1E1CCD02075U.png",
-                "skc": "1E1CCD02075U",
-                "price": "599"
-            },
-            "freq": 6,
-            "count": 12,
-            "main_freq": 561,
-            "sales": 15588.0,
-            "combine_rate": 0.0106951871657754
-        },
-        {
-            "goods_info": {
-                "sku": "10CL6E570",
-                "name": "全羊绒大衣",
-                "color_code": "38H",
-                "color": "紫绒",
-                "season": "冬季",
-                "category": "外套",
-                "goods_id": "2067905218292224",
-                "color_id": "2055025368803884",
-                "image_url": "http://pim.gloria.com.cn/productImg/10CL6E570/origin/color/1f311f8c13444992bd95298e85a9beea.jpg?x-oss-process=image/resize,w_300",
-                "image_path": "./data/sku_image/10CL6E57038H.png",
-                "skc": "10CL6E57038H",
-                "price": "5999"
-            },
-            "freq": 5,
-            "count": 10,
-            "main_freq": 561,
-            "sales": 39990.0,
-            "combine_rate": 0.008912655971479501
-        },
-        {
-            "goods_info": {
-                "sku": "1ECLAB390",
-                "name": "仿麂皮马甲针织连衣裙套装(马甲+连衣裙+配仿麂皮腰带)",
-                "color_code": "91W",
-                "color": "深杏",
-                "season": "冬季",
-                "category": "套装",
-                "goods_id": "2714090722210304",
-                "color_id": "2055025368787496",
-                "image_url": "http://pim.gloria.com.cn/productImg/1ECLAB390/origin/color/21b2a364fb3643578faf4e4c44e87cfa.jpg?x-oss-process=image/resize,w_300",
-                "image_path": "./data/sku_image/1ECLAB39091W.png",
-                "skc": "1ECLAB39091W",
-                "price": "999"
-            },
-            "freq": 5,
-            "count": 10,
-            "main_freq": 561,
-            "sales": 14990.0,
-            "combine_rate": 0.008912655971479501
-        },
-        {
-            "goods_info": {
-                "sku": "1EDL2D110",
-                "name": "弹力针织八片裙伞裙",
-                "color_code": "03X",
-                "color": "黑色花灰双色",
-                "season": "冬季",
-                "category": "半截裙",
-                "goods_id": "2714089907163648",
-                "color_id": "2178212533801472",
-                "image_url": "http://pim.gloria.com.cn/productImg/1EDL2D110/origin/color/54fcd76b85124510a9f2640e743b9f8e.jpg?x-oss-process=image/resize,w_300",
-                "image_path": "./data/sku_image/1EDL2D11003X.png",
-                "skc": "1EDL2D11003X",
-                "price": "499"
-            },
-            "freq": 5,
-            "count": 10,
-            "main_freq": 561,
-            "sales": 14988.0,
-            "combine_rate": 0.008912655971479501
-        },
-        {
-            "goods_info": {
-                "sku": "1E3JCD23D",
-                "name": "宽松直筒牛仔裤",
-                "color_code": "75U",
-                "color": "牛仔蓝",
-                "season": "春季",
-                "category": "牛仔裤类",
-                "goods_id": "2634847034864128",
-                "color_id": "2055025368795675",
-                "image_url": "http://pim.gloria.com.cn/productImg/1E3JCD23D/origin/color/cd353bd95d6f46fe9bcef1d27f52d434.jpg?x-oss-process=image/resize,w_300",
-                "image_path": "./data/sku_image/1E3JCD23D75U.png",
-                "skc": "1E3JCD23D75U",
-                "price": "599"
-            },
-            "freq": 5,
-            "count": 10,
-            "main_freq": 561,
-            "sales": 12990.0,
-            "combine_rate": 0.008912655971479501
-        }
-    ],
-    "combine_three_info": [
-        {
-            "goods_info": [
-                {
-                    "sku": "112L6E27A",
-                    "name": "精纺羊毛风衣外套(配送本布腰带)",
-                    "color_code": "61Y",
-                    "color": "浅驼",
-                    "season": "秋季",
-                    "category": "外套",
-                    "goods_id": "2067913521187328",
-                    "color_id": "2055025368795673",
-                    "image_url": "http://pim.gloria.com.cn/productImg/112L6E27A/origin/color/9986e5687a9c4b63aa1728a9ebdaeae8.jpg?x-oss-process=image/resize,w_300",
-                    "image_path": "./data/sku_image/112L6E27A61Y.png",
-                    "skc": "112L6E27A61Y",
-                    "price": "1698"
-                },
-                {
-                    "sku": "1381T3001",
-                    "name": "20寸环球之旅限量旅行箱(黑灰版)",
-                    "color_code": "00B",
-                    "color": "黑色",
-                    "season": "夏季",
-                    "category": "饰品",
-                    "goods_id": "2235639419843072",
-                    "color_id": "2055025368779367",
-                    "image_url": null,
-                    "image_path": null,
-                    "skc": "1381T300100B",
-                    "price": "599"
-                }
-            ],
-            "freq": 4,
-            "count": 12,
-            "main_freq": 4101,
-            "sales": 17184.0,
-            "combine_rate": 0.000975371860521824
-        },
-        {
-            "goods_info": [
-                {
-                    "sku": "1ECRAC070",
-                    "name": "羊毛混纺套装(马甲+半裙+内搭)",
-                    "color_code": "07X",
-                    "color": "浅灰中灰双色",
-                    "season": "冬季",
-                    "category": "套装",
-                    "goods_id": "2714090201747968",
-                    "color_id": "2178212532990464",
-                    "image_url": "http://pim.gloria.com.cn/productImg/1ECRAC070/origin/color/51a109613c0a49c69bac8b9e83fe6e3c.jpg?x-oss-process=image/resize,w_300",
-                    "image_path": "./data/sku_image/1ECRAC07007X.png",
-                    "skc": "1ECRAC07007X",
-                    "price": "999"
-                },
-                {
-                    "sku": "189A9M06I",
-                    "name": "女士长袖长裤睡衣两件套",
-                    "color_code": "20D",
-                    "color": "白底黑点",
-                    "season": "秋季",
-                    "category": "家居",
-                    "goods_id": "2739585094554112",
-                    "color_id": "2055025368795719",
-                    "image_url": null,
-                    "image_path": null,
-                    "skc": "189A9M06I20D",
-                    "price": "1799"
-                }
-            ],
-            "freq": 4,
-            "count": 12,
-            "main_freq": 4101,
-            "sales": 19188.0,
-            "combine_rate": 0.000975371860521824
-        },
-        {
-            "goods_info": [
-                {
-                    "sku": "112L6E27A",
-                    "name": "精纺羊毛风衣外套(配送本布腰带)",
-                    "color_code": "61Y",
-                    "color": "浅驼",
-                    "season": "秋季",
-                    "category": "外套",
-                    "goods_id": "2067913521187328",
-                    "color_id": "2055025368795673",
-                    "image_url": "http://pim.gloria.com.cn/productImg/112L6E27A/origin/color/9986e5687a9c4b63aa1728a9ebdaeae8.jpg?x-oss-process=image/resize,w_300",
-                    "image_path": "./data/sku_image/112L6E27A61Y.png",
-                    "skc": "112L6E27A61Y",
-                    "price": "1698"
-                },
-                {
-                    "sku": "189A9M06I",
-                    "name": "女士长袖长裤睡衣两件套",
-                    "color_code": "20D",
-                    "color": "白底黑点",
-                    "season": "秋季",
-                    "category": "家居",
-                    "goods_id": "2739585094554112",
-                    "color_id": "2055025368795719",
-                    "image_url": null,
-                    "image_path": null,
-                    "skc": "189A9M06I20D",
-                    "price": "1799"
-                }
-            ],
-            "freq": 4,
-            "count": 12,
-            "main_freq": 4101,
-            "sales": 21984.0,
-            "combine_rate": 0.000975371860521824
-        },
-        {
-            "goods_info": [
-                {
-                    "sku": "112L6E27A",
-                    "name": "精纺羊毛风衣外套(配送本布腰带)",
-                    "color_code": "61Y",
-                    "color": "浅驼",
-                    "season": "秋季",
-                    "category": "外套",
-                    "goods_id": "2067913521187328",
-                    "color_id": "2055025368795673",
-                    "image_url": "http://pim.gloria.com.cn/productImg/112L6E27A/origin/color/9986e5687a9c4b63aa1728a9ebdaeae8.jpg?x-oss-process=image/resize,w_300",
-                    "image_path": "./data/sku_image/112L6E27A61Y.png",
-                    "skc": "112L6E27A61Y",
-                    "price": "1698"
-                },
-                {
-                    "sku": "195A9M05J",
-                    "name": "吊带睡裙",
-                    "color_code": "06D",
-                    "color": "杏底印花",
-                    "season": "夏季",
-                    "category": "饰品",
-                    "goods_id": "2472689685254656",
-                    "color_id": "2055025368787482",
-                    "image_url": "http://pim.gloria.com.cn/productImg/195A9M05J/origin/color/1d3efc5bd3d9493486f3d05660fd4907.jpg?x-oss-process=image/resize,w_300",
-                    "image_path": "./data/sku_image/195A9M05J06D.png",
-                    "skc": "195A9M05J06D",
-                    "price": "799"
-                }
-            ],
-            "freq": 3,
-            "count": 9,
-            "main_freq": 4101,
-            "sales": 13488.0,
-            "combine_rate": 0.000731528895391368
-        },
-        {
-            "goods_info": [
-                {
-                    "sku": "1361T3001",
-                    "name": "20寸「乐园」旅行箱",
-                    "color_code": "00B",
-                    "color": "黑色",
-                    "season": "夏季",
-                    "category": "饰品",
-                    "goods_id": "2178367505592832",
-                    "color_id": "2055025368779367",
-                    "image_url": "http://pim.gloria.com.cn/productImg/1361T3001/origin/color/0348db290d2a4610a68455b0c69503b4.png?x-oss-process=image/resize,w_300",
-                    "image_path": "./data/sku_image/1361T300100B.png",
-                    "skc": "1361T300100B",
-                    "price": "599"
-                },
-                {
-                    "sku": "1ECRAC070",
-                    "name": "羊毛混纺套装(马甲+半裙+内搭)",
-                    "color_code": "07X",
-                    "color": "浅灰中灰双色",
-                    "season": "冬季",
-                    "category": "套装",
-                    "goods_id": "2714090201747968",
-                    "color_id": "2178212532990464",
-                    "image_url": "http://pim.gloria.com.cn/productImg/1ECRAC070/origin/color/51a109613c0a49c69bac8b9e83fe6e3c.jpg?x-oss-process=image/resize,w_300",
-                    "image_path": "./data/sku_image/1ECRAC07007X.png",
-                    "skc": "1ECRAC07007X",
-                    "price": "999"
-                }
-            ],
-            "freq": 3,
-            "count": 9,
-            "main_freq": 4101,
-            "sales": 10791.0,
-            "combine_rate": 0.000731528895391368
-        },
-        {
-            "goods_info": [
-                {
-                    "sku": "1381T3001",
-                    "name": "20寸环球之旅限量旅行箱(黑灰版)",
-                    "color_code": "00B",
-                    "color": "黑色",
-                    "season": "夏季",
-                    "category": "饰品",
-                    "goods_id": "2235639419843072",
-                    "color_id": "2055025368779367",
-                    "image_url": null,
-                    "image_path": null,
-                    "skc": "1381T300100B",
-                    "price": "599"
-                },
-                {
-                    "sku": "1EDJAC330",
-                    "name": "针织西装套装(西装+连衣裙)",
-                    "color_code": "50B",
-                    "color": "灰黑色",
-                    "season": "冬季",
-                    "category": "套装",
-                    "goods_id": "2724692049818112",
-                    "color_id": "2055025368803872",
-                    "image_url": "http://pim.gloria.com.cn/productImg/1EDJAC330/origin/color/98d4625f72664d4783fcaece01d5d320.jpg?x-oss-process=image/resize,w_300",
-                    "image_path": "./data/sku_image/1EDJAC33050B.png",
-                    "skc": "1EDJAC33050B",
-                    "price": "1499"
-                }
-            ],
-            "freq": 3,
-            "count": 9,
-            "main_freq": 4101,
-            "sales": 12291.0,
-            "combine_rate": 0.000731528895391368
-        },
-        {
-            "goods_info": [
-                {
-                    "sku": "1ECC8A200",
-                    "name": "一键可收纳包装轻便羽绒马甲(女装)",
-                    "color_code": "07W",
-                    "color": "米色",
-                    "season": "冬季",
-                    "category": "羽绒",
-                    "goods_id": "2714090708840960",
-                    "color_id": "2055025368795710",
-                    "image_url": "http://pim.gloria.com.cn/productImg/1ECC8A200/origin/color/b3cb09b66d424e7cb2ad4369396d3e79.jpg?x-oss-process=image/resize,w_300",
-                    "image_path": "./data/sku_image/1ECC8A20007W.png",
-                    "skc": "1ECC8A20007W",
-                    "price": "799"
-                },
-                {
-                    "sku": "189A9M06I",
-                    "name": "女士长袖长裤睡衣两件套",
-                    "color_code": "20D",
-                    "color": "白底黑点",
-                    "season": "秋季",
-                    "category": "家居",
-                    "goods_id": "2739585094554112",
-                    "color_id": "2055025368795719",
-                    "image_url": null,
-                    "image_path": null,
-                    "skc": "189A9M06I20D",
-                    "price": "1799"
-                }
-            ],
-            "freq": 2,
-            "count": 6,
-            "main_freq": 4101,
-            "sales": 13791.0,
-            "combine_rate": 0.000487685930260912
-        },
-        {
-            "goods_info": [
-                {
-                    "sku": "112L6E27A",
-                    "name": "精纺羊毛风衣外套(配送本布腰带)",
-                    "color_code": "61Y",
-                    "color": "浅驼",
-                    "season": "秋季",
-                    "category": "外套",
-                    "goods_id": "2067913521187328",
-                    "color_id": "2055025368795673",
-                    "image_url": "http://pim.gloria.com.cn/productImg/112L6E27A/origin/color/9986e5687a9c4b63aa1728a9ebdaeae8.jpg?x-oss-process=image/resize,w_300",
-                    "image_path": "./data/sku_image/112L6E27A61Y.png",
-                    "skc": "112L6E27A61Y",
-                    "price": "1698"
-                },
-                {
-                    "sku": "1EDJAC330",
-                    "name": "针织西装套装(西装+连衣裙)",
-                    "color_code": "50B",
-                    "color": "灰黑色",
-                    "season": "冬季",
-                    "category": "套装",
-                    "goods_id": "2724692049818112",
-                    "color_id": "2055025368803872",
-                    "image_url": "http://pim.gloria.com.cn/productImg/1EDJAC330/origin/color/98d4625f72664d4783fcaece01d5d320.jpg?x-oss-process=image/resize,w_300",
-                    "image_path": "./data/sku_image/1EDJAC33050B.png",
-                    "skc": "1EDJAC33050B",
-                    "price": "1499"
-                }
-            ],
-            "freq": 2,
-            "count": 6,
-            "main_freq": 4101,
-            "sales": 10392.0,
-            "combine_rate": 0.000487685930260912
-        },
-        {
-            "goods_info": [
-                {
-                    "sku": "1C3C3D050",
-                    "name": "法式宽松造型感衬衫(配送原创印花丝巾)",
-                    "color_code": "03W",
-                    "color": "本白",
-                    "season": "春季",
-                    "category": "梭织衫",
-                    "goods_id": "2257787476013568",
-                    "color_id": "2055025368795660",
-                    "image_url": "http://pim.gloria.com.cn/productImg/1C3C3D050/origin/color/254989054d7e40d897eea658fe95e949.jpg?x-oss-process=image/resize,w_300",
-                    "image_path": "./data/sku_image/1C3C3D05003W.png",
-                    "skc": "1C3C3D05003W",
-                    "price": "399"
-                },
-                {
-                    "sku": "1CDLAB120",
-                    "name": "水洗羊毛套装(马甲+内搭+半裙)",
-                    "color_code": "44B",
-                    "color": "烟灰",
-                    "season": "冬季",
-                    "category": "套装",
-                    "goods_id": "2457369059037696",
-                    "color_id": "2055025368787546",
-                    "image_url": "http://pim.gloria.com.cn/productImg/1CDLAB120/origin/color/8069f2bcd5a34b1da0e36f4edfe168a5.jpg?x-oss-process=image/resize,w_300",
-                    "image_path": "./data/sku_image/1CDLAB12044B.png",
-                    "skc": "1CDLAB12044B",
-                    "price": "1599"
-                }
-            ],
-            "freq": 2,
-            "count": 6,
-            "main_freq": 4101,
-            "sales": 30693.6,
-            "combine_rate": 0.000487685930260912
-        },
-        {
-            "goods_info": [
-                {
-                    "sku": "112L6E27A",
-                    "name": "精纺羊毛风衣外套(配送本布腰带)",
-                    "color_code": "61Y",
-                    "color": "浅驼",
-                    "season": "秋季",
-                    "category": "外套",
-                    "goods_id": "2067913521187328",
-                    "color_id": "2055025368795673",
-                    "image_url": "http://pim.gloria.com.cn/productImg/112L6E27A/origin/color/9986e5687a9c4b63aa1728a9ebdaeae8.jpg?x-oss-process=image/resize,w_300",
-                    "image_path": "./data/sku_image/112L6E27A61Y.png",
-                    "skc": "112L6E27A61Y",
-                    "price": "1698"
-                },
-                {
-                    "sku": "1361T3001",
-                    "name": "20寸「乐园」旅行箱",
-                    "color_code": "00B",
-                    "color": "黑色",
-                    "season": "夏季",
-                    "category": "饰品",
-                    "goods_id": "2178367505592832",
-                    "color_id": "2055025368779367",
-                    "image_url": "http://pim.gloria.com.cn/productImg/1361T3001/origin/color/0348db290d2a4610a68455b0c69503b4.png?x-oss-process=image/resize,w_300",
-                    "image_path": "./data/sku_image/1361T300100B.png",
-                    "skc": "1361T300100B",
-                    "price": "599"
-                }
-            ],
-            "freq": 2,
-            "count": 6,
-            "main_freq": 4101,
-            "sales": 8592.0,
-            "combine_rate": 0.000487685930260912
-        },
-        {
-            "goods_info": [
-                {
-                    "sku": "10CL6E1U0",
-                    "name": "可水洗羊毛呢西装",
-                    "color_code": "86Y",
-                    "color": "咖啡色",
-                    "season": "冬季",
-                    "category": "外套",
-                    "goods_id": "2067905252772352",
-                    "color_id": "2055025368803881",
-                    "image_url": "http://pim.gloria.com.cn/productImg/10CL6E1U0/origin/color/1fc117d42fd0482b843ea0344d3a1f59.jpg?x-oss-process=image/resize,w_300",
-                    "image_path": "./data/sku_image/10CL6E1U086Y.png",
-                    "skc": "10CL6E1U086Y",
-                    "price": "1399"
-                },
-                {
-                    "sku": "10CL1A380",
-                    "name": "可水洗羊毛呢短裤",
-                    "color_code": "86Y",
-                    "color": "咖啡色",
-                    "season": "冬季",
-                    "category": "裤类",
-                    "goods_id": "2089738288351744",
-                    "color_id": "2055025368803881",
-                    "image_url": "http://pim.gloria.com.cn/productImg/10CL1A380/origin/color/a854fb7d243647b8a3835e6016d083c2.jpg?x-oss-process=image/resize,w_300",
-                    "image_path": "./data/sku_image/10CL1A38086Y.png",
-                    "skc": "10CL1A38086Y",
-                    "price": "398"
-                }
-            ],
-            "freq": 2,
-            "count": 6,
-            "main_freq": 4101,
-            "sales": 7592.0,
-            "combine_rate": 0.000487685930260912
-        },
-        {
-            "goods_info": [
-                {
-                    "sku": "1C3JAA570",
-                    "name": "天丝毛织套装(毛织上衣+毛织半裙)",
-                    "color_code": "00B",
-                    "color": "黑色",
-                    "season": "春季",
-                    "category": "套装",
-                    "goods_id": "2257787472237056",
-                    "color_id": "2055025368779367",
-                    "image_url": "http://pim.gloria.com.cn/productImg/1C3JAA570/origin/color/7aee2f31fdd343b596c3dd8291a3b6ba.jpg?x-oss-process=image/resize,w_300",
-                    "image_path": "./data/sku_image/1C3JAA57000B.png",
-                    "skc": "1C3JAA57000B",
-                    "price": "699"
-                },
-                {
-                    "sku": "1ECRAC070",
-                    "name": "羊毛混纺套装(马甲+半裙+内搭)",
-                    "color_code": "07X",
-                    "color": "浅灰中灰双色",
-                    "season": "冬季",
-                    "category": "套装",
-                    "goods_id": "2714090201747968",
-                    "color_id": "2178212532990464",
-                    "image_url": "http://pim.gloria.com.cn/productImg/1ECRAC070/origin/color/51a109613c0a49c69bac8b9e83fe6e3c.jpg?x-oss-process=image/resize,w_300",
-                    "image_path": "./data/sku_image/1ECRAC07007X.png",
-                    "skc": "1ECRAC07007X",
-                    "price": "999"
-                }
-            ],
-            "freq": 2,
-            "count": 6,
-            "main_freq": 4101,
-            "sales": 7394.0,
-            "combine_rate": 0.000487685930260912
-        },
-        {
-            "goods_info": [
-                {
-                    "sku": "1C6L1D140",
-                    "name": "宽松大摆长裤",
-                    "color_code": "03W",
-                    "color": "本白",
-                    "season": "夏季",
-                    "category": "裤类",
-                    "goods_id": "2324127752950272",
-                    "color_id": "2055025368795660",
-                    "image_url": "http://pim.gloria.com.cn/productImg/1C6L1D140/origin/color/5e09dc9ec6ee41af8eb143dc10e42ac9.jpg?x-oss-process=image/resize,w_300",
-                    "image_path": "./data/sku_image/1C6L1D14003W.png",
-                    "skc": "1C6L1D14003W",
-                    "price": "599"
-                },
-                {
-                    "sku": "1CDLAB120",
-                    "name": "水洗羊毛套装(马甲+内搭+半裙)",
-                    "color_code": "44B",
-                    "color": "烟灰",
-                    "season": "冬季",
-                    "category": "套装",
-                    "goods_id": "2457369059037696",
-                    "color_id": "2055025368787546",
-                    "image_url": "http://pim.gloria.com.cn/productImg/1CDLAB120/origin/color/8069f2bcd5a34b1da0e36f4edfe168a5.jpg?x-oss-process=image/resize,w_300",
-                    "image_path": "./data/sku_image/1CDLAB12044B.png",
-                    "skc": "1CDLAB12044B",
-                    "price": "1599"
-                }
-            ],
-            "freq": 2,
-            "count": 6,
-            "main_freq": 4101,
-            "sales": 5996.0,
-            "combine_rate": 0.000487685930260912
-        },
-        {
-            "goods_info": [
-                {
-                    "sku": "195A9M05J",
-                    "name": "吊带睡裙",
-                    "color_code": "06D",
-                    "color": "杏底印花",
-                    "season": "夏季",
-                    "category": "饰品",
-                    "goods_id": "2472689685254656",
-                    "color_id": "2055025368787482",
-                    "image_url": "http://pim.gloria.com.cn/productImg/195A9M05J/origin/color/1d3efc5bd3d9493486f3d05660fd4907.jpg?x-oss-process=image/resize,w_300",
-                    "image_path": "./data/sku_image/195A9M05J06D.png",
-                    "skc": "195A9M05J06D",
-                    "price": "799"
-                },
-                {
-                    "sku": "1ECRAC070",
-                    "name": "羊毛混纺套装(马甲+半裙+内搭)",
-                    "color_code": "07X",
-                    "color": "浅灰中灰双色",
-                    "season": "冬季",
-                    "category": "套装",
-                    "goods_id": "2714090201747968",
-                    "color_id": "2178212532990464",
-                    "image_url": "http://pim.gloria.com.cn/productImg/1ECRAC070/origin/color/51a109613c0a49c69bac8b9e83fe6e3c.jpg?x-oss-process=image/resize,w_300",
-                    "image_path": "./data/sku_image/1ECRAC07007X.png",
-                    "skc": "1ECRAC07007X",
-                    "price": "999"
-                }
-            ],
-            "freq": 2,
-            "count": 6,
-            "main_freq": 4101,
-            "sales": 7594.0,
-            "combine_rate": 0.000487685930260912
-        },
-        {
-            "goods_info": [
-                {
-                    "sku": "1ECRAC070",
-                    "name": "羊毛混纺套装(马甲+半裙+内搭)",
-                    "color_code": "07X",
-                    "color": "浅灰中灰双色",
-                    "season": "冬季",
-                    "category": "套装",
-                    "goods_id": "2714090201747968",
-                    "color_id": "2178212532990464",
-                    "image_url": "http://pim.gloria.com.cn/productImg/1ECRAC070/origin/color/51a109613c0a49c69bac8b9e83fe6e3c.jpg?x-oss-process=image/resize,w_300",
-                    "image_path": "./data/sku_image/1ECRAC07007X.png",
-                    "skc": "1ECRAC07007X",
-                    "price": "999"
-                },
-                {
-                    "sku": "1ECLAB390",
-                    "name": "仿麂皮马甲针织连衣裙套装(马甲+连衣裙+配仿麂皮腰带)",
-                    "color_code": "91W",
-                    "color": "深杏",
-                    "season": "冬季",
-                    "category": "套装",
-                    "goods_id": "2714090722210304",
-                    "color_id": "2055025368787496",
-                    "image_url": "http://pim.gloria.com.cn/productImg/1ECLAB390/origin/color/21b2a364fb3643578faf4e4c44e87cfa.jpg?x-oss-process=image/resize,w_300",
-                    "image_path": "./data/sku_image/1ECLAB39091W.png",
-                    "skc": "1ECLAB39091W",
-                    "price": "999"
-                }
-            ],
-            "freq": 2,
-            "count": 6,
-            "main_freq": 4101,
-            "sales": 7994.0,
-            "combine_rate": 0.000487685930260912
-        },
-        {
-            "goods_info": [
-                {
-                    "sku": "1EDJAC330",
-                    "name": "针织西装套装(西装+连衣裙)",
-                    "color_code": "50B",
-                    "color": "灰黑色",
-                    "season": "冬季",
-                    "category": "套装",
-                    "goods_id": "2724692049818112",
-                    "color_id": "2055025368803872",
-                    "image_url": "http://pim.gloria.com.cn/productImg/1EDJAC330/origin/color/98d4625f72664d4783fcaece01d5d320.jpg?x-oss-process=image/resize,w_300",
-                    "image_path": "./data/sku_image/1EDJAC33050B.png",
-                    "skc": "1EDJAC33050B",
-                    "price": "1499"
-                },
-                {
-                    "sku": "189A9M06I",
-                    "name": "女士长袖长裤睡衣两件套",
-                    "color_code": "20D",
-                    "color": "白底黑点",
-                    "season": "秋季",
-                    "category": "家居",
-                    "goods_id": "2739585094554112",
-                    "color_id": "2055025368795719",
-                    "image_url": null,
-                    "image_path": null,
-                    "skc": "189A9M06I20D",
-                    "price": "1799"
-                }
-            ],
-            "freq": 2,
-            "count": 6,
-            "main_freq": 4101,
-            "sales": 10594.0,
-            "combine_rate": 0.000487685930260912
-        },
-        {
-            "goods_info": [
-                {
-                    "sku": "1CDLAB610",
-                    "name": "水洗羊毛套装(毛织+背心连衣裙)",
-                    "color_code": "44B",
-                    "color": "烟灰",
-                    "season": "冬季",
-                    "category": "套装",
-                    "goods_id": "2457369111015936",
-                    "color_id": "2055025368787546",
-                    "image_url": "http://pim.gloria.com.cn/productImg/1CDLAB610/origin/color/081e976aac684608b35d01a8e8f24774.jpg?x-oss-process=image/resize,w_300",
-                    "image_path": "./data/sku_image/1CDLAB61044B.png",
-                    "skc": "1CDLAB61044B",
-                    "price": "1499"
-                },
-                {
-                    "sku": "1E9L5J080",
-                    "name": "马海毛亮丝毛衣",
-                    "color_code": "86Y",
-                    "color": "咖啡色",
-                    "season": "秋季",
-                    "category": "毛织",
-                    "goods_id": "2650993648742912",
-                    "color_id": "2055025368803881",
-                    "image_url": "http://pim.gloria.com.cn/productImg/1E9L5J080/origin/color/4fce7f05150d4b23bb8d6ef069c969e5.jpg?x-oss-process=image/resize,w_300",
-                    "image_path": "./data/sku_image/1E9L5J08086Y.png",
-                    "skc": "1E9L5J08086Y",
-                    "price": "799"
-                }
-            ],
-            "freq": 2,
-            "count": 6,
-            "main_freq": 4101,
-            "sales": 8594.0,
-            "combine_rate": 0.000487685930260912
-        },
-        {
-            "goods_info": [
-                {
-                    "sku": "1E1C3E050",
-                    "name": "荷叶边立领白衬衣",
-                    "color_code": "03W",
-                    "color": "本白",
-                    "season": "春季",
-                    "category": "梭织衫",
-                    "goods_id": "2517339474326016",
-                    "color_id": "2055025368795660",
-                    "image_url": "http://pim.gloria.com.cn/productImg/1E1C3E050/origin/color/9f68b56de2c74e23b18d800237f2ee84.jpg?x-oss-process=image/resize,w_300",
-                    "image_path": "./data/sku_image/1E1C3E05003W.png",
-                    "skc": "1E1C3E05003W",
-                    "price": "499"
-                },
-                {
-                    "sku": "1E9L6A120",
-                    "name": "花纱水洗羊毛马甲外套",
-                    "color_code": "44B",
-                    "color": "烟灰",
-                    "season": "秋季",
-                    "category": "外套",
-                    "goods_id": "2650993995780608",
-                    "color_id": "2055025368787546",
-                    "image_url": "http://pim.gloria.com.cn/productImg/1E9L6A120/origin/color/2c5d8977d4ff4ecca57f3149d4a106b3.jpg?x-oss-process=image/resize,w_300",
-                    "image_path": "./data/sku_image/1E9L6A12044B.png",
-                    "skc": "1E9L6A12044B",
-                    "price": "899"
-                }
-            ],
-            "freq": 2,
-            "count": 6,
-            "main_freq": 4101,
-            "sales": 6794.0,
-            "combine_rate": 0.000487685930260912
-        },
-        {
-            "goods_info": [
-                {
-                    "sku": "1CNC6N390",
-                    "name": "全羊毛双面呢翻领大衣(配送本布腰带)",
-                    "color_code": "08H",
-                    "color": "深花灰",
-                    "season": "冬季",
-                    "category": "外套",
-                    "goods_id": "2458003366924800",
-                    "color_id": "2055025368812101",
-                    "image_url": "http://pim.gloria.com.cn/productImg/1CNC6N390/origin/color/eac7253d4bee4a198b5251bb8a488609.jpg?x-oss-process=image/resize,w_300",
-                    "image_path": "./data/sku_image/1CNC6N39008H.png",
-                    "skc": "1CNC6N39008H",
-                    "price": "2199"
-                },
-                {
-                    "sku": "1EDA9A05E",
-                    "name": "全羊毛双面呢流苏围巾",
-                    "color_code": "05R",
-                    "color": "浅珊瑚",
-                    "season": "冬季",
-                    "category": "饰品",
-                    "goods_id": "2738965775749632",
-                    "color_id": "2055025368779364",
-                    "image_url": null,
-                    "image_path": null,
-                    "skc": "1EDA9A05E05R",
-                    "price": "999"
-                }
-            ],
-            "freq": 2,
-            "count": 6,
-            "main_freq": 4101,
-            "sales": 10394.0,
-            "combine_rate": 0.000487685930260912
-        },
-        {
-            "goods_info": [
-                {
-                    "sku": "1C9L6J530",
-                    "name": "小香风珠片花纱针织开衫",
-                    "color_code": "05H",
-                    "color": "花灰",
-                    "season": "秋季",
-                    "category": "外套",
-                    "goods_id": "2392651535176192",
-                    "color_id": "2055025368787492",
-                    "image_url": "http://pim.gloria.com.cn/productImg/1C9L6J530/origin/color/2bd10ecb69f843fe80fed7654585eb86.jpg?x-oss-process=image/resize,w_300",
-                    "image_path": "./data/sku_image/1C9L6J53005H.png",
-                    "skc": "1C9L6J53005H",
-                    "price": "699"
-                },
-                {
-                    "sku": "1E3JCD23D",
-                    "name": "宽松直筒牛仔裤",
-                    "color_code": "75U",
-                    "color": "牛仔蓝",
-                    "season": "春季",
-                    "category": "牛仔裤类",
-                    "goods_id": "2634847034864128",
-                    "color_id": "2055025368795675",
-                    "image_url": "http://pim.gloria.com.cn/productImg/1E3JCD23D/origin/color/cd353bd95d6f46fe9bcef1d27f52d434.jpg?x-oss-process=image/resize,w_300",
-                    "image_path": "./data/sku_image/1E3JCD23D75U.png",
-                    "skc": "1E3JCD23D75U",
-                    "price": "599"
-                }
-            ],
-            "freq": 2,
-            "count": 6,
-            "main_freq": 4101,
-            "sales": 6594.0,
-            "combine_rate": 0.000487685930260912
-        }
-    ],
-    "outfit_orders": [
-        [
-            {
-                "price": "1999",
-                "image_path": "./data/sku_image/1ACLAB10A86Y.png",
-                "skc": "1ACLAB10A86Y",
-                "reason": "主推款咖色套装配深花灰大衣显温暖;紫绒大衣搭套装,黑裙适配深花灰外套。"
-            },
-            {
-                "price": "2199",
-                "image_path": "./data/sku_image/1CNC6N39008H.png",
-                "skc": "1CNC6N39008H",
-                "reason": "主推款咖色套装配深花灰大衣显温暖;紫绒大衣搭套装,黑裙适配深花灰外套。"
-            },
-            {
-                "price": "5999",
-                "image_path": "./data/sku_image/10CL6E57038H.png",
-                "skc": "10CL6E57038H",
-                "reason": "主推款咖色套装配深花灰大衣显温暖;紫绒大衣搭套装,黑裙适配深花灰外套。"
-            },
-            {
-                "price": "699",
-                "image_path": "./data/sku_image/1BNR4K36000B.png",
-                "skc": "1BNR4K36000B",
-                "reason": "主推款咖色套装配深花灰大衣显温暖;紫绒大衣搭套装,黑裙适配深花灰外套。"
-            }
-        ],
-        [
-            {
-                "price": "499",
-                "image_path": "./data/sku_image/1E1C3E05003W.png",
-                "skc": "1E1C3E05003W",
-                "reason": "白衬衣配牛仔蓝直筒裤清新;白衬衣搭黑白马面裙雅致,咖外套配牛仔裤休闲。"
-            },
-            {
-                "price": "599",
-                "image_path": "./data/sku_image/1E3JCD23D75U.png",
-                "skc": "1E3JCD23D75U",
-                "reason": "白衬衣配牛仔蓝直筒裤清新;白衬衣搭黑白马面裙雅致,咖外套配牛仔裤休闲。"
-            },
-            {
-                "price": "699",
-                "image_path": "./data/sku_image/1C2R2B06B64C.png",
-                "skc": "1C2R2B06B64C",
-                "reason": "白衬衣配牛仔蓝直筒裤清新;白衬衣搭黑白马面裙雅致,咖外套配牛仔裤休闲。"
-            },
-            {
-                "price": "799",
-                "image_path": "./data/sku_image/1B9L6E04086Y.png",
-                "skc": "1B9L6E04086Y",
-                "reason": "白衬衣配牛仔蓝直筒裤清新;白衬衣搭黑白马面裙雅致,咖外套配牛仔裤休闲。"
-            }
-        ],
-        [
-            {
-                "price": "799",
-                "image_path": "./data/sku_image/1E9L5J08086Y.png",
-                "skc": "1E9L5J08086Y",
-                "reason": "咖色毛衣+短裤+花灰开衫秋意浓;毛衣搭牛仔直筒裤,白衬衫配短裤清爽。"
-            },
-            {
-                "price": "398",
-                "image_path": "./data/sku_image/10CL1A38086Y.png",
-                "skc": "10CL1A38086Y",
-                "reason": "咖色毛衣+短裤+花灰开衫秋意浓;毛衣搭牛仔直筒裤,白衬衫配短裤清爽。"
-            },
-            {
-                "price": "699",
-                "image_path": "./data/sku_image/1C9L6J53005H.png",
-                "skc": "1C9L6J53005H",
-                "reason": "咖色毛衣+短裤+花灰开衫秋意浓;毛衣搭牛仔直筒裤,白衬衫配短裤清爽。"
-            },
-            {
-                "price": "599",
-                "image_path": "./data/sku_image/1E1CCD02075U.png",
-                "skc": "1E1CCD02075U",
-                "reason": "咖色毛衣+短裤+花灰开衫秋意浓;毛衣搭牛仔直筒裤,白衬衫配短裤清爽。"
-            },
-            {
-                "price": "399",
-                "image_path": "./data/sku_image/1C3C3D05003W.png",
-                "skc": "1C3C3D05003W",
-                "reason": "咖色毛衣+短裤+花灰开衫秋意浓;毛衣搭牛仔直筒裤,白衬衫配短裤清爽。"
-            }
-        ],
-        [
-            {
-                "price": "999",
-                "image_path": "./data/sku_image/1ECRAC07007X.png",
-                "skc": "1ECRAC07007X",
-                "reason": "浅灰套装配米色羽绒马甲保暖;套装搭酒红开衫雅致,马甲配花灰伞裙时尚。"
-            },
-            {
-                "price": "799",
-                "image_path": "./data/sku_image/1ECC8A20007W.png",
-                "skc": "1ECC8A20007W",
-                "reason": "浅灰套装配米色羽绒马甲保暖;套装搭酒红开衫雅致,马甲配花灰伞裙时尚。"
-            },
-            {
-                "price": "599",
-                "image_path": "./data/sku_image/1E8J6E0S091R.png",
-                "skc": "1E8J6E0S091R",
-                "reason": "浅灰套装配米色羽绒马甲保暖;套装搭酒红开衫雅致,马甲配花灰伞裙时尚。"
-            },
-            {
-                "price": "499",
-                "image_path": "./data/sku_image/1EDL2D11003X.png",
-                "skc": "1EDL2D11003X",
-                "reason": "浅灰套装配米色羽绒马甲保暖;套装搭酒红开衫雅致,马甲配花灰伞裙时尚。"
-            }
-        ],
-        [
-            {
-                "price": "1499",
-                "image_path": "./data/sku_image/1EDJAC33050B.png",
-                "skc": "1EDJAC33050B",
-                "reason": "灰黑西装套装配烟灰马甲干练;套装搭咖色西装优雅,马甲配烟灰套装和谐。"
-            },
-            {
-                "price": "899",
-                "image_path": "./data/sku_image/1E9L6A12044B.png",
-                "skc": "1E9L6A12044B",
-                "reason": "灰黑西装套装配烟灰马甲干练;套装搭咖色西装优雅,马甲配烟灰套装和谐。"
-            },
-            {
-                "price": "1399",
-                "image_path": "./data/sku_image/10CL6E1U086Y.png",
-                "skc": "10CL6E1U086Y",
-                "reason": "灰黑西装套装配烟灰马甲干练;套装搭咖色西装优雅,马甲配烟灰套装和谐。"
-            },
-            {
-                "price": "1499",
-                "image_path": "./data/sku_image/1CDLAB61044B.png",
-                "skc": "1CDLAB61044B",
-                "reason": "灰黑西装套装配烟灰马甲干练;套装搭咖色西装优雅,马甲配烟灰套装和谐。"
-            }
-        ]
-    ]
-}

+ 0 - 1264
result_combine.json

@@ -1,1264 +0,0 @@
-{
-    "primary_goods_info": {
-        "goods_info": {
-            "sku": "1ACLAB10A",
-            "name": "水洗羊毛短外套+半裙+全羊毛衫",
-            "color_code": "86Y",
-            "color": "咖啡色",
-            "season": "冬季",
-            "category": "套装",
-            "image_url": "http://pim.gloria.com.cn/productImg/1ACLAB10A/origin/color/0747e69c5a10463db9bfddee7eb495c3.jpg?x-oss-process=image/resize,w_300",
-            "image_path": "./data/sku_image/1ACLAB10A86Y.png",
-            "skc": "1ACLAB10A86Y",
-            "price": "1999"
-        },
-        "goods_code": "1ACLAB10A",
-        "color_code": "86Y",
-        "goods_id": "2089741809109504",
-        "color_id": "2055025368803881",
-        "freq_two": 561,
-        "freq_three": 4101
-    },
-    "combine_two_info": [
-        {
-            "goods_info": {
-                "sku": "189A9M06I",
-                "name": "女士长袖长裤睡衣两件套",
-                "color_code": "20D",
-                "color": "白底黑点",
-                "season": "秋季",
-                "category": "家居",
-                "goods_id": "2739585094554112",
-                "color_id": "2055025368795719",
-                "image_url": null,
-                "image_path": null,
-                "skc": "189A9M06I20D",
-                "price": "1799"
-            },
-            "freq": 26,
-            "count": 52,
-            "main_freq": 561,
-            "sales": 98748.0,
-            "combine_rate": 0.04634581105169341
-        },
-        {
-            "goods_info": {
-                "sku": "1ECRAC070",
-                "name": "羊毛混纺套装(马甲+半裙+内搭)",
-                "color_code": "07X",
-                "color": "浅灰中灰双色",
-                "season": "冬季",
-                "category": "套装",
-                "goods_id": "2714090201747968",
-                "color_id": "2178212532990464",
-                "image_url": "http://pim.gloria.com.cn/productImg/1ECRAC070/origin/color/51a109613c0a49c69bac8b9e83fe6e3c.jpg?x-oss-process=image/resize,w_300",
-                "image_path": "./data/sku_image/1ECRAC07007X.png",
-                "skc": "1ECRAC07007X",
-                "price": "999"
-            },
-            "freq": 20,
-            "count": 40,
-            "main_freq": 561,
-            "sales": 62958.0,
-            "combine_rate": 0.035650623885918005
-        },
-        {
-            "goods_info": {
-                "sku": "1A5A9B12F",
-                "name": "小号环保袋",
-                "color_code": "64C",
-                "color": "黑底米白山茶花提花",
-                "season": "夏季",
-                "category": "饰品",
-                "goods_id": "2724795234365952",
-                "color_id": "2250812625949184",
-                "image_url": "http://pim.gloria.com.cn/productImg/1A5A9B12F/origin/color/03428988ee574cbbbf3333489259295c.jpg?x-oss-process=image/resize,w_300",
-                "image_path": "./data/sku_image/1A5A9B12F64C.png",
-                "skc": "1A5A9B12F64C",
-                "price": "139"
-            },
-            "freq": 17,
-            "count": 34,
-            "main_freq": 561,
-            "sales": 36346.0,
-            "combine_rate": 0.030303030303030304
-        },
-        {
-            "goods_info": {
-                "sku": "112L6E27A",
-                "name": "精纺羊毛风衣外套(配送本布腰带)",
-                "color_code": "61Y",
-                "color": "浅驼",
-                "season": "秋季",
-                "category": "外套",
-                "goods_id": "2067913521187328",
-                "color_id": "2055025368795673",
-                "image_url": "http://pim.gloria.com.cn/productImg/112L6E27A/origin/color/9986e5687a9c4b63aa1728a9ebdaeae8.jpg?x-oss-process=image/resize,w_300",
-                "image_path": "./data/sku_image/112L6E27A61Y.png",
-                "skc": "112L6E27A61Y",
-                "price": "1698"
-            },
-            "freq": 16,
-            "count": 32,
-            "main_freq": 561,
-            "sales": 59152.0,
-            "combine_rate": 0.0285204991087344
-        },
-        {
-            "goods_info": {
-                "sku": "1B9L6E040",
-                "name": "水洗羊毛短外套",
-                "color_code": "86Y",
-                "color": "咖啡色",
-                "season": "秋季",
-                "category": "外套",
-                "goods_id": "2133763145124352",
-                "color_id": "2055025368803881",
-                "image_url": "http://pim.gloria.com.cn/productImg/1B9L6E040/origin/color/EMM/tmz(1)_1688367599559.jpg?x-oss-process=image/resize,w_300",
-                "image_path": "./data/sku_image/1B9L6E04086Y.png",
-                "skc": "1B9L6E04086Y",
-                "price": "799"
-            },
-            "freq": 10,
-            "count": 20,
-            "main_freq": 561,
-            "sales": 27980.0,
-            "combine_rate": 0.017825311942959002
-        },
-        {
-            "goods_info": {
-                "sku": "195A9M05J",
-                "name": "吊带睡裙",
-                "color_code": "06D",
-                "color": "杏底印花",
-                "season": "夏季",
-                "category": "饰品",
-                "goods_id": "2472689685254656",
-                "color_id": "2055025368787482",
-                "image_url": "http://pim.gloria.com.cn/productImg/195A9M05J/origin/color/1d3efc5bd3d9493486f3d05660fd4907.jpg?x-oss-process=image/resize,w_300",
-                "image_path": "./data/sku_image/195A9M05J06D.png",
-                "skc": "195A9M05J06D",
-                "price": "799"
-            },
-            "freq": 10,
-            "count": 20,
-            "main_freq": 561,
-            "sales": 27980.0,
-            "combine_rate": 0.017825311942959002
-        },
-        {
-            "goods_info": {
-                "sku": "1EDJAC330",
-                "name": "针织西装套装(西装+连衣裙)",
-                "color_code": "50B",
-                "color": "灰黑色",
-                "season": "冬季",
-                "category": "套装",
-                "goods_id": "2724692049818112",
-                "color_id": "2055025368803872",
-                "image_url": "http://pim.gloria.com.cn/productImg/1EDJAC330/origin/color/98d4625f72664d4783fcaece01d5d320.jpg?x-oss-process=image/resize,w_300",
-                "image_path": "./data/sku_image/1EDJAC33050B.png",
-                "skc": "1EDJAC33050B",
-                "price": "1499"
-            },
-            "freq": 9,
-            "count": 18,
-            "main_freq": 561,
-            "sales": 31482.0,
-            "combine_rate": 0.016042780748663103
-        },
-        {
-            "goods_info": {
-                "sku": "1BNR4K360",
-                "name": "荷叶领丝绒连衣裙",
-                "color_code": "00B",
-                "color": "黑色",
-                "season": "冬季",
-                "category": "连衣裙",
-                "goods_id": "2289431368610304",
-                "color_id": "2055025368779367",
-                "image_url": "http://pim.gloria.com.cn/productImg/1BNR4K360/origin/color/9cf446d1c9804c86a220d8c0bcf6fd18.jpg?x-oss-process=image/resize,w_300",
-                "image_path": "./data/sku_image/1BNR4K36000B.png",
-                "skc": "1BNR4K36000B",
-                "price": "699"
-            },
-            "freq": 8,
-            "count": 16,
-            "main_freq": 561,
-            "sales": 21584.0,
-            "combine_rate": 0.0142602495543672
-        },
-        {
-            "goods_info": {
-                "sku": "1CDLAB610",
-                "name": "水洗羊毛套装(毛织+背心连衣裙)",
-                "color_code": "44B",
-                "color": "烟灰",
-                "season": "冬季",
-                "category": "套装",
-                "goods_id": "2457369111015936",
-                "color_id": "2055025368787546",
-                "image_url": "http://pim.gloria.com.cn/productImg/1CDLAB610/origin/color/081e976aac684608b35d01a8e8f24774.jpg?x-oss-process=image/resize,w_300",
-                "image_path": "./data/sku_image/1CDLAB61044B.png",
-                "skc": "1CDLAB61044B",
-                "price": "1499"
-            },
-            "freq": 8,
-            "count": 16,
-            "main_freq": 561,
-            "sales": 27634.2,
-            "combine_rate": 0.0142602495543672
-        },
-        {
-            "goods_info": {
-                "sku": "1E8J6E0S0",
-                "name": "全羊毛开衫",
-                "color_code": "91R",
-                "color": "酒红",
-                "season": "秋季",
-                "category": "外套",
-                "goods_id": "2650713725325824",
-                "color_id": "2055025368787480",
-                "image_url": "http://pim.gloria.com.cn/productImg/1E8J6E0S0/origin/color/defae75de52749eb9174f06d40ec6e01.jpg?x-oss-process=image/resize,w_300",
-                "image_path": "./data/sku_image/1E8J6E0S091R.png",
-                "skc": "1E8J6E0S091R",
-                "price": "599"
-            },
-            "freq": 7,
-            "count": 14,
-            "main_freq": 561,
-            "sales": 18186.0,
-            "combine_rate": 0.012477718360071301
-        },
-        {
-            "goods_info": {
-                "sku": "1381T3001",
-                "name": "20寸环球之旅限量旅行箱(黑灰版)",
-                "color_code": "00B",
-                "color": "黑色",
-                "season": "夏季",
-                "category": "饰品",
-                "goods_id": "2235639419843072",
-                "color_id": "2055025368779367",
-                "image_url": null,
-                "image_path": null,
-                "skc": "1381T300100B",
-                "price": "599"
-            },
-            "freq": 7,
-            "count": 14,
-            "main_freq": 561,
-            "sales": 18186.0,
-            "combine_rate": 0.012477718360071301
-        },
-        {
-            "goods_info": {
-                "sku": "195A9M05N",
-                "name": "吊带睡裙",
-                "color_code": "07W",
-                "color": "米色",
-                "season": "夏季",
-                "category": "饰品",
-                "goods_id": "2481831999058432",
-                "color_id": "2055025368795710",
-                "image_url": "http://pim.gloria.com.cn/productImg/195A9M05N/origin/color/ccdbd630c3e64f3b823aee37cc330bed.jpg?x-oss-process=image/resize,w_300",
-                "image_path": "./data/sku_image/195A9M05N07W.png",
-                "skc": "195A9M05N07W",
-                "price": "799"
-            },
-            "freq": 7,
-            "count": 14,
-            "main_freq": 561,
-            "sales": 19586.0,
-            "combine_rate": 0.012477718360071301
-        },
-        {
-            "goods_info": {
-                "sku": "1C2R2B06B",
-                "name": "黑白提花马面裙(配送打底裙)",
-                "color_code": "64C",
-                "color": "黑底米白山茶花提花",
-                "season": "春季",
-                "category": "半截裙",
-                "goods_id": "2343267549057536",
-                "color_id": "2250812625949184",
-                "image_url": "http://pim.gloria.com.cn/productImg/1C2R2B06B/origin/color/6b02505533534d0fbaedbc7be7bf6635.jpg?x-oss-process=image/resize,w_300",
-                "image_path": "./data/sku_image/1C2R2B06B64C.png",
-                "skc": "1C2R2B06B64C",
-                "price": "699"
-            },
-            "freq": 7,
-            "count": 14,
-            "main_freq": 561,
-            "sales": 18886.0,
-            "combine_rate": 0.012477718360071301
-        },
-        {
-            "goods_info": {
-                "sku": "1ECCAA230",
-                "name": "两件套(假两件拉链上衣+长裤)",
-                "color_code": "91Y",
-                "color": "啡色",
-                "season": "冬季",
-                "category": "套装",
-                "goods_id": "2714090216542720",
-                "color_id": "2055025368795724",
-                "image_url": "http://pim.gloria.com.cn/productImg/1ECCAA230/origin/color/93c9ce3bea254b14a54ddef3fa25eff1.jpg?x-oss-process=image/resize,w_300",
-                "image_path": "./data/sku_image/1ECCAA23091Y.png",
-                "skc": "1ECCAA23091Y",
-                "price": "1399"
-            },
-            "freq": 6,
-            "count": 12,
-            "main_freq": 561,
-            "sales": 20388.0,
-            "combine_rate": 0.0106951871657754
-        },
-        {
-            "goods_info": {
-                "sku": "1361T3001",
-                "name": "20寸「乐园」旅行箱",
-                "color_code": "00B",
-                "color": "黑色",
-                "season": "夏季",
-                "category": "饰品",
-                "goods_id": "2178367505592832",
-                "color_id": "2055025368779367",
-                "image_url": "http://pim.gloria.com.cn/productImg/1361T3001/origin/color/0348db290d2a4610a68455b0c69503b4.png?x-oss-process=image/resize,w_300",
-                "image_path": "./data/sku_image/1361T300100B.png",
-                "skc": "1361T300100B",
-                "price": "599"
-            },
-            "freq": 6,
-            "count": 12,
-            "main_freq": 561,
-            "sales": 15588.0,
-            "combine_rate": 0.0106951871657754
-        },
-        {
-            "goods_info": {
-                "sku": "1E1CCD020",
-                "name": "修身直筒牛仔裤",
-                "color_code": "75U",
-                "color": "牛仔蓝",
-                "season": "春季",
-                "category": "牛仔裤类",
-                "goods_id": "2517339663135232",
-                "color_id": "2055025368795675",
-                "image_url": "http://pim.gloria.com.cn/productImg/1E1CCD020/origin/color/6a89495509fd48be8d370e9eaa07862a.jpg?x-oss-process=image/resize,w_300",
-                "image_path": "./data/sku_image/1E1CCD02075U.png",
-                "skc": "1E1CCD02075U",
-                "price": "599"
-            },
-            "freq": 6,
-            "count": 12,
-            "main_freq": 561,
-            "sales": 15588.0,
-            "combine_rate": 0.0106951871657754
-        },
-        {
-            "goods_info": {
-                "sku": "10CL6E570",
-                "name": "全羊绒大衣",
-                "color_code": "38H",
-                "color": "紫绒",
-                "season": "冬季",
-                "category": "外套",
-                "goods_id": "2067905218292224",
-                "color_id": "2055025368803884",
-                "image_url": "http://pim.gloria.com.cn/productImg/10CL6E570/origin/color/1f311f8c13444992bd95298e85a9beea.jpg?x-oss-process=image/resize,w_300",
-                "image_path": "./data/sku_image/10CL6E57038H.png",
-                "skc": "10CL6E57038H",
-                "price": "5999"
-            },
-            "freq": 5,
-            "count": 10,
-            "main_freq": 561,
-            "sales": 39990.0,
-            "combine_rate": 0.008912655971479501
-        },
-        {
-            "goods_info": {
-                "sku": "1ECLAB390",
-                "name": "仿麂皮马甲针织连衣裙套装(马甲+连衣裙+配仿麂皮腰带)",
-                "color_code": "91W",
-                "color": "深杏",
-                "season": "冬季",
-                "category": "套装",
-                "goods_id": "2714090722210304",
-                "color_id": "2055025368787496",
-                "image_url": "http://pim.gloria.com.cn/productImg/1ECLAB390/origin/color/21b2a364fb3643578faf4e4c44e87cfa.jpg?x-oss-process=image/resize,w_300",
-                "image_path": "./data/sku_image/1ECLAB39091W.png",
-                "skc": "1ECLAB39091W",
-                "price": "999"
-            },
-            "freq": 5,
-            "count": 10,
-            "main_freq": 561,
-            "sales": 14990.0,
-            "combine_rate": 0.008912655971479501
-        },
-        {
-            "goods_info": {
-                "sku": "1EDL2D110",
-                "name": "弹力针织八片裙伞裙",
-                "color_code": "03X",
-                "color": "黑色花灰双色",
-                "season": "冬季",
-                "category": "半截裙",
-                "goods_id": "2714089907163648",
-                "color_id": "2178212533801472",
-                "image_url": "http://pim.gloria.com.cn/productImg/1EDL2D110/origin/color/54fcd76b85124510a9f2640e743b9f8e.jpg?x-oss-process=image/resize,w_300",
-                "image_path": "./data/sku_image/1EDL2D11003X.png",
-                "skc": "1EDL2D11003X",
-                "price": "499"
-            },
-            "freq": 5,
-            "count": 10,
-            "main_freq": 561,
-            "sales": 14988.0,
-            "combine_rate": 0.008912655971479501
-        },
-        {
-            "goods_info": {
-                "sku": "1E3JCD23D",
-                "name": "宽松直筒牛仔裤",
-                "color_code": "75U",
-                "color": "牛仔蓝",
-                "season": "春季",
-                "category": "牛仔裤类",
-                "goods_id": "2634847034864128",
-                "color_id": "2055025368795675",
-                "image_url": "http://pim.gloria.com.cn/productImg/1E3JCD23D/origin/color/cd353bd95d6f46fe9bcef1d27f52d434.jpg?x-oss-process=image/resize,w_300",
-                "image_path": "./data/sku_image/1E3JCD23D75U.png",
-                "skc": "1E3JCD23D75U",
-                "price": "599"
-            },
-            "freq": 5,
-            "count": 10,
-            "main_freq": 561,
-            "sales": 12990.0,
-            "combine_rate": 0.008912655971479501
-        }
-    ],
-    "combine_three_info": [
-        {
-            "goods_info": [
-                {
-                    "sku": "112L6E27A",
-                    "name": "精纺羊毛风衣外套(配送本布腰带)",
-                    "color_code": "61Y",
-                    "color": "浅驼",
-                    "season": "秋季",
-                    "category": "外套",
-                    "goods_id": "2067913521187328",
-                    "color_id": "2055025368795673",
-                    "image_url": "http://pim.gloria.com.cn/productImg/112L6E27A/origin/color/9986e5687a9c4b63aa1728a9ebdaeae8.jpg?x-oss-process=image/resize,w_300",
-                    "image_path": "./data/sku_image/112L6E27A61Y.png",
-                    "skc": "112L6E27A61Y",
-                    "price": "1698"
-                },
-                {
-                    "sku": "1381T3001",
-                    "name": "20寸环球之旅限量旅行箱(黑灰版)",
-                    "color_code": "00B",
-                    "color": "黑色",
-                    "season": "夏季",
-                    "category": "饰品",
-                    "goods_id": "2235639419843072",
-                    "color_id": "2055025368779367",
-                    "image_url": null,
-                    "image_path": null,
-                    "skc": "1381T300100B",
-                    "price": "599"
-                }
-            ],
-            "freq": 4,
-            "count": 12,
-            "main_freq": 4101,
-            "sales": 17184.0,
-            "combine_rate": 0.000975371860521824
-        },
-        {
-            "goods_info": [
-                {
-                    "sku": "1ECRAC070",
-                    "name": "羊毛混纺套装(马甲+半裙+内搭)",
-                    "color_code": "07X",
-                    "color": "浅灰中灰双色",
-                    "season": "冬季",
-                    "category": "套装",
-                    "goods_id": "2714090201747968",
-                    "color_id": "2178212532990464",
-                    "image_url": "http://pim.gloria.com.cn/productImg/1ECRAC070/origin/color/51a109613c0a49c69bac8b9e83fe6e3c.jpg?x-oss-process=image/resize,w_300",
-                    "image_path": "./data/sku_image/1ECRAC07007X.png",
-                    "skc": "1ECRAC07007X",
-                    "price": "999"
-                },
-                {
-                    "sku": "189A9M06I",
-                    "name": "女士长袖长裤睡衣两件套",
-                    "color_code": "20D",
-                    "color": "白底黑点",
-                    "season": "秋季",
-                    "category": "家居",
-                    "goods_id": "2739585094554112",
-                    "color_id": "2055025368795719",
-                    "image_url": null,
-                    "image_path": null,
-                    "skc": "189A9M06I20D",
-                    "price": "1799"
-                }
-            ],
-            "freq": 4,
-            "count": 12,
-            "main_freq": 4101,
-            "sales": 19188.0,
-            "combine_rate": 0.000975371860521824
-        },
-        {
-            "goods_info": [
-                {
-                    "sku": "112L6E27A",
-                    "name": "精纺羊毛风衣外套(配送本布腰带)",
-                    "color_code": "61Y",
-                    "color": "浅驼",
-                    "season": "秋季",
-                    "category": "外套",
-                    "goods_id": "2067913521187328",
-                    "color_id": "2055025368795673",
-                    "image_url": "http://pim.gloria.com.cn/productImg/112L6E27A/origin/color/9986e5687a9c4b63aa1728a9ebdaeae8.jpg?x-oss-process=image/resize,w_300",
-                    "image_path": "./data/sku_image/112L6E27A61Y.png",
-                    "skc": "112L6E27A61Y",
-                    "price": "1698"
-                },
-                {
-                    "sku": "189A9M06I",
-                    "name": "女士长袖长裤睡衣两件套",
-                    "color_code": "20D",
-                    "color": "白底黑点",
-                    "season": "秋季",
-                    "category": "家居",
-                    "goods_id": "2739585094554112",
-                    "color_id": "2055025368795719",
-                    "image_url": null,
-                    "image_path": null,
-                    "skc": "189A9M06I20D",
-                    "price": "1799"
-                }
-            ],
-            "freq": 4,
-            "count": 12,
-            "main_freq": 4101,
-            "sales": 21984.0,
-            "combine_rate": 0.000975371860521824
-        },
-        {
-            "goods_info": [
-                {
-                    "sku": "112L6E27A",
-                    "name": "精纺羊毛风衣外套(配送本布腰带)",
-                    "color_code": "61Y",
-                    "color": "浅驼",
-                    "season": "秋季",
-                    "category": "外套",
-                    "goods_id": "2067913521187328",
-                    "color_id": "2055025368795673",
-                    "image_url": "http://pim.gloria.com.cn/productImg/112L6E27A/origin/color/9986e5687a9c4b63aa1728a9ebdaeae8.jpg?x-oss-process=image/resize,w_300",
-                    "image_path": "./data/sku_image/112L6E27A61Y.png",
-                    "skc": "112L6E27A61Y",
-                    "price": "1698"
-                },
-                {
-                    "sku": "195A9M05J",
-                    "name": "吊带睡裙",
-                    "color_code": "06D",
-                    "color": "杏底印花",
-                    "season": "夏季",
-                    "category": "饰品",
-                    "goods_id": "2472689685254656",
-                    "color_id": "2055025368787482",
-                    "image_url": "http://pim.gloria.com.cn/productImg/195A9M05J/origin/color/1d3efc5bd3d9493486f3d05660fd4907.jpg?x-oss-process=image/resize,w_300",
-                    "image_path": "./data/sku_image/195A9M05J06D.png",
-                    "skc": "195A9M05J06D",
-                    "price": "799"
-                }
-            ],
-            "freq": 3,
-            "count": 9,
-            "main_freq": 4101,
-            "sales": 13488.0,
-            "combine_rate": 0.000731528895391368
-        },
-        {
-            "goods_info": [
-                {
-                    "sku": "1361T3001",
-                    "name": "20寸「乐园」旅行箱",
-                    "color_code": "00B",
-                    "color": "黑色",
-                    "season": "夏季",
-                    "category": "饰品",
-                    "goods_id": "2178367505592832",
-                    "color_id": "2055025368779367",
-                    "image_url": "http://pim.gloria.com.cn/productImg/1361T3001/origin/color/0348db290d2a4610a68455b0c69503b4.png?x-oss-process=image/resize,w_300",
-                    "image_path": "./data/sku_image/1361T300100B.png",
-                    "skc": "1361T300100B",
-                    "price": "599"
-                },
-                {
-                    "sku": "1ECRAC070",
-                    "name": "羊毛混纺套装(马甲+半裙+内搭)",
-                    "color_code": "07X",
-                    "color": "浅灰中灰双色",
-                    "season": "冬季",
-                    "category": "套装",
-                    "goods_id": "2714090201747968",
-                    "color_id": "2178212532990464",
-                    "image_url": "http://pim.gloria.com.cn/productImg/1ECRAC070/origin/color/51a109613c0a49c69bac8b9e83fe6e3c.jpg?x-oss-process=image/resize,w_300",
-                    "image_path": "./data/sku_image/1ECRAC07007X.png",
-                    "skc": "1ECRAC07007X",
-                    "price": "999"
-                }
-            ],
-            "freq": 3,
-            "count": 9,
-            "main_freq": 4101,
-            "sales": 10791.0,
-            "combine_rate": 0.000731528895391368
-        },
-        {
-            "goods_info": [
-                {
-                    "sku": "1381T3001",
-                    "name": "20寸环球之旅限量旅行箱(黑灰版)",
-                    "color_code": "00B",
-                    "color": "黑色",
-                    "season": "夏季",
-                    "category": "饰品",
-                    "goods_id": "2235639419843072",
-                    "color_id": "2055025368779367",
-                    "image_url": null,
-                    "image_path": null,
-                    "skc": "1381T300100B",
-                    "price": "599"
-                },
-                {
-                    "sku": "1EDJAC330",
-                    "name": "针织西装套装(西装+连衣裙)",
-                    "color_code": "50B",
-                    "color": "灰黑色",
-                    "season": "冬季",
-                    "category": "套装",
-                    "goods_id": "2724692049818112",
-                    "color_id": "2055025368803872",
-                    "image_url": "http://pim.gloria.com.cn/productImg/1EDJAC330/origin/color/98d4625f72664d4783fcaece01d5d320.jpg?x-oss-process=image/resize,w_300",
-                    "image_path": "./data/sku_image/1EDJAC33050B.png",
-                    "skc": "1EDJAC33050B",
-                    "price": "1499"
-                }
-            ],
-            "freq": 3,
-            "count": 9,
-            "main_freq": 4101,
-            "sales": 12291.0,
-            "combine_rate": 0.000731528895391368
-        },
-        {
-            "goods_info": [
-                {
-                    "sku": "1ECC8A200",
-                    "name": "一键可收纳包装轻便羽绒马甲(女装)",
-                    "color_code": "07W",
-                    "color": "米色",
-                    "season": "冬季",
-                    "category": "羽绒",
-                    "goods_id": "2714090708840960",
-                    "color_id": "2055025368795710",
-                    "image_url": "http://pim.gloria.com.cn/productImg/1ECC8A200/origin/color/b3cb09b66d424e7cb2ad4369396d3e79.jpg?x-oss-process=image/resize,w_300",
-                    "image_path": "./data/sku_image/1ECC8A20007W.png",
-                    "skc": "1ECC8A20007W",
-                    "price": "799"
-                },
-                {
-                    "sku": "189A9M06I",
-                    "name": "女士长袖长裤睡衣两件套",
-                    "color_code": "20D",
-                    "color": "白底黑点",
-                    "season": "秋季",
-                    "category": "家居",
-                    "goods_id": "2739585094554112",
-                    "color_id": "2055025368795719",
-                    "image_url": null,
-                    "image_path": null,
-                    "skc": "189A9M06I20D",
-                    "price": "1799"
-                }
-            ],
-            "freq": 2,
-            "count": 6,
-            "main_freq": 4101,
-            "sales": 13791.0,
-            "combine_rate": 0.000487685930260912
-        },
-        {
-            "goods_info": [
-                {
-                    "sku": "112L6E27A",
-                    "name": "精纺羊毛风衣外套(配送本布腰带)",
-                    "color_code": "61Y",
-                    "color": "浅驼",
-                    "season": "秋季",
-                    "category": "外套",
-                    "goods_id": "2067913521187328",
-                    "color_id": "2055025368795673",
-                    "image_url": "http://pim.gloria.com.cn/productImg/112L6E27A/origin/color/9986e5687a9c4b63aa1728a9ebdaeae8.jpg?x-oss-process=image/resize,w_300",
-                    "image_path": "./data/sku_image/112L6E27A61Y.png",
-                    "skc": "112L6E27A61Y",
-                    "price": "1698"
-                },
-                {
-                    "sku": "1EDJAC330",
-                    "name": "针织西装套装(西装+连衣裙)",
-                    "color_code": "50B",
-                    "color": "灰黑色",
-                    "season": "冬季",
-                    "category": "套装",
-                    "goods_id": "2724692049818112",
-                    "color_id": "2055025368803872",
-                    "image_url": "http://pim.gloria.com.cn/productImg/1EDJAC330/origin/color/98d4625f72664d4783fcaece01d5d320.jpg?x-oss-process=image/resize,w_300",
-                    "image_path": "./data/sku_image/1EDJAC33050B.png",
-                    "skc": "1EDJAC33050B",
-                    "price": "1499"
-                }
-            ],
-            "freq": 2,
-            "count": 6,
-            "main_freq": 4101,
-            "sales": 10392.0,
-            "combine_rate": 0.000487685930260912
-        },
-        {
-            "goods_info": [
-                {
-                    "sku": "1C3C3D050",
-                    "name": "法式宽松造型感衬衫(配送原创印花丝巾)",
-                    "color_code": "03W",
-                    "color": "本白",
-                    "season": "春季",
-                    "category": "梭织衫",
-                    "goods_id": "2257787476013568",
-                    "color_id": "2055025368795660",
-                    "image_url": "http://pim.gloria.com.cn/productImg/1C3C3D050/origin/color/254989054d7e40d897eea658fe95e949.jpg?x-oss-process=image/resize,w_300",
-                    "image_path": "./data/sku_image/1C3C3D05003W.png",
-                    "skc": "1C3C3D05003W",
-                    "price": "399"
-                },
-                {
-                    "sku": "1CDLAB120",
-                    "name": "水洗羊毛套装(马甲+内搭+半裙)",
-                    "color_code": "44B",
-                    "color": "烟灰",
-                    "season": "冬季",
-                    "category": "套装",
-                    "goods_id": "2457369059037696",
-                    "color_id": "2055025368787546",
-                    "image_url": "http://pim.gloria.com.cn/productImg/1CDLAB120/origin/color/8069f2bcd5a34b1da0e36f4edfe168a5.jpg?x-oss-process=image/resize,w_300",
-                    "image_path": "./data/sku_image/1CDLAB12044B.png",
-                    "skc": "1CDLAB12044B",
-                    "price": "1599"
-                }
-            ],
-            "freq": 2,
-            "count": 6,
-            "main_freq": 4101,
-            "sales": 30693.6,
-            "combine_rate": 0.000487685930260912
-        },
-        {
-            "goods_info": [
-                {
-                    "sku": "112L6E27A",
-                    "name": "精纺羊毛风衣外套(配送本布腰带)",
-                    "color_code": "61Y",
-                    "color": "浅驼",
-                    "season": "秋季",
-                    "category": "外套",
-                    "goods_id": "2067913521187328",
-                    "color_id": "2055025368795673",
-                    "image_url": "http://pim.gloria.com.cn/productImg/112L6E27A/origin/color/9986e5687a9c4b63aa1728a9ebdaeae8.jpg?x-oss-process=image/resize,w_300",
-                    "image_path": "./data/sku_image/112L6E27A61Y.png",
-                    "skc": "112L6E27A61Y",
-                    "price": "1698"
-                },
-                {
-                    "sku": "1361T3001",
-                    "name": "20寸「乐园」旅行箱",
-                    "color_code": "00B",
-                    "color": "黑色",
-                    "season": "夏季",
-                    "category": "饰品",
-                    "goods_id": "2178367505592832",
-                    "color_id": "2055025368779367",
-                    "image_url": "http://pim.gloria.com.cn/productImg/1361T3001/origin/color/0348db290d2a4610a68455b0c69503b4.png?x-oss-process=image/resize,w_300",
-                    "image_path": "./data/sku_image/1361T300100B.png",
-                    "skc": "1361T300100B",
-                    "price": "599"
-                }
-            ],
-            "freq": 2,
-            "count": 6,
-            "main_freq": 4101,
-            "sales": 8592.0,
-            "combine_rate": 0.000487685930260912
-        },
-        {
-            "goods_info": [
-                {
-                    "sku": "10CL6E1U0",
-                    "name": "可水洗羊毛呢西装",
-                    "color_code": "86Y",
-                    "color": "咖啡色",
-                    "season": "冬季",
-                    "category": "外套",
-                    "goods_id": "2067905252772352",
-                    "color_id": "2055025368803881",
-                    "image_url": "http://pim.gloria.com.cn/productImg/10CL6E1U0/origin/color/1fc117d42fd0482b843ea0344d3a1f59.jpg?x-oss-process=image/resize,w_300",
-                    "image_path": "./data/sku_image/10CL6E1U086Y.png",
-                    "skc": "10CL6E1U086Y",
-                    "price": "1399"
-                },
-                {
-                    "sku": "10CL1A380",
-                    "name": "可水洗羊毛呢短裤",
-                    "color_code": "86Y",
-                    "color": "咖啡色",
-                    "season": "冬季",
-                    "category": "裤类",
-                    "goods_id": "2089738288351744",
-                    "color_id": "2055025368803881",
-                    "image_url": "http://pim.gloria.com.cn/productImg/10CL1A380/origin/color/a854fb7d243647b8a3835e6016d083c2.jpg?x-oss-process=image/resize,w_300",
-                    "image_path": "./data/sku_image/10CL1A38086Y.png",
-                    "skc": "10CL1A38086Y",
-                    "price": "398"
-                }
-            ],
-            "freq": 2,
-            "count": 6,
-            "main_freq": 4101,
-            "sales": 7592.0,
-            "combine_rate": 0.000487685930260912
-        },
-        {
-            "goods_info": [
-                {
-                    "sku": "1C3JAA570",
-                    "name": "天丝毛织套装(毛织上衣+毛织半裙)",
-                    "color_code": "00B",
-                    "color": "黑色",
-                    "season": "春季",
-                    "category": "套装",
-                    "goods_id": "2257787472237056",
-                    "color_id": "2055025368779367",
-                    "image_url": "http://pim.gloria.com.cn/productImg/1C3JAA570/origin/color/7aee2f31fdd343b596c3dd8291a3b6ba.jpg?x-oss-process=image/resize,w_300",
-                    "image_path": "./data/sku_image/1C3JAA57000B.png",
-                    "skc": "1C3JAA57000B",
-                    "price": "699"
-                },
-                {
-                    "sku": "1ECRAC070",
-                    "name": "羊毛混纺套装(马甲+半裙+内搭)",
-                    "color_code": "07X",
-                    "color": "浅灰中灰双色",
-                    "season": "冬季",
-                    "category": "套装",
-                    "goods_id": "2714090201747968",
-                    "color_id": "2178212532990464",
-                    "image_url": "http://pim.gloria.com.cn/productImg/1ECRAC070/origin/color/51a109613c0a49c69bac8b9e83fe6e3c.jpg?x-oss-process=image/resize,w_300",
-                    "image_path": "./data/sku_image/1ECRAC07007X.png",
-                    "skc": "1ECRAC07007X",
-                    "price": "999"
-                }
-            ],
-            "freq": 2,
-            "count": 6,
-            "main_freq": 4101,
-            "sales": 7394.0,
-            "combine_rate": 0.000487685930260912
-        },
-        {
-            "goods_info": [
-                {
-                    "sku": "1C6L1D140",
-                    "name": "宽松大摆长裤",
-                    "color_code": "03W",
-                    "color": "本白",
-                    "season": "夏季",
-                    "category": "裤类",
-                    "goods_id": "2324127752950272",
-                    "color_id": "2055025368795660",
-                    "image_url": "http://pim.gloria.com.cn/productImg/1C6L1D140/origin/color/5e09dc9ec6ee41af8eb143dc10e42ac9.jpg?x-oss-process=image/resize,w_300",
-                    "image_path": "./data/sku_image/1C6L1D14003W.png",
-                    "skc": "1C6L1D14003W",
-                    "price": "599"
-                },
-                {
-                    "sku": "1CDLAB120",
-                    "name": "水洗羊毛套装(马甲+内搭+半裙)",
-                    "color_code": "44B",
-                    "color": "烟灰",
-                    "season": "冬季",
-                    "category": "套装",
-                    "goods_id": "2457369059037696",
-                    "color_id": "2055025368787546",
-                    "image_url": "http://pim.gloria.com.cn/productImg/1CDLAB120/origin/color/8069f2bcd5a34b1da0e36f4edfe168a5.jpg?x-oss-process=image/resize,w_300",
-                    "image_path": "./data/sku_image/1CDLAB12044B.png",
-                    "skc": "1CDLAB12044B",
-                    "price": "1599"
-                }
-            ],
-            "freq": 2,
-            "count": 6,
-            "main_freq": 4101,
-            "sales": 5996.0,
-            "combine_rate": 0.000487685930260912
-        },
-        {
-            "goods_info": [
-                {
-                    "sku": "195A9M05J",
-                    "name": "吊带睡裙",
-                    "color_code": "06D",
-                    "color": "杏底印花",
-                    "season": "夏季",
-                    "category": "饰品",
-                    "goods_id": "2472689685254656",
-                    "color_id": "2055025368787482",
-                    "image_url": "http://pim.gloria.com.cn/productImg/195A9M05J/origin/color/1d3efc5bd3d9493486f3d05660fd4907.jpg?x-oss-process=image/resize,w_300",
-                    "image_path": "./data/sku_image/195A9M05J06D.png",
-                    "skc": "195A9M05J06D",
-                    "price": "799"
-                },
-                {
-                    "sku": "1ECRAC070",
-                    "name": "羊毛混纺套装(马甲+半裙+内搭)",
-                    "color_code": "07X",
-                    "color": "浅灰中灰双色",
-                    "season": "冬季",
-                    "category": "套装",
-                    "goods_id": "2714090201747968",
-                    "color_id": "2178212532990464",
-                    "image_url": "http://pim.gloria.com.cn/productImg/1ECRAC070/origin/color/51a109613c0a49c69bac8b9e83fe6e3c.jpg?x-oss-process=image/resize,w_300",
-                    "image_path": "./data/sku_image/1ECRAC07007X.png",
-                    "skc": "1ECRAC07007X",
-                    "price": "999"
-                }
-            ],
-            "freq": 2,
-            "count": 6,
-            "main_freq": 4101,
-            "sales": 7594.0,
-            "combine_rate": 0.000487685930260912
-        },
-        {
-            "goods_info": [
-                {
-                    "sku": "1ECRAC070",
-                    "name": "羊毛混纺套装(马甲+半裙+内搭)",
-                    "color_code": "07X",
-                    "color": "浅灰中灰双色",
-                    "season": "冬季",
-                    "category": "套装",
-                    "goods_id": "2714090201747968",
-                    "color_id": "2178212532990464",
-                    "image_url": "http://pim.gloria.com.cn/productImg/1ECRAC070/origin/color/51a109613c0a49c69bac8b9e83fe6e3c.jpg?x-oss-process=image/resize,w_300",
-                    "image_path": "./data/sku_image/1ECRAC07007X.png",
-                    "skc": "1ECRAC07007X",
-                    "price": "999"
-                },
-                {
-                    "sku": "1ECLAB390",
-                    "name": "仿麂皮马甲针织连衣裙套装(马甲+连衣裙+配仿麂皮腰带)",
-                    "color_code": "91W",
-                    "color": "深杏",
-                    "season": "冬季",
-                    "category": "套装",
-                    "goods_id": "2714090722210304",
-                    "color_id": "2055025368787496",
-                    "image_url": "http://pim.gloria.com.cn/productImg/1ECLAB390/origin/color/21b2a364fb3643578faf4e4c44e87cfa.jpg?x-oss-process=image/resize,w_300",
-                    "image_path": "./data/sku_image/1ECLAB39091W.png",
-                    "skc": "1ECLAB39091W",
-                    "price": "999"
-                }
-            ],
-            "freq": 2,
-            "count": 6,
-            "main_freq": 4101,
-            "sales": 7994.0,
-            "combine_rate": 0.000487685930260912
-        },
-        {
-            "goods_info": [
-                {
-                    "sku": "1EDJAC330",
-                    "name": "针织西装套装(西装+连衣裙)",
-                    "color_code": "50B",
-                    "color": "灰黑色",
-                    "season": "冬季",
-                    "category": "套装",
-                    "goods_id": "2724692049818112",
-                    "color_id": "2055025368803872",
-                    "image_url": "http://pim.gloria.com.cn/productImg/1EDJAC330/origin/color/98d4625f72664d4783fcaece01d5d320.jpg?x-oss-process=image/resize,w_300",
-                    "image_path": "./data/sku_image/1EDJAC33050B.png",
-                    "skc": "1EDJAC33050B",
-                    "price": "1499"
-                },
-                {
-                    "sku": "189A9M06I",
-                    "name": "女士长袖长裤睡衣两件套",
-                    "color_code": "20D",
-                    "color": "白底黑点",
-                    "season": "秋季",
-                    "category": "家居",
-                    "goods_id": "2739585094554112",
-                    "color_id": "2055025368795719",
-                    "image_url": null,
-                    "image_path": null,
-                    "skc": "189A9M06I20D",
-                    "price": "1799"
-                }
-            ],
-            "freq": 2,
-            "count": 6,
-            "main_freq": 4101,
-            "sales": 10594.0,
-            "combine_rate": 0.000487685930260912
-        },
-        {
-            "goods_info": [
-                {
-                    "sku": "1CDLAB610",
-                    "name": "水洗羊毛套装(毛织+背心连衣裙)",
-                    "color_code": "44B",
-                    "color": "烟灰",
-                    "season": "冬季",
-                    "category": "套装",
-                    "goods_id": "2457369111015936",
-                    "color_id": "2055025368787546",
-                    "image_url": "http://pim.gloria.com.cn/productImg/1CDLAB610/origin/color/081e976aac684608b35d01a8e8f24774.jpg?x-oss-process=image/resize,w_300",
-                    "image_path": "./data/sku_image/1CDLAB61044B.png",
-                    "skc": "1CDLAB61044B",
-                    "price": "1499"
-                },
-                {
-                    "sku": "1E9L5J080",
-                    "name": "马海毛亮丝毛衣",
-                    "color_code": "86Y",
-                    "color": "咖啡色",
-                    "season": "秋季",
-                    "category": "毛织",
-                    "goods_id": "2650993648742912",
-                    "color_id": "2055025368803881",
-                    "image_url": "http://pim.gloria.com.cn/productImg/1E9L5J080/origin/color/4fce7f05150d4b23bb8d6ef069c969e5.jpg?x-oss-process=image/resize,w_300",
-                    "image_path": "./data/sku_image/1E9L5J08086Y.png",
-                    "skc": "1E9L5J08086Y",
-                    "price": "799"
-                }
-            ],
-            "freq": 2,
-            "count": 6,
-            "main_freq": 4101,
-            "sales": 8594.0,
-            "combine_rate": 0.000487685930260912
-        },
-        {
-            "goods_info": [
-                {
-                    "sku": "1E1C3E050",
-                    "name": "荷叶边立领白衬衣",
-                    "color_code": "03W",
-                    "color": "本白",
-                    "season": "春季",
-                    "category": "梭织衫",
-                    "goods_id": "2517339474326016",
-                    "color_id": "2055025368795660",
-                    "image_url": "http://pim.gloria.com.cn/productImg/1E1C3E050/origin/color/9f68b56de2c74e23b18d800237f2ee84.jpg?x-oss-process=image/resize,w_300",
-                    "image_path": "./data/sku_image/1E1C3E05003W.png",
-                    "skc": "1E1C3E05003W",
-                    "price": "499"
-                },
-                {
-                    "sku": "1E9L6A120",
-                    "name": "花纱水洗羊毛马甲外套",
-                    "color_code": "44B",
-                    "color": "烟灰",
-                    "season": "秋季",
-                    "category": "外套",
-                    "goods_id": "2650993995780608",
-                    "color_id": "2055025368787546",
-                    "image_url": "http://pim.gloria.com.cn/productImg/1E9L6A120/origin/color/2c5d8977d4ff4ecca57f3149d4a106b3.jpg?x-oss-process=image/resize,w_300",
-                    "image_path": "./data/sku_image/1E9L6A12044B.png",
-                    "skc": "1E9L6A12044B",
-                    "price": "899"
-                }
-            ],
-            "freq": 2,
-            "count": 6,
-            "main_freq": 4101,
-            "sales": 6794.0,
-            "combine_rate": 0.000487685930260912
-        },
-        {
-            "goods_info": [
-                {
-                    "sku": "1CNC6N390",
-                    "name": "全羊毛双面呢翻领大衣(配送本布腰带)",
-                    "color_code": "08H",
-                    "color": "深花灰",
-                    "season": "冬季",
-                    "category": "外套",
-                    "goods_id": "2458003366924800",
-                    "color_id": "2055025368812101",
-                    "image_url": "http://pim.gloria.com.cn/productImg/1CNC6N390/origin/color/eac7253d4bee4a198b5251bb8a488609.jpg?x-oss-process=image/resize,w_300",
-                    "image_path": "./data/sku_image/1CNC6N39008H.png",
-                    "skc": "1CNC6N39008H",
-                    "price": "2199"
-                },
-                {
-                    "sku": "1EDA9A05E",
-                    "name": "全羊毛双面呢流苏围巾",
-                    "color_code": "05R",
-                    "color": "浅珊瑚",
-                    "season": "冬季",
-                    "category": "饰品",
-                    "goods_id": "2738965775749632",
-                    "color_id": "2055025368779364",
-                    "image_url": null,
-                    "image_path": null,
-                    "skc": "1EDA9A05E05R",
-                    "price": "999"
-                }
-            ],
-            "freq": 2,
-            "count": 6,
-            "main_freq": 4101,
-            "sales": 10394.0,
-            "combine_rate": 0.000487685930260912
-        },
-        {
-            "goods_info": [
-                {
-                    "sku": "1C9L6J530",
-                    "name": "小香风珠片花纱针织开衫",
-                    "color_code": "05H",
-                    "color": "花灰",
-                    "season": "秋季",
-                    "category": "外套",
-                    "goods_id": "2392651535176192",
-                    "color_id": "2055025368787492",
-                    "image_url": "http://pim.gloria.com.cn/productImg/1C9L6J530/origin/color/2bd10ecb69f843fe80fed7654585eb86.jpg?x-oss-process=image/resize,w_300",
-                    "image_path": "./data/sku_image/1C9L6J53005H.png",
-                    "skc": "1C9L6J53005H",
-                    "price": "699"
-                },
-                {
-                    "sku": "1E3JCD23D",
-                    "name": "宽松直筒牛仔裤",
-                    "color_code": "75U",
-                    "color": "牛仔蓝",
-                    "season": "春季",
-                    "category": "牛仔裤类",
-                    "goods_id": "2634847034864128",
-                    "color_id": "2055025368795675",
-                    "image_url": "http://pim.gloria.com.cn/productImg/1E3JCD23D/origin/color/cd353bd95d6f46fe9bcef1d27f52d434.jpg?x-oss-process=image/resize,w_300",
-                    "image_path": "./data/sku_image/1E3JCD23D75U.png",
-                    "skc": "1E3JCD23D75U",
-                    "price": "599"
-                }
-            ],
-            "freq": 2,
-            "count": 6,
-            "main_freq": 4101,
-            "sales": 6594.0,
-            "combine_rate": 0.000487685930260912
-        }
-    ],
-    "outfit_orders": [
-        [
-            {
-                "price": "1999",
-                "image_path": "./data/sku_image/1ACLAB10A86Y.png",
-                "skc": "1ACLAB10A86Y",
-                "reason": "主推款套装配紫色大衣,冬季保暖,咖啡色与紫绒配色优雅和谐。"
-            },
-            {
-                "price": "5999",
-                "image_path": "./data/sku_image/10CL6E57038H.png",
-                "skc": "10CL6E57038H",
-                "reason": "主推款套装配紫色大衣,冬季保暖,咖啡色与紫绒配色优雅和谐。"
-            }
-        ],
-        [
-            {
-                "price": "799",
-                "image_path": "./data/sku_image/1B9L6E04086Y.png",
-                "skc": "1B9L6E04086Y",
-                "reason": "咖啡色秋季外套配同色毛织上衣,风格统一温暖舒适日常百搭。"
-            },
-            {
-                "price": "799",
-                "image_path": "./data/sku_image/1E9L5J08086Y.png",
-                "skc": "1E9L5J08086Y",
-                "reason": "咖啡色秋季外套配同色毛织上衣,风格统一温暖舒适日常百搭。"
-            }
-        ],
-        [
-            {
-                "price": "399",
-                "image_path": "./data/sku_image/1C3C3D05003W.png",
-                "skc": "1C3C3D05003W",
-                "reason": "本白衬衫搭牛仔蓝直筒裤,春季清新简约通勤休闲皆适宜。"
-            },
-            {
-                "price": "599",
-                "image_path": "./data/sku_image/1E3JCD23D75U.png",
-                "skc": "1E3JCD23D75U",
-                "reason": "本白衬衫搭牛仔蓝直筒裤,春季清新简约通勤休闲皆适宜。"
-            }
-        ],
-        [
-            {
-                "price": "699",
-                "image_path": "./data/sku_image/1BNR4K36000B.png",
-                "skc": "1BNR4K36000B",
-                "reason": "黑色连衣裙加米色马甲深灰大衣,冬季层次丰富保暖又时尚。"
-            },
-            {
-                "price": "799",
-                "image_path": "./data/sku_image/1ECC8A20007W.png",
-                "skc": "1ECC8A20007W",
-                "reason": "黑色连衣裙加米色马甲深灰大衣,冬季层次丰富保暖又时尚。"
-            },
-            {
-                "price": "2199",
-                "image_path": "./data/sku_image/1CNC6N39008H.png",
-                "skc": "1CNC6N39008H",
-                "reason": "黑色连衣裙加米色马甲深灰大衣,冬季层次丰富保暖又时尚。"
-            }
-        ],
-        [
-            {
-                "price": "599",
-                "image_path": "./data/sku_image/1E8J6E0S091R.png",
-                "skc": "1E8J6E0S091R",
-                "reason": "酒红开衫配咖啡色毛织上衣,秋季暖调组合温柔显气质。"
-            },
-            {
-                "price": "799",
-                "image_path": "./data/sku_image/1E9L5J08086Y.png",
-                "skc": "1E9L5J08086Y",
-                "reason": "酒红开衫配咖啡色毛织上衣,秋季暖调组合温柔显气质。"
-            }
-        ]
-    ]
-}

+ 0 - 210
test.py

@@ -1,210 +0,0 @@
-import os
-from typing import Dict, List
-from openpyxl import Workbook
-from openpyxl.styles import Font, Alignment, PatternFill
-from openpyxl.drawing.image import Image
-import logging
-
-logger = logging.getLogger(__name__)
-
-class ExcelExporter:
-    """Excel导出器,用于将商品组合数据导出为Excel格式"""
-    
-    def __init__(self):
-        self.wb = None
-        self.ws = None
-        self.styles = {
-            'GREEN_FONT': Font(color="FF0000"),  # 注意:这里颜色定义可能有误,应该是00FF00为绿色
-            'BLUE_FONT': Font(color="0000FF"),
-            'RED_FONT': Font(color="00FF00"),    # 注意:这里应该是FF0000为红色
-            'BOLD_FONT': Font(bold=True),
-            'CENTER_ALIGN': Alignment(horizontal='center', vertical='center'),
-            'RED_FILL': PatternFill(start_color="FF9999", end_color="FF9999", fill_type="solid"),
-            'GREEN_FILL': PatternFill(start_color="99FF99", end_color="99FF99", fill_type="solid")
-        }
-    
-    def export_to_excel(self, data: Dict, filename: str = None) -> str:
-        """
-        将商品数据导出到Excel文件
-        
-        Args:
-            data: 包含商品信息的字典
-            filename: 输出的Excel文件名
-            
-        Returns:
-            导出的文件路径
-        """
-        try:
-            self._initialize_workbook()
-            self._extract_data(data)
-            self._setup_worksheet()
-            self._write_data()
-            return self._save_workbook(filename)
-        except Exception as e:
-            logger.error(f"导出Excel失败: {e}")
-            raise
-    
-    def _initialize_workbook(self):
-        """初始化工作簿和工作表"""
-        self.wb = Workbook()
-        self.ws = self.wb.active
-        self.ws.title = "商品数据"
-    
-    def _extract_data(self, data: Dict):
-        """从数据中提取所需信息"""
-        self.primary_good = data["primary_goods_info"]["goods_info"]
-        self.combine_two = data["combine_two_info"]
-        self.combine_three = data["combine_three_info"]
-        self.outfit_orders = data["outfit_orders"]
-        self.primary_code = self.primary_good['sku'] + self.primary_good['color_code']
-        self.header_count = [len(order) for order in self.outfit_orders]
-    
-    def _setup_worksheet(self):
-        """设置工作表基本属性"""
-        self._setup_column_dimensions()
-        self._write_headers()
-        self.ws.freeze_panes = 'A2'
-    
-    def _setup_column_dimensions(self):
-        """设置列宽"""
-        # 图片列
-        for col in ['B', 'C', 'D']:
-            self.ws.column_dimensions[col].width = 13.6
-        
-        # 数据列
-        for col in ['A', *[self._get_column_letter(i) for i in range(4, 58)]]:
-            self.ws.column_dimensions[col].width = 14 if col != 'A' else 40
-    
-    def _write_headers(self):
-        """写入表头"""
-        self._write_main_headers()
-        self._write_sub_headers()
-    
-    def _write_main_headers(self):
-        """写入主表头"""
-        headers = [
-            "组合", "主推款图片", "连带款1图片", "连带款2图片", "连带排名", 
-            "连带频次", "主商品频次", "连带率", "连带件数", "连带金额", ""
-        ]
-        
-        for col_idx, header in enumerate(headers, start=1):
-            cell = self.ws.cell(row=1, column=col_idx, value=header)
-            cell.font = self.styles['BOLD_FONT']
-            cell.alignment = self.styles['CENTER_ALIGN']
-    
-    def _write_sub_headers(self):
-        """写入子表头(大单组合)"""
-        # ... 原有的子表头逻辑,略作调整使用self.styles
-    
-    def _write_data(self):
-        """写入所有数据"""
-        self._write_combine_two_data()
-        self._write_combine_three_data()
-        self._write_outfit_orders_data()
-        self._format_worksheet()
-    
-    def _write_combine_two_data(self):
-        """写入两种商品组合数据"""
-        for row_idx, item in enumerate(self.combine_two, start=2):
-            self._write_combine_two_row(row_idx, item)
-    
-    def _write_combine_two_row(self, row_idx: int, item: Dict):
-        """写入单行两种商品组合数据"""
-        goods_info = item['goods_info']
-        sub_code = goods_info['sku'] + goods_info['color_code']
-        
-        # 写入数据
-        data_mapping = [
-            (1, f"{self.primary_code},{sub_code}"), (4, "22组合"),
-            (5, row_idx-1), (6, item['freq']), (7, item['main_freq']),
-            (8, item['combine_rate']), (9, item['count']), (10, item['sales'])
-        ]
-        
-        for col, value in data_mapping:
-            cell = self.ws.cell(row=row_idx, column=col, value=value)
-            cell.font = self.styles['GREEN_FONT']
-        
-        # 插入图片
-        self._insert_image(self.primary_good['image_path'], f'B{row_idx}')
-        self._insert_image(goods_info['image_path'], f'C{row_idx}')
-    
-    def _write_combine_three_data(self):
-        """写入三种商品组合数据"""
-        start_row = 2 + len(self.combine_two)
-        for row_idx, item in enumerate(self.combine_three, start=start_row):
-            self._write_combine_three_row(row_idx, item, start_row)
-    
-    def _write_combine_three_row(self, row_idx: int, item: Dict, start_row: int):
-        """写入单行三种商品组合数据"""
-        goods_info = item['goods_info']
-        sub1_code = goods_info[0]['sku'] + goods_info[0]['color_code']
-        sub2_code = goods_info[1]['sku'] + goods_info[1]['color_code']
-        
-        data_mapping = [
-            (1, f"{self.primary_code},{sub1_code},{sub2_code}"),
-            (5, row_idx - (1 + len(self.combine_two))), (6, item['freq']),
-            (7, item['main_freq']), (8, item['combine_rate']),
-            (9, item['count']), (10, item['sales'])
-        ]
-        
-        for col, value in data_mapping:
-            cell = self.ws.cell(row=row_idx, column=col, value=value)
-            cell.font = self.styles['BLUE_FONT']
-        
-        # 插入图片
-        self._insert_image(self.primary_good['image_path'], f'B{row_idx}')
-        self._insert_image(goods_info[0]['image_path'], f'C{row_idx}')
-        self._insert_image(goods_info[1]['image_path'], f'D{row_idx}')
-    
-    def _write_outfit_orders_data(self):
-        """写入大单组合数据"""
-        # ... 原有逻辑,略作调整
-    
-    def _insert_image(self, image_path: str, cell_location: str):
-        """在指定单元格插入图片"""
-        try:
-            if os.path.exists(image_path):
-                img = Image(image_path)
-                img.width = img.height = 100
-                self.ws.add_image(img, cell_location)
-        except Exception as e:
-            logger.warning(f"插入图片失败 {image_path}: {e}")
-    
-    def _format_worksheet(self):
-        """格式化工作表"""
-        # 设置百分比格式
-        for cell in self.ws['H']:
-            cell.number_format = '0.00%'
-        
-        # 设置行高
-        data_rows_count = len(self.combine_two) + len(self.combine_three)
-        for row in range(2, data_rows_count + 2):
-            self.ws.row_dimensions[row].height = 80
-        
-        # 设置居中对齐
-        for row in self.ws.iter_rows():
-            for cell in row:
-                cell.alignment = self.styles['CENTER_ALIGN']
-    
-    def _save_workbook(self, filename: str) -> str:
-        """保存工作簿到文件"""
-        if not filename:
-            filename = f"{self.primary_code}.xlsx"
-        
-        os.makedirs('./output', exist_ok=True)
-        file_path = os.path.join('./output', filename)
-        self.wb.save(file_path)
-        logger.info(f"数据已成功写入 {file_path} 文件")
-        return file_path
-    
-    @staticmethod
-    def _get_column_letter(idx: int) -> str:
-        """获取列字母(简化版本)"""
-        from openpyxl.utils import get_column_letter
-        return get_column_letter(idx)
-
-# 使用示例
-def export_to_excel(data: Dict, filename: str = None) -> str:
-    """保持原有函数接口的包装函数"""
-    exporter = ExcelExporter()
-    return exporter.export_to_excel(data, filename)

BIN
换行示例.xlsx