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
2015701d
Commit
2015701d
authored
May 19, 2020
by
任国军
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add report more content
parent
449d4871
Pipeline
#23499
passed with stage
in 13 seconds
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
11 deletions
+5
-11
courseV5Questionnaire.js
app/model/class/v5/courseV5Questionnaire.js
+1
-1
report.js
app/service/course/v5/report.js
+4
-10
No files found.
app/model/class/v5/courseV5Questionnaire.js
View file @
2015701d
...
@@ -13,7 +13,7 @@ module.exports = app => {
...
@@ -13,7 +13,7 @@ module.exports = app => {
autoIncrement
:
true
,
autoIncrement
:
true
,
},
},
cat_id
:
INTEGER
,
cat_id
:
INTEGER
,
user_id
:
STRING
,
user_
uu
id
:
STRING
,
answer_1
:
STRING
,
answer_1
:
STRING
,
answer_2
:
STRING
,
answer_2
:
STRING
,
answer_3
:
STRING
,
answer_3
:
STRING
,
...
...
app/service/course/v5/report.js
View file @
2015701d
...
@@ -108,17 +108,14 @@ class ReportService extends Service {
...
@@ -108,17 +108,14 @@ class ReportService extends Service {
report
.
push
({
report
.
push
({
id
:
v
.
id
,
id
:
v
.
id
,
title
:
v
.
title
,
title
:
v
.
title
,
sub_title
:
ctx
.
isEmpty
(
reportColumnDetailList
[
v
.
id
])
?
''
:
reportColumnDetailList
[
v
.
id
][
0
].
sub_title
,
value
:
ctx
.
isEmpty
(
reportColumnDetailList
[
v
.
id
])
?
[]
:
reportColumnDetailList
[
v
.
id
],
level
:
ctx
.
isEmpty
(
reportColumnDetailList
[
v
.
id
])
?
''
:
reportColumnDetailList
[
v
.
id
][
0
].
level
,
content
:
ctx
.
isEmpty
(
reportColumnDetailList
[
v
.
id
])
?
''
:
reportColumnDetailList
[
v
.
id
][
0
].
content
,
advice
:
ctx
.
isEmpty
(
reportColumnDetailList
[
v
.
id
])
?
''
:
reportColumnDetailList
[
v
.
id
][
0
].
advice
,
});
});
}
}
const
tags
=
await
this
.
getReportTags
(
userReportInfo
);
const
tags
=
await
this
.
getReportTags
(
userReportInfo
);
const
recommendClassList
=
await
this
.
getRecommendClassListByReport
(
userReportInfo
.
answer
,
userReportInfo
.
user_uuid
,
userReportInfo
.
cat_id
);
const
recommendClassList
=
await
this
.
getRecommendClassListByReport
(
userReportInfo
.
answer
,
userReportInfo
.
user_uuid
,
userReportInfo
.
cat_id
);
const
userQuestionnaire
=
await
ctx
.
classModel
.
V5
.
CourseV5Questionnaire
.
findOne
({
where
:
{
user_id
:
userReportInfo
.
user_uuid
,
cat_id
:
userReportInfo
.
cat_id
}
});
const
userQuestionnaire
=
await
ctx
.
classModel
.
V5
.
CourseV5Questionnaire
.
findOne
({
where
:
{
user_
uu
id
:
userReportInfo
.
user_uuid
,
cat_id
:
userReportInfo
.
cat_id
}
});
const
ret
=
{
const
ret
=
{
id
:
userReportInfo
.
id
,
id
:
userReportInfo
.
id
,
...
@@ -157,17 +154,14 @@ class ReportService extends Service {
...
@@ -157,17 +154,14 @@ class ReportService extends Service {
report
.
push
({
report
.
push
({
id
:
v
.
id
,
id
:
v
.
id
,
title
:
v
.
title
,
title
:
v
.
title
,
sub_title
:
ctx
.
isEmpty
(
reportColumnDetailList
[
v
.
id
])
?
''
:
reportColumnDetailList
[
v
.
id
][
0
].
sub_title
,
value
:
ctx
.
isEmpty
(
reportColumnDetailList
[
v
.
id
])
?
[]
:
reportColumnDetailList
[
v
.
id
],
level
:
ctx
.
isEmpty
(
reportColumnDetailList
[
v
.
id
])
?
''
:
reportColumnDetailList
[
v
.
id
][
0
].
level
,
content
:
ctx
.
isEmpty
(
reportColumnDetailList
[
v
.
id
])
?
''
:
reportColumnDetailList
[
v
.
id
][
0
].
content
,
advice
:
ctx
.
isEmpty
(
reportColumnDetailList
[
v
.
id
])
?
''
:
reportColumnDetailList
[
v
.
id
][
0
].
advice
,
});
});
}
}
const
tags
=
await
this
.
getReportTags
(
userReportInfo
);
const
tags
=
await
this
.
getReportTags
(
userReportInfo
);
const
recommendClassList
=
await
this
.
getRecommendClassListByReport
(
userReportInfo
.
answer
,
userReportInfo
.
user_uuid
,
userReportInfo
.
cat_id
);
const
recommendClassList
=
await
this
.
getRecommendClassListByReport
(
userReportInfo
.
answer
,
userReportInfo
.
user_uuid
,
userReportInfo
.
cat_id
);
const
userQuestionnaire
=
await
ctx
.
classModel
.
V5
.
CourseV5Questionnaire
.
findOne
({
where
:
{
user_id
:
userReportInfo
.
user_uuid
,
cat_id
:
userReportInfo
.
cat_id
}
});
const
userQuestionnaire
=
await
ctx
.
classModel
.
V5
.
CourseV5Questionnaire
.
findOne
({
where
:
{
user_
uu
id
:
userReportInfo
.
user_uuid
,
cat_id
:
userReportInfo
.
cat_id
}
});
const
ret
=
{
const
ret
=
{
id
:
reportId
,
id
:
reportId
,
...
...
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