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
e62cc11c
Commit
e62cc11c
authored
Aug 25, 2026
by
wujipeng
Browse files
优化
parent
967d97b3
Changes
1
Show whitespace changes
Inline
Side-by-side
practical-business/src/main/java/com/platform/business/service/impl/FzGradesServiceImpl.java
View file @
e62cc11c
...
...
@@ -145,6 +145,28 @@ public class FzGradesServiceImpl extends ServiceImpl<FzGradesMapper, FzGradesEnt
if
(
byCode
.
put
(
code
,
entity
)
!=
null
)
{
throw
new
BusinessException
(
"同一份成绩中题目编号不能重复"
);
}
//转换type
//单选题、多选题、选图题 -> 客观题
//主观题 -> 主观题
//绘图题 -> 绘图题
//实操题 -> 实操题
switch
(
value
.
getType
())
{
case
"单选题"
:
case
"多选题"
:
case
"选图题"
:
entity
.
setType
(
"客观题"
);
break
;
case
"主观题"
:
entity
.
setType
(
"主观题"
);
break
;
case
"绘图题"
:
entity
.
setType
(
"绘图题"
);
break
;
case
"实操题"
:
entity
.
setType
(
"实操题"
);
break
;
default
:
}
}
List
<
FzGradesEntity
>
result
=
new
ArrayList
<>(
byCode
.
values
());
result
.
sort
(
Comparator
.
comparing
(
FzGradesEntity:
:
getCode
));
...
...
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