Commit 2a2c045b by 章家宝

fixbug(common_equity):红黄门店的产值表格加长

1 parent 833c2aa6
......@@ -667,7 +667,7 @@ class CommonEquityProcessor:
"SELECT merchant_id, SUM(delivery_count) AS total "
"FROM dj_car_life_merchant_daily_report_huawei "
"WHERE deleted_flag = 'N' "
" AND brand_id = -1 AND first_brand_id = -1 and scene_type = 0"
" AND brand_id = -1 AND first_brand_id = -1 AND scene_type = 0 "
f" AND merchant_id IN ({ph}) "
" AND report_date >= :start_date AND report_date <= :end_date "
"GROUP BY merchant_id"
......@@ -2370,7 +2370,7 @@ class CommonEquityProcessor:
cell.font = cell_font
for i, (title, _key, _kind) in enumerate(columns):
width = 14 if title in ('兜底要求', '线上运营') else max(9, len(str(title)) * 2 + 2)
width = 14 if title in ('兜底要求', '线上运营', '产值') else max(9, len(str(title)) * 2 + 2)
ws.column_dimensions[get_column_letter(i + 1)].width = width
ws.freeze_panes = 'C2'
ws.row_dimensions[1].height = 30
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!