Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
涂亚平
/
subsidy
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 62afc730
authored
Dec 12, 2021
by
涂亚平
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
导出结果没有分数
1 parent
c497f779
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
9 deletions
src/main/java/com/subsidy/controller/AdministerController.java
src/main/java/com/subsidy/service/impl/AdministerServiceImpl.java
src/main/java/com/subsidy/controller/AdministerController.java
View file @
62afc73
...
...
@@ -110,7 +110,7 @@ public class AdministerController {
@PostMapping
(
"exportClassDetail"
)
@ApiOperation
(
"** 班级管理--班级成员--导出 id 班级id userName"
)
@LoginRequired
(
value
=
{
ConstantUtils
.
ADMINISTER_TERMINATE
})
//
@LoginRequired(value = {ConstantUtils.ADMINISTER_TERMINATE})
public
void
exportClassDetail
(
@RequestBody
ClassDetailDTO
classDetailDTO
)
throws
Exception
{
classDetailDTO
.
setFlag
(
true
);
administerService
.
exportClassDetail
(
classDetailDTO
);
...
...
src/main/java/com/subsidy/service/impl/AdministerServiceImpl.java
View file @
62afc73
...
...
@@ -351,12 +351,19 @@ public class AdministerServiceImpl extends ServiceImpl<AdministerMapper, Adminis
classDetailVO
.
setGetMaxScoreVOS
(
getMaxScoreVOS
);
Boolean
flag
=
true
;
for
(
GetMaxScoreVO
getMaxScoreVO
:
getMaxScoreVOS
){
if
(
getMaxScoreVO
.
getScore
()<
60
){
flag
=
false
;
if
(
getMaxScoreVOS
.
size
()>
0
){
for
(
GetMaxScoreVO
getMaxScoreVO
:
getMaxScoreVOS
){
if
(
getMaxScoreVO
.
getScore
()<
60
){
flag
=
false
;
}
}
}
else
{
flag
=
false
;
}
if
(
flag
){
classDetailVO
.
setResult
(
"合格"
);
}
else
{
...
...
@@ -434,12 +441,18 @@ public class AdministerServiceImpl extends ServiceImpl<AdministerMapper, Adminis
Boolean
flag
=
true
;
StringBuilder
stringBuilder
=
new
StringBuilder
();
for
(
GetMaxScoreVO
getMaxScoreVO
:
getMaxScoreVOS
){
stringBuilder
.
append
(
getMaxScoreVO
.
getPaperName
()+
":"
+
getMaxScoreVO
.
getScore
());
if
(
getMaxScoreVO
.
getScore
()<
60
){
flag
=
false
;
if
(
getMaxScoreVOS
.
size
()>
0
){
for
(
GetMaxScoreVO
getMaxScoreVO
:
getMaxScoreVOS
){
stringBuilder
.
append
(
getMaxScoreVO
.
getPaperName
()+
":"
+
getMaxScoreVO
.
getScore
());
if
(
getMaxScoreVO
.
getScore
()<
60
){
flag
=
false
;
}
stringBuilder
.
append
(
" "
);
}
stringBuilder
.
append
(
" "
);
}
else
{
flag
=
false
;
}
if
(
flag
){
...
...
@@ -448,6 +461,8 @@ public class AdministerServiceImpl extends ServiceImpl<AdministerMapper, Adminis
classDetailVO
.
setResult
(
"不合格"
);
}
classDetailVO
.
setScore
(
stringBuilder
.
toString
());
//答疑
Integer
count
=
answeringQuestionMapper
.
selectCount
(
new
QueryWrapper
<
AnsweringQuestionDO
>()
.
lambda
()
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment