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
49afda2a
Commit
49afda2a
authored
Sep 27, 2019
by
李尚科
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://t-git.51gjj.com/fangbin/51business
parents
19b8c3f9
585780c4
Pipeline
#14353
passed with stage
in 32 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
8 deletions
+6
-8
blacklist.js
app/service/credit/blacklist.js
+6
-8
No files found.
app/service/credit/blacklist.js
View file @
49afda2a
...
@@ -97,15 +97,15 @@ class BlacklistService extends Service {
...
@@ -97,15 +97,15 @@ class BlacklistService extends Service {
credit_count_1month
:
reportData
.
credit_count_1month
,
//近1月放款笔数
credit_count_1month
:
reportData
.
credit_count_1month
,
//近1月放款笔数
credit_count_3month
:
reportData
.
credit_count_3month
,
//近3月放款笔数
credit_count_3month
:
reportData
.
credit_count_3month
,
//近3月放款笔数
credit_count_6month
:
reportData
.
credit_count_6month
,
//近6月放款笔数
credit_count_6month
:
reportData
.
credit_count_6month
,
//近6月放款笔数
credit_amount_1month
:
this
.
dealSection
(
reportData
.
credit_amount_1month
),
//近1月放款金额
credit_amount_1month
:
await
this
.
dealSection
(
reportData
.
credit_amount_1month
),
//近1月放款金额
credit_amount_3month
:
this
.
dealSection
(
reportData
.
credit_amount_3month
),
//近3月放款金额
credit_amount_3month
:
await
this
.
dealSection
(
reportData
.
credit_amount_3month
),
//近3月放款金额
credit_amount_6month
:
this
.
dealSection
(
reportData
.
credit_amount_6month
),
//近6月放款金额
credit_amount_6month
:
await
this
.
dealSection
(
reportData
.
credit_amount_6month
),
//近6月放款金额
credit_closed_count_1month
:
reportData
.
credit_closed_count_1month
,
//近1月已结清放款笔数
credit_closed_count_1month
:
reportData
.
credit_closed_count_1month
,
//近1月已结清放款笔数
credit_closed_count_3month
:
reportData
.
credit_closed_count_3month
,
//近3月已结清放款笔数
credit_closed_count_3month
:
reportData
.
credit_closed_count_3month
,
//近3月已结清放款笔数
credit_closed_count_6month
:
reportData
.
credit_closed_count_6month
,
//近6月已结清放款笔数
credit_closed_count_6month
:
reportData
.
credit_closed_count_6month
,
//近6月已结清放款笔数
credit_closed_amount_1month
:
this
.
dealSection
(
reportData
.
credit_closed_amount_1month
),
//近1月已结清放款金额
credit_closed_amount_1month
:
await
this
.
dealSection
(
reportData
.
credit_closed_amount_1month
),
//近1月已结清放款金额
credit_closed_amount_3month
:
this
.
dealSection
(
reportData
.
credit_closed_amount_3month
),
//近3月已结清放款金额
credit_closed_amount_3month
:
await
this
.
dealSection
(
reportData
.
credit_closed_amount_3month
),
//近3月已结清放款金额
credit_closed_amount_6month
:
this
.
dealSection
(
reportData
.
credit_closed_amount_6month
),
//近6月已结清放款金额
credit_closed_amount_6month
:
await
this
.
dealSection
(
reportData
.
credit_closed_amount_6month
),
//近6月已结清放款金额
consume_credit_count_1month
:
reportData
.
consume_credit_count_1month
,
//近1月消金机构放款笔数
consume_credit_count_1month
:
reportData
.
consume_credit_count_1month
,
//近1月消金机构放款笔数
consume_credit_count_3month
:
reportData
.
consume_credit_count_3month
,
//近3月消金机构放款笔数
consume_credit_count_3month
:
reportData
.
consume_credit_count_3month
,
//近3月消金机构放款笔数
consume_credit_count_6month
:
reportData
.
consume_credit_count_6month
,
//近6月消金机构放款笔数
consume_credit_count_6month
:
reportData
.
consume_credit_count_6month
,
//近6月消金机构放款笔数
...
@@ -288,7 +288,6 @@ class BlacklistService extends Service {
...
@@ -288,7 +288,6 @@ class BlacklistService extends Service {
* @param {*} section
* @param {*} section
*/
*/
async
dealSection
(
section
)
{
async
dealSection
(
section
)
{
const
{
ctx
}
=
this
;
let
firstLetter
=
section
.
substring
(
0
,
1
);
let
firstLetter
=
section
.
substring
(
0
,
1
);
if
(
!
[
'('
,
'['
].
includes
(
firstLetter
))
{
if
(
!
[
'('
,
'['
].
includes
(
firstLetter
))
{
return
section
;
return
section
;
...
@@ -301,7 +300,6 @@ class BlacklistService extends Service {
...
@@ -301,7 +300,6 @@ class BlacklistService extends Service {
}
else
{
}
else
{
amount
=
Number
(
arr
[
0
])
+
'-'
+
Number
(
arr
[
1
]);
amount
=
Number
(
arr
[
0
])
+
'-'
+
Number
(
arr
[
1
]);
}
}
ctx
.
logger
.
info
(
'amount:'
+
amount
);
return
amount
;
return
amount
;
}
}
...
...
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