hjl
2024-07-19 c832cae4de3ff53e3b80cad317fbdd84de46c02d
ruoyi-service/ruoyi-study/src/main/java/com/ruoyi/study/controller/TStudyController.java
@@ -1011,6 +1011,7 @@
            Integer type = exitLearn.getType();
            // 更新用户学习完成率
            if (Constants.ONE.equals(type)) {
                if (userStudy.getListen() != 100) {
                if (1 == exitLearn.getSchedule()) {
                    userStudy.setListen(Constants.BURDEN_ONE);
                } else {
@@ -1025,7 +1026,9 @@
                        userStudy.setListen(i);
                    }
                }
                }
            } else if (Constants.TWO.equals(type)) {
                if (userStudy.getLook() != 100) {
                if (1 == exitLearn.getSchedule()) {
                    userStudy.setLook(Constants.BURDEN_ONE);
                } else {
@@ -1039,7 +1042,9 @@
                        }
                    }
                }
                }
            } else if (Constants.THREE.equals(type)) {
                if (userStudy.getInduction() != 100) {
                if (1 == exitLearn.getSchedule()) {
                    userStudy.setInduction(Constants.BURDEN_ONE);
                } else {
@@ -1053,7 +1058,9 @@
                        }
                    }
                }
                }
            } else if (Constants.FOUR.equals(type)) {
                if (userStudy.getAnswer() != 100) {
                if (1 == exitLearn.getSchedule()) {
                    userStudy.setAnswer(Constants.BURDEN_ONE);
                } else {
@@ -1066,7 +1073,9 @@
                        }
                    }
                }
                }
            } else if (Constants.FIVE.equals(type)) {
                if (userStudy.getPair() != 100) {
                if (1 == exitLearn.getSchedule()) {
                    userStudy.setPair(Constants.BURDEN_ONE);
                } else {
@@ -1080,7 +1089,7 @@
                        }
                    }
                }
                }
            }
        }
        // 学习时长更新