Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Z
zhichan
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
蒋勇
zhichan
Commits
4a6191e4
Commit
4a6191e4
authored
Feb 27, 2020
by
宋毅
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tj
parent
297397fd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
3 deletions
+17
-3
center-order/app/base/api/impl/action/order.js
+4
-1
center-order/app/base/service/impl/dbcorder/orderinfoSve.js
+13
-2
No files found.
center-order/app/base/api/impl/action/order.js
View file @
4a6191e4
...
...
@@ -34,6 +34,9 @@ class OrderAPI extends APIBase {
case
"getOrderDeliveryInfo"
:
//获取订单交付信息
opResult
=
await
this
.
orderinfoSve
.
getOrderDeliveryInfo
(
pobj
,
pobj
.
actionBody
);
break
;
case
"getOrderDeliveryFlowInfo"
:
//获取订单交付流程信息
opResult
=
await
this
.
orderinfoSve
.
getOrderDeliveryFlowInfo
(
pobj
,
pobj
.
actionBody
);
break
;
//--------------------------------支付相关接口------------开始
case
"getPayOrderInfo"
:
//获取付款订单信息
opResult
=
await
this
.
orderinfoSve
.
getPayOrderInfo
(
pobj
,
pobj
.
actionBody
);
...
...
@@ -49,7 +52,7 @@ class OrderAPI extends APIBase {
return
opResult
;
}
async
addOrder
(
pobj
,
actionBody
)
{
if
(
!
actionBody
.
product_info
)
{
return
system
.
getResult
(
null
,
"产品信息有误,20010"
);
...
...
center-order/app/base/service/impl/dbcorder/orderinfoSve.js
View file @
4a6191e4
...
...
@@ -354,6 +354,17 @@ class OrderInfoService extends ServiceBase {
}
return
system
.
getResultSuccess
();
}
async
getOrderDeliveryFlowInfo
(
pobj
,
actionBody
)
{
//获取订单交付流程信息
var
sql
=
"select * from c_delivery_official_flow where sourceOrderNo='"
+
pobj
.
actionBody
.
sourceOrderNo
+
"'"
;
var
list
=
await
this
.
customQuery
(
sql
);
if
(
list
&&
list
.
length
>
0
)
{
if
(
list
[
0
].
officialFlow
)
{
return
system
.
getResultSuccess
(
list
[
0
].
officialFlow
);
}
}
return
system
.
getResultSuccess
();
}
//-------------------------------服务商通知订单流程-------------start----------------
async
icOrderStatusNotify
(
pobj
,
actionBody
)
{
//峰擎通知工商办理状态
...
...
@@ -397,11 +408,11 @@ class OrderInfoService extends ServiceBase {
}
var
sql
=
null
;
if
(
addi
>
0
)
{
sql
=
"INSERT INTO `c_
order_delivery` (`sourceOrderNo`,`deliveryContent
`) VALUE('"
+
sql
=
"INSERT INTO `c_
delivery_official_flow` (`sourceOrderNo`,`officialFlow
`) VALUE('"
+
actionBody
.
orderNo
+
"','"
+
JSON
.
stringify
(
updateDeliveryInfo
)
+
"')"
;
}
else
{
sql
=
"UPDATE `c_
order_delivery` SET deliveryContent
='"
+
JSON
.
stringify
(
updateDeliveryInfo
)
+
"' where sourceOrderNo='"
+
actionBody
.
orderNo
+
"'"
;
sql
=
"UPDATE `c_
delivery_official_flow` SET officialFlow
='"
+
JSON
.
stringify
(
updateDeliveryInfo
)
+
"' where sourceOrderNo='"
+
actionBody
.
orderNo
+
"'"
;
}
this
.
customQuery
(
sql
);
return
system
.
getResultSuccess
();
...
...
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