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 e00bd37d
authored
Oct 29, 2026
by
章家宝
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
config(common_equity):红黄门店中的当月指标不做校验,运营传入什么就显示什么
1 parent
59b40c12
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
7 deletions
data-process/common_equity_processor.py
data-process/common_equity_processor.py
View file @
e00bd37
...
...
@@ -1359,12 +1359,6 @@ class CommonEquityProcessor:
f
"{FORM_RED_YELLOW}:第 {line} 行 截止目前灯级只能为 黄/红/绿,实际为「{light}」"
)
target
=
row
[
'target'
]
if
target
is
not
None
:
try
:
if
Decimal
(
str
(
target
))
<
0
:
raise
ValueError
except
Exception
:
raise
Exception
(
f
"{FORM_RED_YELLOW}:第 {line} 行 当月目标必须为不小于 0 的数值"
)
brand
=
str
(
row
[
'brand'
])
.
strip
()
if
row
[
'brand'
]
is
not
None
else
''
if
not
brand
:
...
...
@@ -2555,7 +2549,7 @@ class CommonEquityProcessor:
(
'优秀值'
,
'excellent'
,
'ratio'
),
(
'标准值'
,
'standard'
,
'ratio'
),
(
'预警值'
,
'warning'
,
'ratio'
),
(
'{month}月目标'
,
'target'
,
'
in
t'
),
(
'{month}月目标'
,
'target'
,
'
tex
t'
),
]
def
_write_red_yellow_sheet
(
self
,
ws
,
payload
):
...
...
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