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
92b558ff
Commit
92b558ff
authored
Dec 10, 2019
by
宋毅
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tj
parent
d896cc06
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
igirl-channel/app/base/api/impl/action/tmOrder.js
+2
-2
igirl-channel/app/base/service/impl/dborder/orderSve.js
+4
-3
No files found.
igirl-channel/app/base/api/impl/action/tmOrder.js
View file @
92b558ff
...
@@ -60,10 +60,10 @@ class TmOrderAPI extends APIBase {
...
@@ -60,10 +60,10 @@ class TmOrderAPI extends APIBase {
switch
(
action_type
)
{
switch
(
action_type
)
{
// sy
// sy
case
"updateOrderStatus"
:
//更新订单状态
case
"updateOrderStatus"
:
//更新订单状态
opResult
=
await
this
.
orderSve
.
updateOrderStatus
(
action_body
,
req
);
opResult
=
await
this
.
orderSve
.
updateOrderStatus
(
action_body
,
pobj
,
req
);
break
;
break
;
case
"updateOrderPayStatus"
:
//更新订单付款状态
case
"updateOrderPayStatus"
:
//更新订单付款状态
opResult
=
await
this
.
orderSve
.
updateOrder
Status
(
action_body
,
req
);
opResult
=
await
this
.
orderSve
.
updateOrder
PayStatus
(
action_body
,
pobj
,
req
);
break
;
break
;
case
"addOrderAndDelivery"
:
//创建订单和交付单
case
"addOrderAndDelivery"
:
//创建订单和交付单
opResult
=
await
this
.
orderSve
.
addOrderAndDelivery
(
action_body
,
pobj
,
req
);
opResult
=
await
this
.
orderSve
.
addOrderAndDelivery
(
action_body
,
pobj
,
req
);
...
...
igirl-channel/app/base/service/impl/dborder/orderSve.js
View file @
92b558ff
...
@@ -118,8 +118,9 @@ class OrderService extends ServiceBase {
...
@@ -118,8 +118,9 @@ class OrderService extends ServiceBase {
async
updateOrderStatus
(
action_body
,
pobj
,
req
)
{
async
updateOrderStatus
(
action_body
,
pobj
,
req
)
{
var
setObj
=
{};
var
setObj
=
{};
if
(
pobj
.
actionProcess
==
"jd"
)
{
if
(
pobj
.
actionProcess
==
"jd"
)
{
setObj
.
needNo
=
pobj
.
needNo
;
setObj
.
channelServiceNo
=
action_body
.
channelServiceNo
;
setObj
.
needNoOrderNo
=
pobj
.
needNoOrderNo
;
setObj
.
needNo
=
action_body
.
needNo
;
setObj
.
needNoOrderNo
=
action_body
.
needNoOrderNo
;
}
}
await
this
.
dao
.
updateByWhere
(
setObj
,
{
where
:
{
orderNo
:
action_body
.
orderNo
}
});
await
this
.
dao
.
updateByWhere
(
setObj
,
{
where
:
{
orderNo
:
action_body
.
orderNo
}
});
return
system
.
getResultSuccess
();
return
system
.
getResultSuccess
();
...
@@ -128,7 +129,7 @@ class OrderService extends ServiceBase {
...
@@ -128,7 +129,7 @@ class OrderService extends ServiceBase {
async
updateOrderPayStatus
(
action_body
,
pobj
,
req
)
{
async
updateOrderPayStatus
(
action_body
,
pobj
,
req
)
{
var
payStatus
=
action_body
.
payStatus
||
"dfk"
;
var
payStatus
=
action_body
.
payStatus
||
"dfk"
;
return
await
self
.
db
.
transaction
(
async
function
(
t
)
{
return
await
self
.
db
.
transaction
(
async
function
(
t
)
{
await
this
.
dao
.
updateByWhere
({
orderPayStatus
:
payStatus
,
buyerMoblie
:
action_body
.
buyerMoblie
},
{
where
:
{
needNoOrderNo
:
action_body
.
needNoOrderNo
,
app_id
:
req
.
app
.
id
}
},
t
);
await
this
.
dao
.
updateByWhere
({
orderPayStatus
:
payStatus
,
buyerMoblie
:
action_body
.
buyerMoblie
||
""
},
{
where
:
{
needNoOrderNo
:
action_body
.
needNoOrderNo
,
app_id
:
req
.
app
.
id
}
},
t
);
await
this
.
ordertmproductDao
.
updateByWhere
({
payStatus
:
payStatus
},
{
where
:
{
needNoOrderNo
:
action_body
.
needNoOrderNo
,
app_id
:
req
.
app
.
id
}
},
t
);
await
this
.
ordertmproductDao
.
updateByWhere
({
payStatus
:
payStatus
},
{
where
:
{
needNoOrderNo
:
action_body
.
needNoOrderNo
,
app_id
:
req
.
app
.
id
}
},
t
);
return
system
.
getResultSuccess
();
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