Quellcode durchsuchen

fix:设置教师乐团课课酬时,学生数默认为1修改为默认为0

Joburgess vor 4 Jahren
Ursprung
Commit
21c6c7eb59

+ 6 - 6
mec-biz/src/main/java/com/ym/mec/biz/service/impl/TeacherDefaultMusicGroupSalaryServiceImpl.java

@@ -137,8 +137,8 @@ public class TeacherDefaultMusicGroupSalaryServiceImpl extends BaseServiceImpl<L
 											throw new BizException("课酬设置不完整");
 										}
 										Integer studentNum = classGroupStudentNumMap.get(ts.getClassGroupId());
-										if(studentNum == null || studentNum == 0){
-											studentNum = 1;
+										if(studentNum == null){
+											studentNum = 0;
 										}
 										if(studentNum>5){
 											studentNum = 5;
@@ -170,8 +170,8 @@ public class TeacherDefaultMusicGroupSalaryServiceImpl extends BaseServiceImpl<L
 											classGroupStudentNumMap.put(ts.getClassGroupId(), strs.length);
 										}
 										Integer studentNum = classGroupStudentNumMap.get(ts.getClassGroupId());
-										if(studentNum == null || studentNum == 0){
-											studentNum = 1;
+										if(studentNum == null){
+											studentNum = 0;
 										}
 										ts.setExpectSalary(ts.getExpectSalary().multiply(new BigDecimal(studentNum)));
 									}
@@ -200,8 +200,8 @@ public class TeacherDefaultMusicGroupSalaryServiceImpl extends BaseServiceImpl<L
 											classGroupStudentNumMap.put(ts.getClassGroupId(), strs.length);
 										}
 										Integer studentNum = classGroupStudentNumMap.get(ts.getClassGroupId());
-										if(studentNum == null || studentNum == 0){
-											studentNum = 1;
+										if(studentNum == null){
+											studentNum = 0;
 										}
 										ts.setExpectSalary(ts.getExpectSalary().multiply(new BigDecimal(studentNum)));
 									}