Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
data_report
/
data-report
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 91be2fa4
authored
Nov 04, 2026
by
周立明
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
北汽专项-品牌汇总上月段去掉 4 个环比列
1 parent
c5cf2400
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
0 deletions
.workbuddy/memory/2026-11-04.md
data-process/baic_special_processor.py
data-process/outputs/baic_special_2026-08_task900002.xlsx
.workbuddy/memory/2026-11-04.md
0 → 100644
View file @
91be2fa
## 北汽专项-品牌汇总上月段去掉 4 个环比列(2026-11-04)
-
需求:结果表品牌汇总「上月」段整列去掉 售后场景开通率环比/售前触客率环比/整车延保渗透率环比/原厂权益渗透率环比(O~R,col15-18),「本月」段不变。
-
baic_special_processor.py generate_result_excel(约1910行):上月段表头行(cur_prev_row+1) col15-18 用 _set_cell 置 None;数据行(_p_row) O~R 此前已清空(1928行原有逻辑保留)。
-
本月段表头+环比数据(data_row O~R = 本月-上月)与 DB 汇总表
*
_mom_
pp 回写均不变。
-
已 py_compile + grep 回读确认;生效需重启后端 PID 13536 + 重跑任务。
data-process/baic_special_processor.py
View file @
91be2fa
...
@@ -1908,6 +1908,10 @@ class BaicSpecialProcessor:
...
@@ -1908,6 +1908,10 @@ class BaicSpecialProcessor:
ws
.
cell
(
cur_prev_row
,
1
)
.
value
=
re
.
sub
(
ws
.
cell
(
cur_prev_row
,
1
)
.
value
=
re
.
sub
(
r'上月\s*\S*'
,
f
'上月 {prev_month_label}'
,
str
(
lbl
))
r'上月\s*\S*'
,
f
'上月 {prev_month_label}'
,
str
(
lbl
))
_p_row
=
cur_prev_row
+
2
_p_row
=
cur_prev_row
+
2
# 上月段:整列去掉 4 个环比列(表头+数据),本月段不变(用户 2026-11-04)
_p_hdr
=
cur_prev_row
+
1
for
_c
in
range
(
15
,
19
):
_set_cell
(
ws
,
_p_hdr
,
_c
,
None
)
if
_prev_details
:
if
_prev_details
:
# 上月段数据行:用上月真实任务数据回填(与上月结果表「本月」汇总同口径)
# 上月段数据行:用上月真实任务数据回填(与上月结果表「本月」汇总同口径)
_set_cell
(
ws
,
_p_row
,
1
,
'北汽'
)
# 项目
_set_cell
(
ws
,
_p_row
,
1
,
'北汽'
)
# 项目
...
...
data-process/outputs/baic_special_2026-08_task900002.xlsx
0 → 100644
View file @
91be2fa
No preview for this file type
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment