|
|
@@ -232,7 +232,7 @@ public class BaseStudentAssessmentInspectionServiceImpl extends MPJBaseServiceIm
|
|
|
List<BaseStudentAssessmentCategory> baseStudentAssessmentCategorieList = categoryMapper.selectList(baseStudentAssessmentCategoryLambdaQueryWrapper);
|
|
|
|
|
|
//导出子表
|
|
|
- if(baseStudentAssessmentCategorieList.size() > 0){
|
|
|
+ if(!baseStudentAssessmentCategorieList.isEmpty()){
|
|
|
//需要合并的列
|
|
|
int[] mergeColumeIndex = {0, 1, 2, 3, 4};
|
|
|
ExcelMergeUtil excelFillCellMergeStrategy = new ExcelMergeUtil(1, mergeColumeIndex);
|
|
|
@@ -268,7 +268,7 @@ public class BaseStudentAssessmentInspectionServiceImpl extends MPJBaseServiceIm
|
|
|
.eq(dto.getGradeId() != null, BaseClass::getGradeId, dto.getGradeId())
|
|
|
.eq(dto.getClassId() != null, BaseClass::getId, dto.getClassId())
|
|
|
.eq(dto.getClassStatus() != null, BaseClass::getIsGraduate, dto.getClassStatus())
|
|
|
- .like(dto.getName() != null && !dto.getName().equals(""), XjrUser::getName, dto.getName());
|
|
|
+ .like(dto.getName() != null && !dto.getName().isEmpty(), XjrUser::getName, dto.getName());
|
|
|
|
|
|
List<CalssQuantitativeAssessmentPageVo> resultList = baseClassMapper.selectJoinList(CalssQuantitativeAssessmentPageVo.class, baseClassMPJLambdaWrapper);
|
|
|
|
|
|
@@ -423,7 +423,6 @@ public class BaseStudentAssessmentInspectionServiceImpl extends MPJBaseServiceIm
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-
|
|
|
c.setAssessMoney(" ");
|
|
|
c.setAssessSumScore(" ");
|
|
|
}
|
|
|
@@ -475,7 +474,7 @@ public class BaseStudentAssessmentInspectionServiceImpl extends MPJBaseServiceIm
|
|
|
.eq(dto.getGradeId() != null, BaseClass::getGradeId, dto.getGradeId())
|
|
|
.eq(dto.getClassId() != null, BaseClass::getId, dto.getClassId())
|
|
|
.eq(dto.getClassStatus() != null, BaseClass::getIsGraduate, dto.getClassStatus())
|
|
|
- .like(dto.getName() != null && !dto.getName().equals(""), XjrUser::getName, dto.getName());
|
|
|
+ .like(dto.getName() != null && !dto.getName().isEmpty(), XjrUser::getName, dto.getName());
|
|
|
|
|
|
IPage<CalssQuantitativeAssessmentPageVo> resultPage = baseClassMapper.selectJoinPage(page, CalssQuantitativeAssessmentPageVo.class, baseClassMPJLambdaWrapper);
|
|
|
|
|
|
@@ -542,7 +541,7 @@ public class BaseStudentAssessmentInspectionServiceImpl extends MPJBaseServiceIm
|
|
|
for(CalssQuantitativeAssessmentPageVo c: resultPage.getRecords()){
|
|
|
Long classId = Long.parseLong(c.getClassId());
|
|
|
//学生个人行为
|
|
|
- if(individualBehaviorMap.get(classId) != null){
|
|
|
+ if(individualBehaviorMap.get(classId) != null && individualBehaviorMap.get(classId) != null){
|
|
|
Double sumScore = individualBehaviorMap.get(classId).getSumScore();
|
|
|
c.setStuPersonalBehaviorSubScore(sumScore==null?"":sumScore.toString());
|
|
|
String replacedExpression = xsgrFormula.replace("xsgrKouFen", Double.toString(sumScore));
|
|
|
@@ -556,7 +555,7 @@ public class BaseStudentAssessmentInspectionServiceImpl extends MPJBaseServiceIm
|
|
|
}
|
|
|
}
|
|
|
//常规管理
|
|
|
- if(conventionalManagementMap.get(classId) != null){
|
|
|
+ if(conventionalManagementMap.get(classId) != null && conventionalManagementMap.get(classId) != null){
|
|
|
Double sumScore = conventionalManagementMap.get(classId).getSumScore();
|
|
|
if(sumScore != null){
|
|
|
String scoreStr = sumScore.toString();
|
|
|
@@ -574,7 +573,7 @@ public class BaseStudentAssessmentInspectionServiceImpl extends MPJBaseServiceIm
|
|
|
}
|
|
|
}
|
|
|
//获奖和荣誉
|
|
|
- if(awardsAndHonorableMap.get(classId) != null){
|
|
|
+ if(awardsAndHonorableMap.get(classId) != null && awardsAndHonorableMap.get(classId) != null){
|
|
|
Double sumScore = awardsAndHonorableMap.get(classId).getSumScore();
|
|
|
if(sumScore != null){
|
|
|
c.setHonorSumScore(sumScore.toString());
|
|
|
@@ -591,8 +590,8 @@ public class BaseStudentAssessmentInspectionServiceImpl extends MPJBaseServiceIm
|
|
|
}
|
|
|
}
|
|
|
//军事化
|
|
|
- if(paramilitaryMap.get(classId) != null){
|
|
|
- Double sumScore = awardsAndHonorableMap.get(classId).getSumScore();
|
|
|
+ if(paramilitaryMap.get(classId) != null && paramilitaryMap.get(classId) != null){
|
|
|
+ Double sumScore = paramilitaryMap.get(classId).getSumScore();
|
|
|
if(sumScore != null){
|
|
|
c.setMilitaryManageComprehensiveIndex(sumScore.toString());
|
|
|
//此项得分
|
|
|
@@ -633,7 +632,7 @@ public class BaseStudentAssessmentInspectionServiceImpl extends MPJBaseServiceIm
|
|
|
}
|
|
|
}
|
|
|
//班级文化建设
|
|
|
- if(classCultureMap.containsKey(classId)){
|
|
|
+ if(classCultureMap.containsKey(classId) && classCultureMap.get(classId) != null){
|
|
|
Double sumScore = classCultureMap.get(classId).getSumScore();
|
|
|
if(sumScore != null){
|
|
|
c.setClassCultureScore(sumScore.toString());
|