Browse Source

修改得分为double

‘xugp 1 year ago
parent
commit
97963a7149

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

@@ -46,6 +46,6 @@ public class EvaluationScoreCount extends Model {
     /**
      * 得分
      */
-    private String score;
+    private double score;
 
 }

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

@@ -94,7 +94,7 @@ public class ScoreCalculationSchedule {
 										.indicatorId(listEntry.getKey())
 										.organizationEvaluationRuleId(entry.getKey())
 										.organizationEvaluationId(organizationEvaluation.getId())
-										.score(calculation)
+										.score(Double.parseDouble(calculation))
 										.build();
 									save = iEvaluatioinScoreCountService.save(evaluationScoreCount);
 								}

+ 2 - 1
ims-service/ims-eval/src/main/java/com/ims/eval/service/impl/CalculateIndicatorItemInfoServiceImpl.java

@@ -15,6 +15,7 @@ import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.stereotype.Service;
 import org.springframework.transaction.annotation.Transactional;
 
+import javax.annotation.Resource;
 import java.util.*;
 import java.util.stream.Collectors;
 
@@ -30,7 +31,7 @@ import java.util.stream.Collectors;
 public class CalculateIndicatorItemInfoServiceImpl extends ServiceImpl<CalculateIndicatorItemInfoMapper, CalculateIndicatorItmeInfo> implements ICalculateIndicatorItemInfoService {
 
 
-	@Autowired
+	@Resource
 	private OrganizationEvaluationInfoMapper organizationEvaluationInfoMapper;
 
 	@Autowired