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
8e4d57db
Commit
8e4d57db
authored
Dec 10, 2019
by
孙亚楠
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dd
parent
f70ed4b3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
20 deletions
+23
-20
xggsve-order/app/base/service/impl/order/iborderbaseSve.js
+3
-19
xggsve-order/app/base/service/impl/order/iborderdkSve.js
+8
-1
xggsve-order/app/base/service/impl/order/iborderdzSve.js
+12
-0
No files found.
xggsve-order/app/base/service/impl/order/iborderbaseSve.js
View file @
8e4d57db
...
...
@@ -18,6 +18,7 @@ class IborderbaseService extends ServiceBase {
"1030"
:
this
.
iborderdzSve
,
// 代账订单
"1040"
:
this
.
iborderSve
,
// 增值服务
}
this
.
verifyProductType
=
[
"1010"
,
"1030"
];
}
...
...
@@ -112,15 +113,10 @@ class IborderbaseService extends ServiceBase {
async
apiHandling
(
params
)
{
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
(
this
.
verifyProductType
.
includes
(
this
.
trim
(
params
.
productType
))
){
if
(
baseorder
.
isInfoComplete
!=
1
||
baseorder
.
isInfoComplete
!=
true
){
return
system
.
getResult
(
null
,
`请先完善信息`
);
}
...
...
@@ -136,17 +132,6 @@ class IborderbaseService extends ServiceBase {
}
/**
*
* @param {*} params
*/
async
verifySignOrComplete
(
baseorder
){
if
(
baseorder
.
isInfoComplete
!=
1
||
baseorder
.
isInfoComplete
!=
true
){
return
system
.
getResult
(
null
,
`请先完善信息`
);
}
}
/**
* 订单列表
* @param {*} params
* @param {*} params.productType //产品类型
...
...
@@ -162,8 +147,7 @@ class IborderbaseService extends ServiceBase {
if
(
item
.
baseInfo
&&
item
.
baseInfo
.
productType
!=
"1000"
){
this
.
changeStatus
(
item
.
baseInfo
,
item
);
this
.
changePayStatus
(
item
.
baseInfo
,
item
);
}
}
}
return
page
;
}
catch
(
error
)
{
...
...
xggsve-order/app/base/service/impl/order/iborderdkSve.js
View file @
8e4d57db
...
...
@@ -151,12 +151,19 @@ class IborderdkService extends ServiceBase {
*/
async
handling
(
params
)
{
try
{
//1 检查个体户是否签约
let
_businessmen
=
await
this
.
businessmenDao
.
findById
(
this
.
trim
(
params
.
businessmenId
));
if
(
!
_businessmen
.
signTime
)
{
return
system
.
getResult
(
null
,
`个体户未签约`
);
}
//2 检查是否支付
let
_iborderbase
=
await
this
.
iborderbaseDao
.
findById
(
this
.
trim
(
params
.
id
));
if
(
!
_iborderbase
.
payStatus
!=
"20"
)
{
return
system
.
getResult
(
null
,
`订单未支付`
);
}
if
(
!
_iborderbase
.
isInfoComplete
!=
1
)
{
return
system
.
getResult
(
null
,
`请完善信息再注册`
);
}
//3 判断是按照年付费还是按照月付费
let
valueAddedTax
=
0
;
let
additionalTax
=
0
;
...
...
xggsve-order/app/base/service/impl/order/iborderdzSve.js
View file @
8e4d57db
...
...
@@ -141,8 +141,20 @@ class IborderdzService extends ServiceBase {
*/
async
handing
(
params
)
{
try
{
//1 检查个体户是否签约
let
_businessmen
=
await
this
.
businessmenDao
.
findById
(
this
.
trim
(
params
.
businessmenId
));
if
(
!
_businessmen
.
signTime
)
{
return
system
.
getResult
(
null
,
`个体户未签约`
);
}
let
id
=
Number
(
params
.
id
);
let
baseOrder
=
this
.
iborderbaseDao
.
findById
(
id
);
//2 检查是否支付
if
(
!
baseOrder
.
payStatus
!=
"20"
)
{
return
system
.
getResult
(
null
,
`订单未支付`
);
}
if
(
!
baseOrder
.
isInfoComplete
!=
1
)
{
return
system
.
getResult
(
null
,
`请完善信息再注册`
);
}
let
order
=
this
.
dao
.
findById
(
id
);
baseOrder
.
status
=
"1020"
;
...
...
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