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
52f2d165
Commit
52f2d165
authored
Aug 25, 2026
by
wujipeng
Browse files
优化
parent
e62cc11c
Changes
1
Show whitespace changes
Inline
Side-by-side
practical-business/src/main/java/com/platform/business/service/impl/FzGradesServiceImpl.java
View file @
52f2d165
package
com.platform.business.service.impl
;
package
com.platform.business.service.impl
;
import
cn.hutool.core.bean.BeanUtil
;
import
cn.hutool.core.bean.BeanUtil
;
import
cn.hutool.core.util.StrUtil
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
com.platform.business.constant.ExamAdminConstants
;
import
com.platform.business.constant.ExamAdminConstants
;
import
com.platform.business.mapper.FzGradesMapper
;
import
com.platform.business.mapper.FzGradesMapper
;
...
@@ -150,6 +151,7 @@ public class FzGradesServiceImpl extends ServiceImpl<FzGradesMapper, FzGradesEnt
...
@@ -150,6 +151,7 @@ public class FzGradesServiceImpl extends ServiceImpl<FzGradesMapper, FzGradesEnt
//主观题 -> 主观题
//主观题 -> 主观题
//绘图题 -> 绘图题
//绘图题 -> 绘图题
//实操题 -> 实操题
//实操题 -> 实操题
if
(
StrUtil
.
isNotEmpty
(
value
.
getType
())){
switch
(
value
.
getType
())
{
switch
(
value
.
getType
())
{
case
"单选题"
:
case
"单选题"
:
case
"多选题"
:
case
"多选题"
:
...
@@ -168,6 +170,7 @@ public class FzGradesServiceImpl extends ServiceImpl<FzGradesMapper, FzGradesEnt
...
@@ -168,6 +170,7 @@ public class FzGradesServiceImpl extends ServiceImpl<FzGradesMapper, FzGradesEnt
default
:
default
:
}
}
}
}
}
List
<
FzGradesEntity
>
result
=
new
ArrayList
<>(
byCode
.
values
());
List
<
FzGradesEntity
>
result
=
new
ArrayList
<>(
byCode
.
values
());
result
.
sort
(
Comparator
.
comparing
(
FzGradesEntity:
:
getCode
));
result
.
sort
(
Comparator
.
comparing
(
FzGradesEntity:
:
getCode
));
return
result
;
return
result
;
...
...
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