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
66ffbad1
Commit
66ffbad1
authored
Mar 25, 2021
by
宋毅
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tj
parent
826dca43
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
32 additions
and
1 deletions
+32
-1
center-order/app/base/api/impl/action/order.js
+1
-1
center-order/app/base/db/impl/dbcorder/orderinfoDao.js
+31
-0
center-order/app/base/service/impl/dbcorder/orderinfoSve.js
+0
-0
No files found.
center-order/app/base/api/impl/action/order.js
View file @
66ffbad1
...
...
@@ -29,7 +29,7 @@ class OrderAPI extends APIBase {
var
opResult
=
null
;
switch
(
action_type
)
{
case
"getOrderInfoByChannelOrderNo"
:
//通过渠道订单号获取订单信息
opResult
=
await
this
.
orderinfoSve
.
getOrderInfoByChannelOrderNo
(
pobj
.
actionBody
.
channelOrderNo
);
opResult
=
await
this
.
orderinfoSve
.
getOrderInfoByChannelOrderNo
(
pobj
.
actionBody
.
channelOrderNo
,
pobj
.
appInfo
.
uapp_id
);
break
;
case
"updateOrderPushStatus"
:
//更新订单推送状态
opResult
=
await
this
.
orderinfoSve
.
updateOrderPushStatus
(
pobj
.
actionBody
);
...
...
center-order/app/base/db/impl/dbcorder/orderinfoDao.js
View file @
66ffbad1
...
...
@@ -36,6 +36,37 @@ class OrderInfoDao extends Dao {
}
return
await
this
.
model
.
findOne
(
sqlWhere
);
}
async
getItemStatusByChannelOrderNo
(
orderNo
,
uapp_id
)
{
var
sqlWhere
=
{
where
:
{
orderNo
:
orderNo
},
attributes
:
[
"id"
,
"uapp_id"
,
"orderNo"
,
"channelServiceNo"
,
"channelOrderNo"
,
"orderServiceNo"
,
"channelUserId"
,
"ownerUserId"
,
"payTime"
,
"quantity"
,
"serviceQuantity"
,
"orderStatusName"
,
"orderStatus"
,
"totalSum"
,
"payTotalSum"
,
"refundSum"
,
"invoiceApplyStatus"
,
"created_at"
],
raw
:
true
};
if
(
uapp_id
)
{
sqlWhere
.
where
.
uapp_id
=
uapp_id
;
}
return
await
this
.
model
.
findOne
(
sqlWhere
);
}
async
delOrderByOrderNo
(
orderNo
,
uapp_id
,
channelUserId
)
{
var
sqlWhere
=
{
orderNo
:
orderNo
,
...
...
center-order/app/base/service/impl/dbcorder/orderinfoSve.js
View file @
66ffbad1
This diff is collapsed.
Click to expand it.
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