|
@@ -589,7 +589,7 @@ public class BaseStudentAssessmentInspectionServiceImpl extends MPJBaseServiceIm
|
|
|
ScriptEngine engine = manager.getEngineByName("JavaScript");
|
|
|
try {
|
|
|
double result = ((Number) engine.eval(replacedExpression)).doubleValue();
|
|
|
- c.setTeacherAssessScore(result + "");
|
|
|
+ c.setTeacherAssessScore(BigDecimal.valueOf(result).setScale(2, RoundingMode.HALF_UP).doubleValue() + "");
|
|
|
} catch (ScriptException e) {
|
|
|
Log.error(e.getMessage(), e);
|
|
|
}
|