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 d741cf54
authored
Nov 06, 2026
by
周立明
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
北汽结果表 差异数据显示问题修复
1 parent
b322d706
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
10 deletions
data-process/baic_special_processor.py
data-process/outputs/baic_special_2026-10_task900032.xlsx
data-process/baic_special_processor.py
View file @
d741cf5
...
...
@@ -1677,13 +1677,18 @@ class BaicSpecialProcessor:
_set_cell
(
ws
,
r_a
,
26
,
_dec_to_float
(
d
.
excellent_value
))
# Z 优秀值
_set_cell
(
ws
,
r_a
,
27
,
_dec_to_float
(
d
.
standard_value
))
# AA 标准值
_set_cell
(
ws
,
r_a
,
28
,
_dec_to_float
(
d
.
warning_value
))
# AB 预警值
_set_cell
(
ws
,
r_a
,
29
,
d
.
delivery_check_output_cnt
)
# AC 交车数核对-产值表(广联报表)
_set_cell
(
ws
,
r_a
,
30
,
d
.
delivery_check_group_cnt
)
# AD 一店一群交车数
_set_cell
(
ws
,
r_a
,
32
,
d
.
visit_check_output_cnt
)
# AF 触客数核对-产值表(广联报表)
_set_cell
(
ws
,
r_a
,
33
,
d
.
visit_check_group_cnt
)
# AG 一店一群触客数
# 差异列 = 产值表 - 一店一群(任一侧为空则差异为空)
_set_cell
(
ws
,
r_a
,
31
,
_diff
(
d
.
delivery_check_output_cnt
,
d
.
delivery_check_group_cnt
))
# AE 交车数核对-差异
_set_cell
(
ws
,
r_a
,
34
,
_diff
(
d
.
visit_check_output_cnt
,
d
.
visit_check_group_cnt
))
# AH 触客数核对-差异
# 交车数核对 / 触客数核对:产值表、一店一群、差异 三类数值,缺失(Null)一律按 0 处理
_d_out
=
d
.
delivery_check_output_cnt
or
0
# AC 交车数核对-产值表
_d_grp
=
d
.
delivery_check_group_cnt
or
0
# AD 一店一群交车数
_v_out
=
d
.
visit_check_output_cnt
or
0
# AF 触客数核对-产值表
_v_grp
=
d
.
visit_check_group_cnt
or
0
# AG 一店一群触客数
_set_cell
(
ws
,
r_a
,
29
,
_d_out
)
_set_cell
(
ws
,
r_a
,
30
,
_d_grp
)
_set_cell
(
ws
,
r_a
,
32
,
_v_out
)
_set_cell
(
ws
,
r_a
,
33
,
_v_grp
)
# 差异 = 产值表 - 一店一群(缺失按 0,恒为数值,不再留空)
_set_cell
(
ws
,
r_a
,
31
,
_d_out
-
_d_grp
)
# AE 交车数核对-差异
_set_cell
(
ws
,
r_a
,
34
,
_v_out
-
_v_grp
)
# AH 触客数核对-差异
# 订单数(D+ 子订单,按业务类型)与渗透率
new_delivery
=
d
.
new_delivery_cnt
# N 新车交付数
ext_cnt
=
biz_map
.
get
(
d
.
store_id
,
{})
.
get
(
BAIC_BIZ_EXT_WARRANTY
)
# 整车延保订单数
...
...
@@ -1836,10 +1841,10 @@ class BaicSpecialProcessor:
total_deliv_check_grp
=
sum
((
d
.
delivery_check_group_cnt
or
0
)
for
d
in
details
)
# AB 交车数核对-一店一群 合计
total_visit_check_out
=
sum
((
d
.
visit_check_output_cnt
or
0
)
for
d
in
details
)
# AD 触客数核对-产值表 合计
total_visit_check_grp
=
sum
((
d
.
visit_check_group_cnt
or
0
)
for
d
in
details
)
# AE 触客数核对-一店一群 合计
# 差异列合计 = 逐店
差异之和(任一列为空 → 该店差异留空、不计入合计
)
total_deliv_diff
=
sum
((
_diff
(
d
.
delivery_check_output_cnt
,
d
.
delivery_check_group_cnt
)
or
0
)
# 差异列合计 = 逐店
(产值表 or 0 - 一店一群 or 0)之和(缺失按 0,与明细行同口径
)
total_deliv_diff
=
sum
((
(
d
.
delivery_check_output_cnt
or
0
)
-
(
d
.
delivery_check_group_cnt
or
0
)
)
for
d
in
details
)
# AC 交车数核对-差异 合计
total_visit_diff
=
sum
((
_diff
(
d
.
visit_check_output_cnt
,
d
.
visit_check_group_cnt
)
or
0
)
total_visit_diff
=
sum
((
(
d
.
visit_check_output_cnt
or
0
)
-
(
d
.
visit_check_group_cnt
or
0
)
)
for
d
in
details
)
# AF 触客数核对-差异 合计
_set_cell
(
ws
,
4
,
11
,
total_target
)
# K 产值目标(万)合计
_set_cell
(
ws
,
4
,
12
,
total_current
)
# L 截止目前产值(万)合计
...
...
data-process/outputs/baic_special_2026-10_task900032.xlsx
View file @
d741cf5
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