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
Hide 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,22 +151,24 @@ public class FzGradesServiceImpl extends ServiceImpl<FzGradesMapper, FzGradesEnt
...
@@ -150,22 +151,24 @@ public class FzGradesServiceImpl extends ServiceImpl<FzGradesMapper, FzGradesEnt
//主观题 -> 主观题
//主观题 -> 主观题
//绘图题 -> 绘图题
//绘图题 -> 绘图题
//实操题 -> 实操题
//实操题 -> 实操题
switch
(
value
.
getType
())
{
if
(
StrUtil
.
isNotEmpty
(
value
.
getType
())){
case
"单选题"
:
switch
(
value
.
getType
())
{
case
"多选题"
:
case
"单选题"
:
case
"选图题"
:
case
"多选题"
:
entity
.
setType
(
"客观题"
);
case
"选图题"
:
break
;
entity
.
setType
(
"客观题"
);
case
"主观题"
:
break
;
entity
.
setType
(
"主观题"
);
case
"主观题"
:
break
;
entity
.
setType
(
"主观题"
);
case
"绘图题"
:
break
;
entity
.
setType
(
"绘图题"
);
case
"绘图题"
:
break
;
entity
.
setType
(
"绘图题"
);
case
"实操题"
:
break
;
entity
.
setType
(
"实操题"
);
case
"实操题"
:
break
;
entity
.
setType
(
"实操题"
);
default
:
break
;
default
:
}
}
}
}
}
List
<
FzGradesEntity
>
result
=
new
ArrayList
<>(
byCode
.
values
());
List
<
FzGradesEntity
>
result
=
new
ArrayList
<>(
byCode
.
values
());
...
...
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