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
76311ee5
Commit
76311ee5
authored
Dec 10, 2019
by
孙亚楠
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dd
parent
b0670b54
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
31 additions
and
6 deletions
+31
-6
xggsve-order/app/base/service/impl/order/iborderbaseSve.js
+29
-0
xggsve-order/app/base/service/impl/order/iborderdkSve.js
+1
-5
xggsve-order/app/front/entry/public/apidoc/order/orderbase.md
+1
-1
No files found.
xggsve-order/app/base/service/impl/order/iborderbaseSve.js
View file @
76311ee5
...
@@ -111,12 +111,41 @@ class IborderbaseService extends ServiceBase {
...
@@ -111,12 +111,41 @@ class IborderbaseService extends ServiceBase {
*/
*/
async
apiHandling
(
params
)
{
async
apiHandling
(
params
)
{
try
{
try
{
let
_baseOrder
=
this
.
dao
.
findById
({
id
:
this
.
trim
(
params
.
id
),
productType
:
this
.
trim
(
params
.
productType
)});
//1 检查个体户是否签约
let
_businessmen
=
await
this
.
businessmenDao
.
findById
(
this
.
trim
(
params
.
businessmenId
));
if
(
!
_businessmen
.
signTime
)
{
return
system
.
getResult
(
null
,
`个体户未签约`
);
}
if
(
!
_baseOrder
){
return
system
.
getResult
(
null
,
`参数错误 订单不存在`
);
}
if
(
this
.
trim
(
params
.
productType
)
==
"1010"
||
this
.
trim
(
params
.
productType
)
==
"1030"
){
if
(
baseorder
.
isInfoComplete
!=
1
||
baseorder
.
isInfoComplete
!=
true
){
return
system
.
getResult
(
null
,
`请先完善信息`
);
}
if
(
baseorder
.
isInfoComplete
!=
1
||
baseorder
.
isInfoComplete
!=
true
){
return
system
.
getResult
(
null
,
`请先完善信息`
);
}
}
let
childSve
=
this
.
getService
(
params
.
productType
);
let
childSve
=
this
.
getService
(
params
.
productType
);
return
await
childSve
.
handling
(
params
);
return
await
childSve
.
handling
(
params
);
}
catch
(
error
)
{
}
catch
(
error
)
{
return
system
.
getResult
(
null
,
`系统错误 错误信息
${
error
}
`
);
return
system
.
getResult
(
null
,
`系统错误 错误信息
${
error
}
`
);
}
}
}
}
/**
*
* @param {*} params
*/
async
verifySignOrComplete
(
baseorder
){
if
(
baseorder
.
isInfoComplete
!=
1
||
baseorder
.
isInfoComplete
!=
true
){
return
system
.
getResult
(
null
,
`请先完善信息`
);
}
}
/**
/**
* 订单列表
* 订单列表
* @param {*} params
* @param {*} params
...
...
xggsve-order/app/base/service/impl/order/iborderdkSve.js
View file @
76311ee5
...
@@ -151,11 +151,7 @@ class IborderdkService extends ServiceBase {
...
@@ -151,11 +151,7 @@ class IborderdkService extends ServiceBase {
*/
*/
async
handling
(
params
)
{
async
handling
(
params
)
{
try
{
try
{
//1 检查个体户是否签约
let
_businessmen
=
await
this
.
businessmenDao
.
findById
(
this
.
trim
(
params
.
businessmenId
));
if
(
!
_businessmen
.
signTime
)
{
return
system
.
getResult
(
null
,
`个体户未签约`
);
}
//2 检查是否支付
//2 检查是否支付
let
_iborderbase
=
await
this
.
iborderbaseDao
.
findById
(
this
.
trim
(
params
.
id
));
let
_iborderbase
=
await
this
.
iborderbaseDao
.
findById
(
this
.
trim
(
params
.
id
));
if
(
!
_iborderbase
.
payStatus
!=
"20"
)
{
if
(
!
_iborderbase
.
payStatus
!=
"20"
)
{
...
...
xggsve-order/app/front/entry/public/apidoc/order/orderbase.md
View file @
76311ee5
...
@@ -77,7 +77,7 @@
...
@@ -77,7 +77,7 @@
```
```
## **<a name="
completedOrder"> 完善信息接口
</a>**
## **<a name="
orders"> 订单列表
</a>**
[
返回到目录
](
#menu
)
[
返回到目录
](
#menu
)
#### 参数格式 `JSON`
#### 参数格式 `JSON`
#### HTTP请求方式 `POST`
#### HTTP请求方式 `POST`
...
...
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