Browse Source

1、添加教务老师字段
2、布置作业

Joburgess 5 năm trước cách đây
mục cha
commit
5dc3d02ee5

+ 2 - 2
mec-biz/src/main/java/com/ym/mec/biz/service/impl/CourseScheduleTeacherSalaryServiceImpl.java

@@ -690,12 +690,12 @@ public class CourseScheduleTeacherSalaryServiceImpl extends BaseServiceImpl<Long
         BigDecimal studentNumDecimal = new BigDecimal(studentNum);
         BigDecimal oldStudentNumDecimal = new BigDecimal(vipGroupCategory.getStudentNum());
 
-        if(Objects.nonNull(onlineTeacherSalary)){
+        if(Objects.nonNull(onlineTeacherSalary)||onlineTeacherSalary.compareTo(BigDecimal.ZERO)<=0){
             onlineTeacherSalary = onlineTeacherSalary
                     .divide(oldStudentNumDecimal, CommonConstants.DECIMAL_PLACE,BigDecimal.ROUND_DOWN)
                     .multiply(studentNumDecimal).setScale(0, BigDecimal.ROUND_HALF_UP);
         }
-        if(Objects.nonNull(offlineTeacherSalary)){
+        if(Objects.nonNull(offlineTeacherSalary)||offlineTeacherSalary.compareTo(BigDecimal.ZERO)<=0){
             offlineTeacherSalary = offlineTeacherSalary
                     .divide(oldStudentNumDecimal,CommonConstants.DECIMAL_PLACE,BigDecimal.ROUND_DOWN)
                     .multiply(studentNumDecimal).setScale(0,BigDecimal.ROUND_HALF_UP);