|
@@ -274,13 +274,13 @@ public class WebScaleResultController extends BaseController {
|
|
|
} else {
|
|
|
newResultJson = (Map<String, Object>) resultJson.get("newResultJson");
|
|
|
List<NewResultDto> newResultDtos = (List<NewResultDto>) newResultJson.get("result");
|
|
|
- for (int y = 1; y < newResultDtos.size(); y++) {
|
|
|
+ for (int y = 0; y < newResultDtos.size(); y++) {
|
|
|
List<ScaleMarksEntity> scaleMarksEntityList = this.scaleMarksService.getScaleMarksByFlagAndName(flag,newResultDtos.get(y).getName());
|
|
|
if(scaleMarksEntityList != null && scaleMarksEntityList.size() > 0 ){
|
|
|
//取最大值最小值
|
|
|
double minScore = Double.parseDouble(scaleMarksEntityList.get(0).getScoreStart());
|
|
|
double maxScore = Double.parseDouble(scaleMarksEntityList.get(0).getScoreEnd());
|
|
|
- for (int i = 1; i < scaleMarksEntityList.size(); i++) {
|
|
|
+ for (int i = 0; i < scaleMarksEntityList.size(); i++) {
|
|
|
if(Double.parseDouble(scaleMarksEntityList.get(i).getScoreStart()) < minScore){
|
|
|
minScore = Double.parseDouble(scaleMarksEntityList.get(i).getScoreStart());
|
|
|
}
|