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