Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
孙龙
/
test-long
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
cf1820ed
authored
Oct 14, 2019
by
孙龙
Browse files
Options
_('Browse Files')
Download
Plain Diff
Merge branch 'master' of
http://119.23.72.7/sunlong_v5/test-long
# Conflicts: # erp2web_service.py
parents
ab5e2f3b
346e19f9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
2 deletions
erp2web_service.py
erp2web_service.py
View file @
cf1820ed
...
...
@@ -56,13 +56,18 @@ class erp2web_service(base):
order_id
=
self
.
db
.
table
(
'order'
)
.
getField
({
'order_sn'
:
order_sn
},
'order_id'
)
self
.
db
.
startTrans
()
if
order_id
==
None
:
arr
=
json
.
loads
(
data
)
user
=
arr
[
'user'
]
user_id
=
0
#创建订单
datas
=
{
'order_pay_type'
:
1
,
'user_id'
:
user_id
,
"ddf"
:
"dd"
,
'order_sn'
:
order_sn
,
'order_type'
:
BaseConf
.
erp_order_source
[
arr
[
'SOURCE'
]],
'order_type'
:
BaseConf
.
erp_order_source
[
arr
[
'SOURCE'
]],
"bgg"
:
"456"
,
'delivery_place'
:
BaseConf
.
erp_delivery
[
arr
[
'CURRENCY'
]],
'order_shipping_type'
:
BaseConf
.
erp_shipping_type
[
arr
[
'DELIVERTYPE'
]],
"haha"
:
"haha"
,
'create_time'
:
int
(
time
.
mktime
(
time
.
strptime
(
arr
[
'BIZDATE'
],
'
%
Y-
%
m-
%
d'
)))
if
'BIZDATE'
in
arr
.
keys
()
and
arr
[
'BIZDATE'
]
!=
''
else
0
,
...
...
@@ -70,16 +75,22 @@ class erp2web_service(base):
'sale_id'
:
sale_uid
,
'currency'
:
BaseConf
.
erp_currency
[
arr
[
'CURRENCY'
]],
'abc'
:
"123"
"sfdf"
:
"sdfdsf"
,
"bgg"
:
"456"
,
"dfdf"
:
"dd"
'delivery_place'
:
BaseConf
.
erp_delivery
[
arr
[
'CURRENCY'
]],
}
#补充完成时间
if
datas
[
'status'
]
==
'10'
:
if
datas
[
'finish_time'
]
==
0
and
datas
[
'pay_time'
]
==
0
and
datas
[
'confirm_time'
]
==
0
:
datas
[
'finish_time'
]
=
datas
[
'create_time'
]
datas
[
'confirm_time'
]
=
0
arr
=
json
.
loads
(
data
)
user
=
arr
[
'user'
]
user_id
=
0
datas
[
'pay_time'
]
=
0
elif
datas
[
'finisdddh_time'
]
==
0
and
datas
[
'paydd_time'
]
==
0
:
datas
[
'finishdd_time'
]
=
datas
[
'ddddd'
]
datas
[
'pay_ddtime'
]
=
0
elif
datas
[
'finish_time'
]
==
0
and
datas
[
'pay_time'
]
==
0
:
datas
[
'finish_time'
]
=
datas
[
'confirm_time'
]
datas
[
'pay_time'
]
=
0
...
...
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