Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
5
51business
Project
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
方斌
51business
Commits
84dd47e4
Commit
84dd47e4
authored
Sep 11, 2019
by
Hsinli
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
addd
parent
b62db576
Pipeline
#13664
passed with stage
in 4 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
20 deletions
+18
-20
common.js
app/service/credit/common.js
+18
-20
No files found.
app/service/credit/common.js
View file @
84dd47e4
...
@@ -338,28 +338,26 @@ class CommonService extends Service {
...
@@ -338,28 +338,26 @@ class CommonService extends Service {
}
}
let
shmfList
=
await
ctx
.
prometheusModel
.
CreditShuhemofang
.
findAll
(
shmfFilter
);
let
shmfList
=
await
ctx
.
prometheusModel
.
CreditShuhemofang
.
findAll
(
shmfFilter
);
ctx
.
logger
.
info
({
shmfList
:
JSON
.
stringify
(
shmfList
)
});
ctx
.
logger
.
info
({
shmfList
:
JSON
.
stringify
(
shmfList
)
});
if
(
shmfList
!==
undefined
&&
shmfList
.
length
>
0
)
{
let
history
=
{
let
history
=
{
in
:
false
,
in
:
false
,
detail
:
{}
detail
:
{}
};
};
for
(
let
i
in
shmfList
)
{
for
(
let
i
in
shmfList
)
{
if
(
shmfList
[
i
].
name
===
inputParams
.
name
&&
shmfList
[
i
].
phone
===
inputParams
.
phone
&&
shmfList
[
i
].
id_card
===
inputParams
.
id_card
)
{
if
(
shmfList
[
i
].
name
===
inputParams
.
name
&&
shmfList
[
i
].
phone
===
inputParams
.
phone
&&
shmfList
[
i
].
id_card
===
inputParams
.
id_card
)
{
history
.
in
=
true
;
history
.
in
=
true
;
history
.
detail
=
shmfList
[
i
];
history
.
detail
=
shmfList
[
i
];
break
;
break
;
}
}
}
if
(
history
.
in
)
{
}
await
this
.
noticeShuhemofang
(
Number
(
history
.
detail
.
status
));
if
(
history
.
in
)
{
await
this
.
noticeShuhemofang
(
Number
(
history
.
detail
.
status
));
}
else
{
if
(
shmfList
.
length
>=
5
)
{
ctx
.
failed
(
'您输入的想要检测人数已超过最大限制,仅可检测输入过的检测信息'
);
}
else
{
}
else
{
if
(
shmfList
.
length
>=
5
)
{
let
resp
=
this
.
queryShuhemofang
(
type
,
inputParams
);
ctx
.
failed
(
'您输入的想要检测人数已超过最大限制,仅可检测输入过的检测信息'
);
ctx
.
logger
.
info
({
resp
:
JSON
.
stringify
(
resp
)
});
}
else
{
await
this
.
noticeShuhemofang
(
resp
.
status
);
let
resp
=
this
.
queryShuhemofang
(
type
,
inputParams
);
ctx
.
logger
.
info
({
resp
:
JSON
.
stringify
(
resp
)
});
await
this
.
noticeShuhemofang
(
resp
.
status
);
}
}
}
}
}
}
}
...
...
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