Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
岳巧源
/
data_server
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
63ec1cee
authored
Aug 26, 2024
by
岳巧源
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
modify script
parent
36ed080c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
config.py
config_prod.py
handle.py
config.py
View file @
63ec1cee
...
...
@@ -7,6 +7,6 @@ rabbit_mq_password = "jy2y2900"
rabbit_mq_exchange
=
"europa_erp_parse_file_exchange"
rabbit_mq_routing_key
=
"europa_erp_sku_routing"
tmp_xls_file_dir
=
"/data/golang/src/europa-erp-go/scripts/data_server/tmp"
tmp_xls_file_dir
=
"/data/golang/src/europa-erp-go/scripts/data_server/tmp
/
"
config_prod.py
View file @
63ec1cee
...
...
@@ -7,4 +7,4 @@ rabbit_mq_password = "ans2024123"
rabbit_mq_exchange
=
"europa_erp_parse_file_exchange"
rabbit_mq_routing_key
=
"europa_erp_sku_routing"
tmp_xls_file_dir
=
"/data/golang/src/europa-erp-go/scripts/data_server/tmp"
\ No newline at end of file
tmp_xls_file_dir
=
"/data/golang/src/europa-erp-go/scripts/data_server/tmp/"
\ No newline at end of file
handle.py
View file @
63ec1cee
...
...
@@ -55,6 +55,8 @@ def resolve(file_name: str, supplier_id: int):
for
i
in
range
(
len
(
df
.
index
.
values
)):
goods_name
=
str
(
df
.
loc
[
i
,
"原厂型号"
])
brand_name
=
str
(
df
.
loc
[
i
,
"品牌"
])
if
goods_name
.
strip
()
==
""
or
brand_name
.
strip
()
==
""
:
continue
stock
=
str
(
df
.
loc
[
i
,
"库存"
])
moq
=
str
(
df
.
loc
[
i
,
"起订量"
])
price_is_us
=
False
...
...
@@ -65,8 +67,6 @@ def resolve(file_name: str, supplier_id: int):
str
(
df
.
loc
[
i
,
"批次"
]):
int
(
df
.
loc
[
i
,
"库存"
]),
}
eccn
=
""
if
goods_name
.
strip
()
==
""
or
brand_name
.
strip
()
==
""
:
continue
if
str
(
df
.
loc
[
i
,
"批次"
])
.
strip
()
==
""
:
batch_sn
=
{}
table
=
{
...
...
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