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
6e28c3ad
Commit
6e28c3ad
authored
Jul 20, 2022
by
谢永靖
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#18163 贷款列表新增是否展示配置
parent
9ddb7e90
Pipeline
#38503
passed with stage
in 9 seconds
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
0 deletions
+8
-0
product.js
app/controller/gjj/product.js
+2
-0
product.js
app/service/gjj/product.js
+6
-0
No files found.
app/controller/gjj/product.js
View file @
6e28c3ad
...
...
@@ -23,7 +23,9 @@ class ProductController extends Controller {
results
.
unshift
(
suit_options
);
}
credit_loans
=
await
ctx
.
service
.
gjj
.
product
.
getAllProductsByType
(
1
);
credit_loans
=
ctx
.
service
.
gjj
.
product
.
getLoanList
(
credit_loans
);
common_loans
=
await
ctx
.
service
.
gjj
.
product
.
getAllProductsByType
(
4
);
common_loans
=
ctx
.
service
.
gjj
.
product
.
getLoanList
(
common_loans
);
}
else
{
credit_cards
=
await
ctx
.
service
.
gjj
.
product
.
getAllProductsByType
(
2
);
common_credits
=
await
ctx
.
service
.
gjj
.
product
.
getAllProductsByType
(
3
);
...
...
app/service/gjj/product.js
View file @
6e28c3ad
...
...
@@ -806,6 +806,7 @@ class ProductService extends Service {
front_image
:
v
.
front_image
,
back_image
:
v
.
back_image
,
percent
:
v
.
percent
?
v
.
percent
:
'0'
,
appid_type
:
v
.
appid_type
,
};
if
(
!
ctx
.
isEmpty
(
v
.
partner_alias
))
{
tmp
.
partner
=
v
.
partner_alias
;
...
...
@@ -837,6 +838,7 @@ class ProductService extends Service {
front_image
:
v
.
front_image
,
back_image
:
v
.
back_image
,
percent
:
v
.
percent
?
v
.
percent
:
'0'
,
appid_type
:
v
.
appid_type
,
};
if
(
!
ctx
.
isEmpty
(
v
.
partner_alias
))
{
tmp
.
partner
=
v
.
partner_alias
;
...
...
@@ -848,6 +850,10 @@ class ProductService extends Service {
return
ret
;
}
getLoanList
(
data
)
{
return
data
.
filter
(
item
=>
{
return
(
item
.
appid_type
!==
'3'
);
});
}
}
module
.
exports
=
ProductService
;
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