he2802 2 năm trước cách đây
mục cha
commit
3384991a78

+ 1 - 1
zhongzheng-system/src/main/java/com/zhongzheng/modules/grade/service/impl/ClassGradeUserServiceImpl.java

@@ -2569,7 +2569,7 @@ public class ClassGradeUserServiceImpl extends ServiceImpl<ClassGradeUserMapper,
                     if ((Validator.isNotEmpty(classPeriodVo.getStudyStartTime()) && startTotalTime == 0L) || (Validator.isNotEmpty(classPeriodVo.getStudyStartTime()) && startTotalTime.longValue() > classPeriodVo.getStudyStartTime().longValue())) {
                         startTotalTime = classPeriodVo.getStudyStartTime();
                     }
-                    if (endTotalTime == 0L || (Validator.isNotEmpty(classPeriodVo.getStudyEndTime()) && endTotalTime.longValue() < classPeriodVo.getStudyEndTime().longValue())) {
+                    if ((Validator.isNotEmpty(classPeriodVo.getStudyEndTime()) &&endTotalTime == 0L) || (Validator.isNotEmpty(classPeriodVo.getStudyEndTime()) && endTotalTime.longValue() < classPeriodVo.getStudyEndTime().longValue())) {
                         endTotalTime = classPeriodVo.getStudyEndTime();
                     }
                     classPeriodVo.setPeriodStatus(userPeriodStatusVo.getPeriodStatus());