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
34a1862c
Commit
34a1862c
authored
Aug 27, 2026
by
wujipeng
Browse files
优化
parent
7c80771f
Changes
2
Show whitespace changes
Inline
Side-by-side
practical-business/src/main/java/com/platform/business/service/impl/TheoreticalPaperAdminServiceImpl.java
View file @
34a1862c
...
...
@@ -460,8 +460,7 @@ public class TheoreticalPaperAdminServiceImpl implements TheoreticalPaperAdminSe
TheoreticalPaperDetailEntity
question
,
String
prefix
)
{
if
(
"单选题"
.
equals
(
type
))
{
String
normalized
=
answer
.
toUpperCase
(
Locale
.
ROOT
);
if
(
normalized
.
length
()
!=
1
||
"ABCDE"
.
indexOf
(
normalized
.
charAt
(
0
))
<
0
||
!
hasOption
(
question
,
normalized
.
charAt
(
0
)))
{
if
(
normalized
.
length
()
!=
1
||
"ABCDE"
.
indexOf
(
normalized
.
charAt
(
0
))
<
0
)
{
throw
new
BusinessException
(
prefix
+
"答案必须是存在的单个选项字母"
);
}
requireObjectiveOptions
(
question
,
prefix
);
...
...
practical-business/src/main/resources/com/platform/business/mapper/TheoreticalLibraryMapper.xml
View file @
34a1862c
...
...
@@ -132,7 +132,12 @@
END as problem,
answer,
participate,
score
score,
option_a,
option_b,
option_c,
option_d,
option_e
FROM
theoretical_library
WHERE
...
...
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