Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
中
中电中采
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ZGC_INDEX
中电中采
Commits
2ebdc9ca
Commit
2ebdc9ca
authored
Dec 07, 2020
by
rico.liu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
8fda62fe
Pipeline
#182
failed with stages
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
main.py
模板建库/main.py
+5
-5
正式建库模板.xlsx
模板建库/正式建库模板.xlsx
+0
-0
No files found.
模板建库/main.py
View file @
2ebdc9ca
...
...
@@ -15,8 +15,6 @@ from public_function import *
import
uuid
import
datetime
#from delCalPrice_UpdatePriceDiff import check_configure_price,create_price_difference_single
#初始化数据
def
InitializeData
(
path
):
...
...
@@ -24,7 +22,11 @@ def InitializeData(path):
#加载上传数据
df_product
=
pd
.
read_excel
(
path
,
sheet_name
=
'产品表模板'
)
df_product
=
df_product
.
fillna
(
'无'
)
if
df_product
[
'操作人'
]
.
unique
()
.
tolist
()[
0
]
==
'无'
:
print
(
"请填写操作人信息,eg:CL-MBJK"
)
return
False
df_price
=
pd
.
read_excel
(
path
,
sheet_name
=
'价格表模板'
)
df_price
=
df_price
.
fillna
(
'无'
)
...
...
@@ -1720,7 +1722,6 @@ path = "/Users/rico/project/模板建库v2/CL-MBJK建库产品参数确认2020-1
##校验参数数据
std_value_dict
=
CheckParamsData
(
path
)
##导入补充的数据字典
data_dict_path
=
"/Users/rico/project/模板建库v2/CL-MBJK建库产品参数确认2020-11-20(1)(数据字典补充).xlsx"
ComplicatedDataDict
(
data_dict_path
)
...
...
@@ -1730,7 +1731,6 @@ if std_value_dict:
save_collect_data_info
(
path
,
std_value_dict
)
##产品名称
product_named
(
batch
,
channel_alias
,
std_value_dict
)
#导出建库前确认数据
df
=
LoadData
(
batch
,
channel_alias
,
'collectDataConfirm'
)
...
...
模板建库/正式建库模板.xlsx
View file @
2ebdc9ca
No preview for this file type
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment