|
@@ -357,8 +357,13 @@ public class WhuDataSyncServiceImpl implements WhuDataSyncService {
|
|
|
// a为卷面成绩,y为赋分系数
|
|
|
String formula1 = "a+(100-a)/b";
|
|
|
for (ExamSyncStudentDto studentDto : examSyncStudentDtoList) {
|
|
|
+ double totalScoreDouble = Double.parseDouble(studentDto.getTotalScore());
|
|
|
+ // 0分不参与赋分计算
|
|
|
+ if (totalScoreDouble == 0) {
|
|
|
+ continue;
|
|
|
+ }
|
|
|
Map<String, Object> paramMap = new HashMap<>();
|
|
|
- paramMap.put("a", Double.parseDouble(studentDto.getTotalScore()));
|
|
|
+ paramMap.put("a", totalScoreDouble);
|
|
|
// 判断是否重修
|
|
|
Double bValue = StringUtils.isNotBlank(studentDto.getCxbj()) && "1".equals(studentDto.getCxbj()) && rebuildValue != null && rebuildValue.doubleValue() != 0 ? rebuildValue : value;
|
|
|
paramMap.put("b", bValue);
|
|
@@ -380,10 +385,14 @@ public class WhuDataSyncServiceImpl implements WhuDataSyncService {
|
|
|
String formula2_2 = "(a*50/b)*2";
|
|
|
|
|
|
for (ExamSyncStudentDto studentDto : examSyncStudentDtoList) {
|
|
|
+ Double totalScore = Double.valueOf(studentDto.getTotalScore());
|
|
|
+ // 0分不参与赋分计算
|
|
|
+ if (totalScore.doubleValue() == 0) {
|
|
|
+ continue;
|
|
|
+ }
|
|
|
// 判断是否重修
|
|
|
Double bValue = StringUtils.isNotBlank(studentDto.getCxbj()) && "1".equals(studentDto.getCxbj()) && rebuildValue != null && rebuildValue.doubleValue() != 0 ? rebuildValue : value;
|
|
|
Map<String, Object> paramMap = new HashMap<>();
|
|
|
- Double totalScore = Double.valueOf(studentDto.getTotalScore());
|
|
|
String tempAssignScore;
|
|
|
if (totalScore >= value) {
|
|
|
paramMap.put("a", totalScore.doubleValue());
|