|
@@ -331,22 +331,24 @@ public class BaseStudentAssessmentInspectionServiceImpl extends MPJBaseServiceIm
|
|
|
for(CalssQuantitativeAssessmentPageVo c: resultList){
|
|
|
Long classId = Long.parseLong(c.getClassId());
|
|
|
if(individualBehaviorMap.get(classId) != null){
|
|
|
- c.setStuPersonalBehaviorSubScore(individualBehaviorMap.get(classId).getSumScore());
|
|
|
- c.setStuPersonalBehaviorScore((100 + individualBehaviorMap.get(classId).getSumScore())/100*25);
|
|
|
+ c.setStuPersonalBehaviorSubScore(individualBehaviorMap.get(classId).getSumScore()==null?"":individualBehaviorMap.get(classId).getSumScore().toString());
|
|
|
+ double v = (100 + individualBehaviorMap.get(classId).getSumScore()) / 100 * 25;
|
|
|
+ c.setStuPersonalBehaviorScore(v + "");
|
|
|
}
|
|
|
|
|
|
if(conventionalManagementMap.get(classId) != null){
|
|
|
QuantitativeAssessmentSingleScoreVo scoreVo = conventionalManagementMap.get(classId);
|
|
|
- c.setClassConventionalManageSubScore(conventionalManagementMap.get(classId).getSumScore());
|
|
|
- c.setClassConventionalManageScore((100 + conventionalManagementMap.get(classId).getSumScore())/100*25);
|
|
|
+ c.setClassConventionalManageSubScore(scoreVo.getSumScore() == null?"":scoreVo.getSumScore().toString());
|
|
|
+ double v = (100 + scoreVo.getSumScore()) / 100 * 25;
|
|
|
+ c.setClassConventionalManageScore(v + "");
|
|
|
}
|
|
|
|
|
|
if(awardsAndHonorableMap.get(classId) != null){
|
|
|
- c.setHonorSumScore(awardsAndHonorableMap.get(classId).getSumScore());
|
|
|
+ c.setHonorSumScore(awardsAndHonorableMap.get(classId).getSumScore()==null?"":awardsAndHonorableMap.get(classId).getSumScore().toString());
|
|
|
if(awardsAndHonorableMap.get(classId).getSumScore() < 10){
|
|
|
- c.setHonorScore(awardsAndHonorableMap.get(classId).getSumScore());
|
|
|
+ c.setHonorScore(awardsAndHonorableMap.get(classId).getSumScore()==null?"":awardsAndHonorableMap.get(classId).getSumScore().toString());
|
|
|
}else {
|
|
|
- c.setHonorScore(10D);
|
|
|
+ c.setHonorScore("10");
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -373,14 +375,14 @@ public class BaseStudentAssessmentInspectionServiceImpl extends MPJBaseServiceIm
|
|
|
|
|
|
double sum = evaluateSocreList.stream().mapToDouble(Double::doubleValue).sum();
|
|
|
double jskhValue = BigDecimal.valueOf(sum).divide(BigDecimal.valueOf(size),2, RoundingMode.HALF_UP).doubleValue();
|
|
|
- c.setTeacherAssessComprehensiveIndex(jskhValue);
|
|
|
+ c.setTeacherAssessComprehensiveIndex(jskhValue + "");
|
|
|
String replacedExpression = jskhFormula.replace("JSKH", Double.toString(jskhValue));
|
|
|
|
|
|
ScriptEngineManager manager = new ScriptEngineManager();
|
|
|
ScriptEngine engine = manager.getEngineByName("JavaScript");
|
|
|
try {
|
|
|
double result = ((Number) engine.eval(replacedExpression)).doubleValue();
|
|
|
- c.setTeacherAssessScore(result);
|
|
|
+ c.setTeacherAssessScore(result + "");
|
|
|
} catch (ScriptException e) {
|
|
|
Log.error(e.getMessage(), e);
|
|
|
}
|
|
@@ -498,8 +500,9 @@ public class BaseStudentAssessmentInspectionServiceImpl extends MPJBaseServiceIm
|
|
|
for(CalssQuantitativeAssessmentPageVo c: resultPage.getRecords()){
|
|
|
Long classId = Long.parseLong(c.getClassId());
|
|
|
if(individualBehaviorMap.get(classId) != null){
|
|
|
- c.setStuPersonalBehaviorSubScore(individualBehaviorMap.get(classId).getSumScore());
|
|
|
- c.setStuPersonalBehaviorScore((100 + individualBehaviorMap.get(classId).getSumScore())/100*25);
|
|
|
+ c.setStuPersonalBehaviorSubScore(individualBehaviorMap.get(classId).getSumScore()==null?"":individualBehaviorMap.get(classId).getSumScore().toString());
|
|
|
+ double v = (100 + individualBehaviorMap.get(classId).getSumScore()) / 100 * 25;
|
|
|
+ c.setStuPersonalBehaviorScore(v + "");
|
|
|
/* ScriptEngine engine = new ScriptEngineManager().getEngineByName("js");
|
|
|
String geRenXingWeiGongShi = "sumSubScore/itemCount";
|
|
|
int totalScore = scoreBySubmitRecordId.get(mobileResultPageVo.getEvaluateSubmitRecordId()).getTotalScore();
|
|
@@ -519,20 +522,20 @@ public class BaseStudentAssessmentInspectionServiceImpl extends MPJBaseServiceIm
|
|
|
}
|
|
|
|
|
|
if(conventionalManagementMap.get(classId) != null){
|
|
|
- c.setClassConventionalManageSubScore(conventionalManagementMap.get(classId).getSumScore());
|
|
|
+ c.setClassConventionalManageSubScore(conventionalManagementMap.get(classId).getSumScore()==null?"":conventionalManagementMap.get(classId).getSumScore().toString());
|
|
|
Double SumScore = 0D;
|
|
|
if(conventionalManagementMap.get(classId).getSumScore() != null){
|
|
|
SumScore = conventionalManagementMap.get(classId).getSumScore();
|
|
|
}
|
|
|
- c.setClassConventionalManageScore((100 + SumScore)/100*25);
|
|
|
+ c.setClassConventionalManageScore(((100 + SumScore)/100*25) + "");
|
|
|
}
|
|
|
|
|
|
if(awardsAndHonorableMap.get(classId) != null){
|
|
|
- c.setHonorSumScore(awardsAndHonorableMap.get(classId).getSumScore());
|
|
|
+ c.setHonorSumScore(awardsAndHonorableMap.get(classId).getSumScore() ==null?"":awardsAndHonorableMap.get(classId).getSumScore().toString());
|
|
|
if(awardsAndHonorableMap.get(classId).getSumScore() < 10){
|
|
|
- c.setHonorScore(awardsAndHonorableMap.get(classId).getSumScore());
|
|
|
+ c.setHonorScore(awardsAndHonorableMap.get(classId).getSumScore() ==null?"":awardsAndHonorableMap.get(classId).getSumScore().toString());
|
|
|
}else {
|
|
|
- c.setHonorScore(10D);
|
|
|
+ c.setHonorScore("10");
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -548,14 +551,14 @@ public class BaseStudentAssessmentInspectionServiceImpl extends MPJBaseServiceIm
|
|
|
}
|
|
|
double sum = evaluateSocreList.stream().mapToDouble(Double::doubleValue).sum();
|
|
|
double jskhValue = BigDecimal.valueOf(sum).divide(BigDecimal.valueOf(size),2, RoundingMode.HALF_UP).doubleValue();
|
|
|
- c.setTeacherAssessComprehensiveIndex(jskhValue);
|
|
|
+ c.setTeacherAssessComprehensiveIndex(jskhValue + "");
|
|
|
String replacedExpression = jskhFormula.replace("JSKH", Double.toString(jskhValue));
|
|
|
|
|
|
ScriptEngineManager manager = new ScriptEngineManager();
|
|
|
ScriptEngine engine = manager.getEngineByName("JavaScript");
|
|
|
try {
|
|
|
double result = ((Number) engine.eval(replacedExpression)).doubleValue();
|
|
|
- c.setTeacherAssessScore(result);
|
|
|
+ c.setTeacherAssessScore(result + "");
|
|
|
} catch (ScriptException e) {
|
|
|
Log.error(e.getMessage(), e);
|
|
|
}
|