‘xugp 1 yıl önce
ebeveyn
işleme
0b8ff93261

+ 2 - 2
ims-service/ims-eval/src/main/java/com/ims/eval/controller/EvaluationScoreCountController.java

@@ -55,10 +55,10 @@ public class EvaluationScoreCountController {
 
 	@PostMapping(value = "/save")
 	@ApiOperation(value = "新增(修改)", notes = "新增(修改)")
-	public R addAll(@RequestBody EvaluationScoreCount evaluationScoreCount) {
+	public R addAll(@RequestBody List<EvaluationScoreCount> evaluationScoreCount) {
 
 		try {
-			boolean b = iEvaluationScoreCountService.saveOrUpdate(evaluationScoreCount);
+			boolean b = iEvaluationScoreCountService.saveOrUpdateBatch(evaluationScoreCount);
 			if (b) {
 				return R.ok().data(b);
 			} else {

+ 0 - 1
ims-service/ims-eval/src/main/java/com/ims/eval/entity/EvaluationScoreCount.java

@@ -1,6 +1,5 @@
 package com.ims.eval.entity;
 
-import com.baomidou.mybatisplus.annotation.TableField;
 import com.baomidou.mybatisplus.extension.activerecord.Model;
 import lombok.*;
 

+ 1 - 2
ims-service/ims-eval/src/main/java/com/ims/eval/schedule/ScoreCalculationSchedule.java

@@ -184,8 +184,7 @@ public class ScoreCalculationSchedule {
 				if (!StringUtils.isNotEmpty(score)){
 					score = "0";
 				}
-			}
-			else {
+			} else if(intervalScoringTables.size() > 1){
 				//针对多区间评分
 				for (IntervalScoringTable intervalScoringTable : intervalScoringTables){
 					String range = intervalScoringTable.getRange();