|
@@ -589,7 +589,7 @@ public class BaseStudentAssessmentInspectionServiceImpl extends MPJBaseServiceIm
|
|
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(BigDecimal.valueOf(result).setScale(2, RoundingMode.HALF_UP).doubleValue() + "");
|
|
} catch (ScriptException e) {
|
|
} catch (ScriptException e) {
|
|
Log.error(e.getMessage(), e);
|
|
Log.error(e.getMessage(), e);
|
|
}
|
|
}
|