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
722c5662
Commit
722c5662
authored
Sep 05, 2019
by
Hsinli
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
addd
parent
985479c0
Pipeline
#13364
passed with stage
in 4 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
36 additions
and
6 deletions
+36
-6
blacklist.js
app/service/credit/blacklist.js
+8
-6
common.js
app/service/credit/common.js
+28
-0
No files found.
app/service/credit/blacklist.js
View file @
722c5662
...
@@ -87,15 +87,15 @@ class BlacklistService extends Service {
...
@@ -87,15 +87,15 @@ class BlacklistService extends Service {
credit_count_1month
:
8
,
//近1月放款笔数
credit_count_1month
:
8
,
//近1月放款笔数
credit_count_3month
:
8
,
//近3月放款笔数
credit_count_3month
:
8
,
//近3月放款笔数
credit_count_6month
:
8
,
//近6月放款笔数
credit_count_6month
:
8
,
//近6月放款笔数
credit_amount_1month
:
8
,
//近1月放款金额
credit_amount_1month
:
'(2000-30000]'
,
//近1月放款金额
credit_amount_3month
:
8
,
//近3月放款金额
credit_amount_3month
:
'(2000-30000]'
,
//近3月放款金额
credit_amount_6month
:
8
,
//近6月放款金额
credit_amount_6month
:
'(2000-30000]'
,
//近6月放款金额
credit_closed_count_1month
:
8
,
//近1月已结清放款笔数
credit_closed_count_1month
:
8
,
//近1月已结清放款笔数
credit_closed_count_3month
:
8
,
//近3月已结清放款笔数
credit_closed_count_3month
:
8
,
//近3月已结清放款笔数
credit_closed_count_6month
:
8
,
//近6月已结清放款笔数
credit_closed_count_6month
:
8
,
//近6月已结清放款笔数
credit_closed_amount_1month
:
8
,
//近1月已结清放款金额
credit_closed_amount_1month
:
'(2000-30000]'
,
//近1月已结清放款金额
credit_closed_amount_3month
:
8
,
//近3月已结清放款金额
credit_closed_amount_3month
:
'(2000-30000]'
,
//近3月已结清放款金额
credit_closed_amount_6month
:
8
,
//近6月已结清放款金额
credit_closed_amount_6month
:
'(2000-30000]'
,
//近6月已结清放款金额
consume_credit_count_1month
:
8
,
//近1月消金机构放款笔数
consume_credit_count_1month
:
8
,
//近1月消金机构放款笔数
consume_credit_count_3month
:
8
,
//近3月消金机构放款笔数
consume_credit_count_3month
:
8
,
//近3月消金机构放款笔数
consume_credit_count_6month
:
8
,
//近6月消金机构放款笔数
consume_credit_count_6month
:
8
,
//近6月消金机构放款笔数
...
@@ -235,6 +235,8 @@ class BlacklistService extends Service {
...
@@ -235,6 +235,8 @@ class BlacklistService extends Service {
}
}
ret
.
six_months
.
mobilephone_relecvant
.
msg
=
DeviceConfig
[
deviceLevel
].
replace
(
/XX/
,
deviceMax
.
type
);
ret
.
six_months
.
mobilephone_relecvant
.
msg
=
DeviceConfig
[
deviceLevel
].
replace
(
/XX/
,
deviceMax
.
type
);
ret
.
basic
.
report_no
=
await
ctx
.
service
.
credit
.
common
.
getReportNo
(
'00'
,
12344
);
return
ret
;
return
ret
;
}
}
...
...
app/service/credit/common.js
0 → 100644
View file @
722c5662
'use strict'
;
const
Service
=
require
(
'egg'
).
Service
;
const
moment
=
require
(
'moment'
);
const
_
=
require
(
'lodash'
);
class
CommonService
extends
Service
{
/**
*
* @param {*} type 黑名单00通话01
* @param {*} id 报告自增编号
*/
async
getReportNo
(
type
,
id
)
{
let
prefix
=
'51GJJ'
+
moment
().
format
(
'YYYYMMDD'
)
+
type
;
let
suffix
=
String
(
Number
(
id
)
+
12580
);
if
(
suffix
.
length
>
5
)
{
let
subStart
=
suffix
.
length
-
5
;
suffix
=
suffix
.
substring
(
subStart
,
suffix
.
length
+
1
);
}
return
prefix
+
suffix
;
}
}
module
.
exports
=
CommonService
;
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