he2802 2 年 前
コミット
a9480ca27f

+ 5 - 1
zhongzheng-system/src/main/java/com/zhongzheng/modules/user/service/impl/UserStudyRecordServiceImpl.java

@@ -387,7 +387,11 @@ public class UserStudyRecordServiceImpl extends ServiceImpl<UserStudyRecordMappe
                                 num = 3;
                             }
                             if(fullName.contains("继续教育")&&fullName.contains("施工现场专业人员")){
-                                num =  (int)Math.floor(videoTime.intValue()/(50*60))+1;
+                                if(videoTime.longValue()<=2760L){
+                                    num = 1;
+                                }else{
+                                    num =  (int)Math.floor(videoTime.intValue()/(45*60))+1;
+                                }
                             }
                             if(fullName.equals("继续教育一级建造师")){
                                 num = 1;