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
d79b8cd5
Commit
d79b8cd5
authored
Apr 21, 2020
by
孙亚楠
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dd
parent
db8343e7
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
27 additions
and
1 deletions
+27
-1
xgg-admin/app/base/api/impl/test/testApi.js
+12
-0
xgg-admin/app/base/service/impl/order/orderSve.js
+14
-0
xgg-admin/app/base/system.js
+1
-1
No files found.
xgg-admin/app/base/api/impl/test/testApi.js
View file @
d79b8cd5
...
...
@@ -36,6 +36,18 @@ class TestAPI extends APIBase {
return
"success"
;
}
/**
* 重置订单处理流程
* @param pobj
* @param query
* @param req
* @returns {Promise<void>}
*/
async
resetOrderProcess
(
pobj
,
query
,
req
){
await
this
.
orderSve
.
resetOrderProcess
(
pobj
);
return
system
.
getResultSuccess
();
}
async
testInvoice
()
{
let
params
=
{
uploadPeriod
:
"201910"
,
...
...
xgg-admin/app/base/service/impl/order/orderSve.js
View file @
d79b8cd5
...
...
@@ -288,5 +288,18 @@ class OrderService extends ServiceBase {
return
system
.
getResult
(
null
,
`系统错误`
);
}
}
// 重置订单处理流程
async
resetOrderProcess
(
params
)
{
if
(
!
params
.
id
)
{
return
system
.
getResult
(
null
,
`参数错误 ID不能为空`
);
}
try
{
return
await
this
.
callms
(
"order"
,
"resetOrderProcess"
,
params
);
}
catch
(
error
)
{
console
.
log
(
error
);
return
system
.
getResult
(
null
,
`系统错误 错误信息
${
error
}
`
);
}
}
}
module
.
exports
=
OrderService
;
\ No newline at end of file
xgg-admin/app/base/system.js
View file @
d79b8cd5
...
...
@@ -182,7 +182,7 @@ class System {
// merchant: "http://127.0.0.1:3101" + path,
// 订单服务
order
:
domain
+
":3103"
+
path
,
order
:
domain
2
+
":3103"
+
path
,
// order: domain + ":3103" + path,
// 发票服务
...
...
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