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
b6fff4d2
Commit
b6fff4d2
authored
Dec 07, 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
2ef423b3
61e0d79d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
19 deletions
+19
-19
xggsve-order/app/base/service/impl/order/iborderbaseSve.js
+17
-5
xggsve-order/app/base/service/impl/order/iborderdkSve.js
+2
-14
No files found.
xggsve-order/app/base/service/impl/order/iborderbaseSve.js
View file @
b6fff4d2
...
...
@@ -89,12 +89,24 @@ class IborderbaseService extends ServiceBase {
}
/**
* 完善信息
* @param {*} params
*/
* 完善信息
* @param {*} params
* legalName
* legalMobile
* names
* creditCode
* isBank
* businessScope
*/
async
completedOrder
(
params
)
{
//1 检查个体户是否存在
//1 检查个体户是否存在 (根据统一社会信用代码查个体工商户是否存在)
this
.
trimObject
(
params
);
if
(
!
params
.
legalName
){
return
system
.
getResult
(
null
,
`参数错误 法人姓名不能为空`
);}
if
(
!
params
.
legalMobile
){
return
system
.
getResult
(
null
,
`参数错误 法人电话不能为空`
);}
if
(
!
params
.
creditCode
){
return
system
.
getResult
(
null
,
`参数错误 法人统一社会信用代码不能为空`
);}
if
(
!
params
.
names
){
return
system
.
getResult
(
null
,
`参数错误 个体户名称不能为空`
);}
if
(
!
params
.
businessScope
){
return
system
.
getResult
(
null
,
`参数错误 经营范围不能为空`
);}
//2 如果不存在添加保存个体户
//3 完善信息
}
...
...
xggsve-order/app/base/service/impl/order/iborderdkSve.js
View file @
b6fff4d2
...
...
@@ -31,13 +31,8 @@ class IborderdkService extends ServiceBase {
if
(
!
Number
(
params
.
price
)
<
0
)
{
return
system
.
getResult
(
null
,
`参数错误 订单金额格式错误`
);
}
for
(
let
key
in
params
)
{
if
(
params
[
key
]
instanceof
String
)
{
params
[
key
]
=
this
.
trim
(
params
[
key
]);
}
}
let
_ibOrderDk
=
null
;
_ibOrderDk
=
await
this
.
dao
.
create
(
params
,
t
);
this
.
trimObject
(
params
);
let
_ibOrderDk
=
await
this
.
dao
.
create
(
params
,
t
);
return
system
.
getResult
(
_ibOrderDk
);
}
catch
(
error
)
{
return
system
.
getResult
(
null
,
`系统错误 错误信息
${
error
}
`
);
...
...
@@ -46,9 +41,3 @@ class IborderdkService extends ServiceBase {
}
module
.
exports
=
IborderdkService
;
// var task=new UserService();
// task.getUserStatisticGroupByApp().then(function(result){
// console.log((result));
// }).catch(function(e){
// console.log(e);
// });
\ No newline at end of file
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