Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
邬吉朋
practical_train
Commits
2b2a6b71
Commit
2b2a6b71
authored
Aug 10, 2026
by
wujipeng
Browse files
学生端-学习中心-详情-我的成绩-题目导航
parent
11716202
Changes
8
Hide whitespace changes
Inline
Side-by-side
practical-api/practical-business-api/src/main/java/com/platform/business/model/vo/TheoreticalPaperStudentDetailVO.java
View file @
2b2a6b71
...
@@ -30,4 +30,7 @@ public class TheoreticalPaperStudentDetailVO extends TheoreticalPaperStudentDeta
...
@@ -30,4 +30,7 @@ public class TheoreticalPaperStudentDetailVO extends TheoreticalPaperStudentDeta
@ApiModelProperty
(
"该题型得分"
)
@ApiModelProperty
(
"该题型得分"
)
private
Double
sameScore
;
private
Double
sameScore
;
@ApiModelProperty
(
"结果描述"
)
private
String
resultDesc
;
}
}
practical-business/src/main/java/com/platform/business/controller/ExamController.java
View file @
2b2a6b71
...
@@ -137,4 +137,10 @@ public class ExamController extends BaseController {
...
@@ -137,4 +137,10 @@ public class ExamController extends BaseController {
public
Result
<
ExamStudentVO
>
gradesStatistics
(
@PathVariable
(
name
=
"id"
)
String
id
)
{
public
Result
<
ExamStudentVO
>
gradesStatistics
(
@PathVariable
(
name
=
"id"
)
String
id
)
{
return
Result
.
data
(
examService
.
gradesStatistics
(
id
));
return
Result
.
data
(
examService
.
gradesStatistics
(
id
));
}
}
@ApiOperation
(
value
=
"学生端-学习中心-详情-我的成绩-题目导航"
)
@GetMapping
(
"/grades/navigation/{id}"
)
public
Result
<
List
<
TheoreticalPaperStudentDetailVO
>>
gradesNavigation
(
@PathVariable
(
name
=
"id"
)
String
id
)
{
return
Result
.
data
(
examService
.
gradesNavigation
(
id
));
}
}
}
practical-business/src/main/java/com/platform/business/mapper/TheoreticalPaperStudentDetailMapper.java
View file @
2b2a6b71
...
@@ -25,4 +25,7 @@ public interface TheoreticalPaperStudentDetailMapper extends BaseMapper<Theoreti
...
@@ -25,4 +25,7 @@ public interface TheoreticalPaperStudentDetailMapper extends BaseMapper<Theoreti
TheoreticalPaperStudentDetailVO
gradesQuestionDetail
(
@Param
(
"id"
)
String
id
);
TheoreticalPaperStudentDetailVO
gradesQuestionDetail
(
@Param
(
"id"
)
String
id
);
Boolean
leaveBlank
(
TheoreticalPaperStudentDetailDTO
theoreticalPaperStudentDetailDTO
);
Boolean
leaveBlank
(
TheoreticalPaperStudentDetailDTO
theoreticalPaperStudentDetailDTO
);
List
<
TheoreticalPaperStudentDetailVO
>
gradesNavigation
(
@Param
(
"examId"
)
int
examId
,
@Param
(
"studentId"
)
String
studentId
);
}
}
practical-business/src/main/java/com/platform/business/service/ExamService.java
View file @
2b2a6b71
...
@@ -53,4 +53,6 @@ public interface ExamService extends IService<ExamEntity> {
...
@@ -53,4 +53,6 @@ public interface ExamService extends IService<ExamEntity> {
ExamStudentVO
gradesStatistics
(
String
id
);
ExamStudentVO
gradesStatistics
(
String
id
);
List
<
TheoreticalPaperStudentDetailVO
>
gradesNavigation
(
String
id
);
}
}
practical-business/src/main/java/com/platform/business/service/TheoreticalPaperStudentDetailService.java
View file @
2b2a6b71
...
@@ -20,6 +20,9 @@ public interface TheoreticalPaperStudentDetailService extends IService<Theoretic
...
@@ -20,6 +20,9 @@ public interface TheoreticalPaperStudentDetailService extends IService<Theoretic
TheoreticalPaperStudentDetailVO
questionDetail
(
String
id
);
TheoreticalPaperStudentDetailVO
questionDetail
(
String
id
);
TheoreticalPaperStudentDetailVO
gradesQuestionDetail
(
String
id
);
TheoreticalPaperStudentDetailVO
gradesQuestionDetail
(
String
id
);
Boolean
leaveBlank
(
TheoreticalPaperStudentDetailDTO
theoreticalPaperStudentDetailDTO
);
Boolean
leaveBlank
(
TheoreticalPaperStudentDetailDTO
theoreticalPaperStudentDetailDTO
);
List
<
TheoreticalPaperStudentDetailVO
>
gradesNavigation
(
int
examId
,
String
studentId
);
}
}
practical-business/src/main/java/com/platform/business/service/impl/ExamServiceImpl.java
View file @
2b2a6b71
...
@@ -441,6 +441,25 @@ public class ExamServiceImpl extends ServiceImpl<ExamMapper, ExamEntity> impleme
...
@@ -441,6 +441,25 @@ public class ExamServiceImpl extends ServiceImpl<ExamMapper, ExamEntity> impleme
return
result
;
return
result
;
}
}
@Override
public
List
<
TheoreticalPaperStudentDetailVO
>
gradesNavigation
(
String
id
)
{
//获取考试基础信息
ExamStudentEntity
examStudent
=
examStudentService
.
getById
(
id
);
List
<
TheoreticalPaperStudentDetailVO
>
result
=
theoreticalPaperStudentDetailService
.
gradesNavigation
(
examStudent
.
getExamId
(),
examStudent
.
getStudentId
());
for
(
TheoreticalPaperStudentDetailVO
theoreticalPaperStudentDetailVO
:
result
)
{
if
(
theoreticalPaperStudentDetailVO
.
getIsPartiallyRight
())
{
theoreticalPaperStudentDetailVO
.
setResultDesc
(
"部分对"
);
}
else
{
if
(
theoreticalPaperStudentDetailVO
.
getResult
()){
theoreticalPaperStudentDetailVO
.
setResultDesc
(
"答对"
);
}
else
{
theoreticalPaperStudentDetailVO
.
setResultDesc
(
"答错"
);
}
}
}
return
result
;
}
private
static
Double
judgeExamResult
(
ExamStudentVO
result
)
{
private
static
Double
judgeExamResult
(
ExamStudentVO
result
)
{
Double
score
=
result
.
getScore
();
Double
score
=
result
.
getScore
();
if
(
score
!=
null
)
{
if
(
score
!=
null
)
{
...
...
practical-business/src/main/java/com/platform/business/service/impl/TheoreticalPaperStudentDetailServiceImpl.java
View file @
2b2a6b71
...
@@ -38,4 +38,9 @@ public class TheoreticalPaperStudentDetailServiceImpl extends ServiceImpl<Theore
...
@@ -38,4 +38,9 @@ public class TheoreticalPaperStudentDetailServiceImpl extends ServiceImpl<Theore
public
Boolean
leaveBlank
(
TheoreticalPaperStudentDetailDTO
theoreticalPaperStudentDetailDTO
)
{
public
Boolean
leaveBlank
(
TheoreticalPaperStudentDetailDTO
theoreticalPaperStudentDetailDTO
)
{
return
baseMapper
.
leaveBlank
(
theoreticalPaperStudentDetailDTO
);
return
baseMapper
.
leaveBlank
(
theoreticalPaperStudentDetailDTO
);
}
}
@Override
public
List
<
TheoreticalPaperStudentDetailVO
>
gradesNavigation
(
int
examId
,
String
studentId
)
{
return
baseMapper
.
gradesNavigation
(
examId
,
studentId
);
}
}
}
practical-business/src/main/resources/com/platform/business/mapper/TheoreticalPaperStudentDetailMapper.xml
View file @
2b2a6b71
...
@@ -54,6 +54,18 @@
...
@@ -54,6 +54,18 @@
where
where
id = #{id}
id = #{id}
</select>
</select>
<select
id=
"gradesNavigation"
resultType=
"com.platform.business.model.vo.TheoreticalPaperStudentDetailVO"
>
SELECT
id,
is_partially_right as isPartiallyRight,
result
FROM
theoretical_paper_student_detail
WHERE
student_id = #{studentId}
AND
exam_id = #{examId}
</select>
<update
id=
"leaveBlank"
>
<update
id=
"leaveBlank"
>
update
update
theoretical_paper_student_detail
theoretical_paper_student_detail
...
...
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