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
c65cc562
Commit
c65cc562
authored
Jul 11, 2019
by
李尚科
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://t-git.51gjj.com/fangbin/51business
parents
b397f051
0ccaaa4e
Pipeline
#10625
passed with stage
in 47 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
product.js
app/service/gjj/product.js
+4
-0
No files found.
app/service/gjj/product.js
View file @
c65cc562
...
@@ -224,6 +224,7 @@ class ProductService extends Service {
...
@@ -224,6 +224,7 @@ class ProductService extends Service {
if
(
ctx
.
isEmpty
(
userId
))
{
if
(
ctx
.
isEmpty
(
userId
))
{
const
commonLoanList
=
await
this
.
getCommonBusinessList
();
const
commonLoanList
=
await
this
.
getCommonBusinessList
();
ret
=
this
.
formatLoanList
(
R
.
take
(
limit
)(
R
.
sort
(
recommendSort
)(
commonLoanList
)));
ret
=
this
.
formatLoanList
(
R
.
take
(
limit
)(
R
.
sort
(
recommendSort
)(
commonLoanList
)));
console
.
log
(
'未登录'
);
}
else
{
}
else
{
// 日志
// 日志
const
log
=
{
const
log
=
{
...
@@ -304,6 +305,7 @@ class ProductService extends Service {
...
@@ -304,6 +305,7 @@ class ProductService extends Service {
})(
classB
);
})(
classB
);
result
=
R
.
insertAll
(
result
.
length
,
classB
)(
result
);
result
=
R
.
insertAll
(
result
.
length
,
classB
)(
result
);
}
}
// 如果数量不够,再取C
// 如果数量不够,再取C
if
(
result
.
length
<
limit
)
{
if
(
result
.
length
<
limit
)
{
// 判断C组是否有值
// 判断C组是否有值
...
@@ -342,6 +344,7 @@ class ProductService extends Service {
...
@@ -342,6 +344,7 @@ class ProductService extends Service {
}
}
log
.
c_class_list
=
R
.
pluck
(
'business_id'
)(
classList
.
class_C
).
join
(
','
);
log
.
c_class_list
=
R
.
pluck
(
'business_id'
)(
classList
.
class_C
).
join
(
','
);
log
.
is_run_pass_rate
=
1
;
log
.
is_run_pass_rate
=
1
;
log
.
pass_rate_list
=
JSON
.
stringify
(
passRateList
);
}
else
{
}
else
{
// 模型计算参数不够,仍然采用手动推荐
// 模型计算参数不够,仍然采用手动推荐
classList
.
class_C
=
R
.
sort
(
recommendSort
)(
classList
.
class_C
);
classList
.
class_C
=
R
.
sort
(
recommendSort
)(
classList
.
class_C
);
...
@@ -352,6 +355,7 @@ class ProductService extends Service {
...
@@ -352,6 +355,7 @@ class ProductService extends Service {
e
.
needCalc
=
(
isNeedCalc
||
(
isNeedCalc
&&
rule
===
3
))
?
1
:
0
;
e
.
needCalc
=
(
isNeedCalc
||
(
isNeedCalc
&&
rule
===
3
))
?
1
:
0
;
return
e
;
return
e
;
})(
classList
.
class_C
);
})(
classList
.
class_C
);
log
.
c_class_list
=
R
.
pluck
(
'business_id'
)(
classList
.
class_C
).
join
(
','
);
}
}
}
else
{
}
else
{
classList
.
class_C
=
R
.
sort
(
recommendSort
)(
classList
.
class_C
);
classList
.
class_C
=
R
.
sort
(
recommendSort
)(
classList
.
class_C
);
...
...
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