Commit 62afc730 by 涂亚平

导出结果没有分数

1 parent c497f779
......@@ -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);
......
......@@ -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()
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!