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
e529c7f3
Commit
e529c7f3
authored
Nov 09, 2020
by
linboxuan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lin pannong
parent
a6ab7c72
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
7 deletions
+13
-7
center-channel/app/base/api/impl/opreceive/service.js
+10
-4
center-channel/app/base/service/impl/common/signSve.js
+3
-3
No files found.
center-channel/app/base/api/impl/opreceive/service.js
View file @
e529c7f3
...
@@ -12,6 +12,12 @@ class edi extends APIBase {
...
@@ -12,6 +12,12 @@ class edi extends APIBase {
async
create
(
pobj
,
query
,
req
)
{
async
create
(
pobj
,
query
,
req
)
{
console
.
log
(
pobj
);
console
.
log
(
pobj
);
this
.
logCtl
.
info
({
op
:
"service/impl/utilsSve/service.js/create"
,
content
:
"参数="
+
JSON
.
stringify
(
pobj
),
clientIp
:
req
.
client_ip
||
""
,
optitle
:
"服务单创建接口 controller层"
});
// 校验必填 pannong 2.1
// 校验必填 pannong 2.1
var
checkResult
=
await
this
.
serviceCreateCheck
(
pobj
,
req
.
headers
);
var
checkResult
=
await
this
.
serviceCreateCheck
(
pobj
,
req
.
headers
);
if
(
checkResult
.
status
!=
0
)
{
if
(
checkResult
.
status
!=
0
)
{
...
@@ -59,16 +65,16 @@ class edi extends APIBase {
...
@@ -59,16 +65,16 @@ class edi extends APIBase {
return
system
.
getResult
(
null
,
"contactName cannot be empty"
);
return
system
.
getResult
(
null
,
"contactName cannot be empty"
);
}
}
if
(
!
pobj
.
contactMobile
)
{
if
(
!
pobj
.
contactMobile
)
{
return
system
.
getResult
(
null
,
"contact
Nam
e cannot be empty"
);
return
system
.
getResult
(
null
,
"contact
Mobil
e cannot be empty"
);
}
}
if
(
!
pobj
.
timeUnit
)
{
if
(
!
pobj
.
timeUnit
)
{
return
system
.
getResult
(
null
,
"
contactName
cannot be empty"
);
return
system
.
getResult
(
null
,
"
timeUnit
cannot be empty"
);
}
}
if
(
!
pobj
.
quantity
)
{
if
(
!
pobj
.
quantity
)
{
return
system
.
getResult
(
null
,
"
contactName
cannot be empty"
);
return
system
.
getResult
(
null
,
"
quantity
cannot be empty"
);
}
}
if
(
!
pobj
.
companyInfo
)
{
if
(
!
pobj
.
companyInfo
)
{
return
system
.
getResult
(
null
,
"co
ntactName
cannot be empty"
);
return
system
.
getResult
(
null
,
"co
mpanyInfo
cannot be empty"
);
}
}
if
(
!
pobj
.
companyInfo
.
companyName
)
{
if
(
!
pobj
.
companyInfo
.
companyName
)
{
return
system
.
getResult
(
null
,
"companyName cannot be empty"
);
return
system
.
getResult
(
null
,
"companyName cannot be empty"
);
...
...
center-channel/app/base/service/impl/common/signSve.js
View file @
e529c7f3
...
@@ -137,9 +137,9 @@ module.exports = SignService;
...
@@ -137,9 +137,9 @@ module.exports = SignService;
// "status":"16"
// "status":"16"
// }
// }
// var obj = {
// var obj = {
// "bizId":"
202011071358
",
// "bizId":"
OD2020110972779131
",
//
"contactName":"lin
",
//
"contactMobile":"18516081903
",
//
"contactMobile":"13911391996
",
//
"contactName":"符小龙
",
// "timeUnit":"year",
// "timeUnit":"year",
// "quantity":1,
// "quantity":1,
// "companyInfo":{
// "companyInfo":{
...
...
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