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
44d903f0
Commit
44d903f0
authored
Dec 09, 2019
by
孙亚楠
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'xggsve-order-dev' of gitlab.gongsibao.com:jiangyong/zhichan into xggsve-order-dev
parents
d096e720
60616107
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
3 deletions
+9
-3
xggsve-order/app/base/api/impl/op/action.js
+1
-0
xggsve-order/app/base/service/impl/order/iborderbaseSve.js
+6
-1
xggsve-order/app/base/service/sve.base.js
+2
-2
No files found.
xggsve-order/app/base/api/impl/op/action.js
View file @
44d903f0
...
@@ -46,6 +46,7 @@ class ActionAPI extends APIBase {
...
@@ -46,6 +46,7 @@ class ActionAPI extends APIBase {
case
"completedOrder"
:
//完善信息接口
case
"completedOrder"
:
//完善信息接口
opResult
=
await
this
.
iborderbaseSve
.
apiCompletedOrder
(
action_body
);
opResult
=
await
this
.
iborderbaseSve
.
apiCompletedOrder
(
action_body
);
break
;
break
;
case
"handling"
:
//订单办理接口
case
"handling"
:
//订单办理接口
opResult
=
await
this
.
iborderbaseSve
.
apiHandling
(
action_body
);
opResult
=
await
this
.
iborderbaseSve
.
apiHandling
(
action_body
);
break
;
break
;
...
...
xggsve-order/app/base/service/impl/order/iborderbaseSve.js
View file @
44d903f0
...
@@ -41,6 +41,11 @@ class IborderbaseService extends ServiceBase {
...
@@ -41,6 +41,11 @@ class IborderbaseService extends ServiceBase {
}
}
try
{
try
{
let
exists
=
await
this
.
service
.
findOne
({
thirdNo
:
params
.
thirdNo
});
if
(
exists
)
{
return
system
.
getResult
(
null
,
`订单号【
${
params
.
thirdNo
}
】已存在`
);
}
let
channel
=
await
this
.
channelSve
.
findOne
({
channelNo
:
params
.
channelNo
});
let
channel
=
await
this
.
channelSve
.
findOne
({
channelNo
:
params
.
channelNo
});
if
(
!
channel
)
{
if
(
!
channel
)
{
return
system
.
getResult
(
null
,
`渠道
${
params
.
channelNo
}
不存在`
);
return
system
.
getResult
(
null
,
`渠道
${
params
.
channelNo
}
不存在`
);
...
@@ -76,7 +81,7 @@ class IborderbaseService extends ServiceBase {
...
@@ -76,7 +81,7 @@ class IborderbaseService extends ServiceBase {
payType
:
params
.
payType
,
payType
:
params
.
payType
,
payStatus
:
"10"
,
payStatus
:
"10"
,
};
};
payment
=
await
this
.
paymentSve
.
create
(
payment
);
payment
=
await
this
.
paymentSve
.
create
(
payment
,
t
);
params
.
orderpay_id
=
payment
.
id
;
params
.
orderpay_id
=
payment
.
id
;
}
}
// 将id赋值
// 将id赋值
...
...
xggsve-order/app/base/service/sve.base.js
View file @
44d903f0
...
@@ -153,8 +153,8 @@ class ServiceBase {
...
@@ -153,8 +153,8 @@ class ServiceBase {
async
delete
(
qobj
)
{
async
delete
(
qobj
)
{
return
this
.
dao
.
delete
(
qobj
);
return
this
.
dao
.
delete
(
qobj
);
}
}
async
create
(
qobj
)
{
async
create
(
qobj
,
t
)
{
return
this
.
dao
.
create
(
qobj
);
return
this
.
dao
.
create
(
qobj
,
t
);
}
}
async
update
(
qobj
,
tm
=
null
)
{
async
update
(
qobj
,
tm
=
null
)
{
return
this
.
dao
.
update
(
qobj
,
tm
);
return
this
.
dao
.
update
(
qobj
,
tm
);
...
...
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