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
24a5784e
Commit
24a5784e
authored
Aug 10, 2026
by
wujipeng
Browse files
学生端-学习中心-我的成绩-详情-列表
parent
2b2a6b71
Changes
8
Hide whitespace changes
Inline
Side-by-side
practical-api/practical-business-api/src/main/java/com/platform/business/model/entity/TheoreticalPaperStudentDetailEntity.java
View file @
24a5784e
...
@@ -107,4 +107,7 @@ public class TheoreticalPaperStudentDetailEntity {
...
@@ -107,4 +107,7 @@ public class TheoreticalPaperStudentDetailEntity {
@ApiModelProperty
(
"分数"
)
@ApiModelProperty
(
"分数"
)
private
Double
score
;
private
Double
score
;
@ApiModelProperty
(
"实际分数"
)
@TableField
(
"actual_score"
)
private
Double
actualScore
;
}
}
practical-business/src/main/java/com/platform/business/controller/ExamController.java
View file @
24a5784e
...
@@ -120,27 +120,33 @@ public class ExamController extends BaseController {
...
@@ -120,27 +120,33 @@ public class ExamController extends BaseController {
return
Result
.
data
(
examService
.
gradesDetail
(
id
));
return
Result
.
data
(
examService
.
gradesDetail
(
id
));
}
}
@ApiOperation
(
value
=
"学生端-学习中心-
详情-
我的成绩-汇总"
)
@ApiOperation
(
value
=
"学生端-学习中心-我的成绩-
详情-
汇总"
)
@GetMapping
(
"/grades/summary/{id}"
)
@GetMapping
(
"/grades/summary/{id}"
)
public
Result
<
ExamStudentVO
>
gradesSummary
(
@PathVariable
(
name
=
"id"
)
String
id
)
{
public
Result
<
ExamStudentVO
>
gradesSummary
(
@PathVariable
(
name
=
"id"
)
String
id
)
{
return
Result
.
data
(
examService
.
gradesSummary
(
id
));
return
Result
.
data
(
examService
.
gradesSummary
(
id
));
}
}
@ApiOperation
(
value
=
"学生端-学习中心-
详情-
我的成绩-成绩分析"
)
@ApiOperation
(
value
=
"学生端-学习中心-我的成绩-
详情-
成绩分析"
)
@GetMapping
(
"/grades/analysis/{id}"
)
@GetMapping
(
"/grades/analysis/{id}"
)
public
Result
<
Map
<
String
,
ExamStudentVO
>>
gradesAnalysis
(
@PathVariable
(
name
=
"id"
)
String
id
)
{
public
Result
<
Map
<
String
,
ExamStudentVO
>>
gradesAnalysis
(
@PathVariable
(
name
=
"id"
)
String
id
)
{
return
Result
.
data
(
examService
.
gradesAnalysis
(
id
));
return
Result
.
data
(
examService
.
gradesAnalysis
(
id
));
}
}
@ApiOperation
(
value
=
"学生端-学习中心-
详情-
我的成绩-考试统计"
)
@ApiOperation
(
value
=
"学生端-学习中心-我的成绩-
详情-
考试统计"
)
@GetMapping
(
"/grades/statistics/{id}"
)
@GetMapping
(
"/grades/statistics/{id}"
)
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
=
"学生端-学习中心-
详情-
我的成绩-题目导航"
)
@ApiOperation
(
value
=
"学生端-学习中心-我的成绩-
详情-
题目导航"
)
@GetMapping
(
"/grades/navigation/{id}"
)
@GetMapping
(
"/grades/navigation/{id}"
)
public
Result
<
List
<
TheoreticalPaperStudentDetailVO
>>
gradesNavigation
(
@PathVariable
(
name
=
"id"
)
String
id
)
{
public
Result
<
List
<
TheoreticalPaperStudentDetailVO
>>
gradesNavigation
(
@PathVariable
(
name
=
"id"
)
String
id
)
{
return
Result
.
data
(
examService
.
gradesNavigation
(
id
));
return
Result
.
data
(
examService
.
gradesNavigation
(
id
));
}
}
@ApiOperation
(
value
=
"学生端-学习中心-我的成绩-详情-列表"
)
@GetMapping
(
"/grades/list/{id}"
)
public
Result
<
List
<
TheoreticalPaperStudentDetailVO
>>
gradesList
(
@PathVariable
(
name
=
"id"
)
String
id
)
{
return
Result
.
data
(
examService
.
gradesList
(
id
));
}
}
}
practical-business/src/main/java/com/platform/business/mapper/TheoreticalPaperStudentDetailMapper.java
View file @
24a5784e
...
@@ -28,4 +28,6 @@ public interface TheoreticalPaperStudentDetailMapper extends BaseMapper<Theoreti
...
@@ -28,4 +28,6 @@ public interface TheoreticalPaperStudentDetailMapper extends BaseMapper<Theoreti
List
<
TheoreticalPaperStudentDetailVO
>
gradesNavigation
(
@Param
(
"examId"
)
int
examId
,
@Param
(
"studentId"
)
String
studentId
);
List
<
TheoreticalPaperStudentDetailVO
>
gradesNavigation
(
@Param
(
"examId"
)
int
examId
,
@Param
(
"studentId"
)
String
studentId
);
List
<
TheoreticalPaperStudentDetailVO
>
gradesList
(
@Param
(
"examId"
)
int
examId
,
@Param
(
"studentId"
)
String
studentId
);
}
}
practical-business/src/main/java/com/platform/business/service/ExamService.java
View file @
24a5784e
...
@@ -55,4 +55,6 @@ public interface ExamService extends IService<ExamEntity> {
...
@@ -55,4 +55,6 @@ public interface ExamService extends IService<ExamEntity> {
List
<
TheoreticalPaperStudentDetailVO
>
gradesNavigation
(
String
id
);
List
<
TheoreticalPaperStudentDetailVO
>
gradesNavigation
(
String
id
);
List
<
TheoreticalPaperStudentDetailVO
>
gradesList
(
String
id
);
}
}
practical-business/src/main/java/com/platform/business/service/TheoreticalPaperStudentDetailService.java
View file @
24a5784e
...
@@ -25,4 +25,6 @@ public interface TheoreticalPaperStudentDetailService extends IService<Theoretic
...
@@ -25,4 +25,6 @@ public interface TheoreticalPaperStudentDetailService extends IService<Theoretic
List
<
TheoreticalPaperStudentDetailVO
>
gradesNavigation
(
int
examId
,
String
studentId
);
List
<
TheoreticalPaperStudentDetailVO
>
gradesNavigation
(
int
examId
,
String
studentId
);
List
<
TheoreticalPaperStudentDetailVO
>
gradesList
(
int
examId
,
String
studentId
);
}
}
practical-business/src/main/java/com/platform/business/service/impl/ExamServiceImpl.java
View file @
24a5784e
...
@@ -446,6 +446,22 @@ public class ExamServiceImpl extends ServiceImpl<ExamMapper, ExamEntity> impleme
...
@@ -446,6 +446,22 @@ public class ExamServiceImpl extends ServiceImpl<ExamMapper, ExamEntity> impleme
//获取考试基础信息
//获取考试基础信息
ExamStudentEntity
examStudent
=
examStudentService
.
getById
(
id
);
ExamStudentEntity
examStudent
=
examStudentService
.
getById
(
id
);
List
<
TheoreticalPaperStudentDetailVO
>
result
=
theoreticalPaperStudentDetailService
.
gradesNavigation
(
examStudent
.
getExamId
(),
examStudent
.
getStudentId
());
List
<
TheoreticalPaperStudentDetailVO
>
result
=
theoreticalPaperStudentDetailService
.
gradesNavigation
(
examStudent
.
getExamId
(),
examStudent
.
getStudentId
());
//判断答题结果
judgeAnswerResult
(
result
);
return
result
;
}
@Override
public
List
<
TheoreticalPaperStudentDetailVO
>
gradesList
(
String
id
)
{
//获取考试基础信息
ExamStudentEntity
examStudent
=
examStudentService
.
getById
(
id
);
List
<
TheoreticalPaperStudentDetailVO
>
result
=
theoreticalPaperStudentDetailService
.
gradesList
(
examStudent
.
getExamId
(),
examStudent
.
getStudentId
());
//判断答题结果
judgeAnswerResult
(
result
);
return
result
;
}
private
static
void
judgeAnswerResult
(
List
<
TheoreticalPaperStudentDetailVO
>
result
)
{
for
(
TheoreticalPaperStudentDetailVO
theoreticalPaperStudentDetailVO
:
result
)
{
for
(
TheoreticalPaperStudentDetailVO
theoreticalPaperStudentDetailVO
:
result
)
{
if
(
theoreticalPaperStudentDetailVO
.
getIsPartiallyRight
())
{
if
(
theoreticalPaperStudentDetailVO
.
getIsPartiallyRight
())
{
theoreticalPaperStudentDetailVO
.
setResultDesc
(
"部分对"
);
theoreticalPaperStudentDetailVO
.
setResultDesc
(
"部分对"
);
...
@@ -457,7 +473,6 @@ public class ExamServiceImpl extends ServiceImpl<ExamMapper, ExamEntity> impleme
...
@@ -457,7 +473,6 @@ public class ExamServiceImpl extends ServiceImpl<ExamMapper, ExamEntity> impleme
}
}
}
}
}
}
return
result
;
}
}
private
static
Double
judgeExamResult
(
ExamStudentVO
result
)
{
private
static
Double
judgeExamResult
(
ExamStudentVO
result
)
{
...
...
practical-business/src/main/java/com/platform/business/service/impl/TheoreticalPaperStudentDetailServiceImpl.java
View file @
24a5784e
...
@@ -43,4 +43,9 @@ public class TheoreticalPaperStudentDetailServiceImpl extends ServiceImpl<Theore
...
@@ -43,4 +43,9 @@ public class TheoreticalPaperStudentDetailServiceImpl extends ServiceImpl<Theore
public
List
<
TheoreticalPaperStudentDetailVO
>
gradesNavigation
(
int
examId
,
String
studentId
)
{
public
List
<
TheoreticalPaperStudentDetailVO
>
gradesNavigation
(
int
examId
,
String
studentId
)
{
return
baseMapper
.
gradesNavigation
(
examId
,
studentId
);
return
baseMapper
.
gradesNavigation
(
examId
,
studentId
);
}
}
@Override
public
List
<
TheoreticalPaperStudentDetailVO
>
gradesList
(
int
examId
,
String
studentId
)
{
return
baseMapper
.
gradesList
(
examId
,
studentId
);
}
}
}
practical-business/src/main/resources/com/platform/business/mapper/TheoreticalPaperStudentDetailMapper.xml
View file @
24a5784e
...
@@ -63,7 +63,28 @@
...
@@ -63,7 +63,28 @@
theoretical_paper_student_detail
theoretical_paper_student_detail
WHERE
WHERE
student_id = #{studentId}
student_id = #{studentId}
AND
AND
exam_id = #{examId}
</select>
<select
id=
"gradesList"
resultType=
"com.platform.business.model.vo.TheoreticalPaperStudentDetailVO"
>
select
type,
problem,
option_a as optionA,
option_b as optionB,
option_c as optionC,
option_d as optionD,
option_e as optionE,
answer,
result,
is_partially_right as isPartiallyRight,
score,
actual_score as actualScore
from
theoretical_paper_student_detail
where
student_id = #{studentId}
and
exam_id = #{examId}
exam_id = #{examId}
</select>
</select>
<update
id=
"leaveBlank"
>
<update
id=
"leaveBlank"
>
...
...
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