From 743f9a07a2cf0739385ff81b0b1fdfc1e0d644b6 Mon Sep 17 00:00:00 2001 From: wuchunlei Date: Wed, 28 May 2025 17:32:22 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8D=A1=E9=80=9A=E8=BF=87=E7=8E=87=E9=80=9A?= =?UTF-8?q?=E8=BF=87=E6=A0=87=E9=A2=98=E5=88=A4=E6=96=AD=E6=98=AF=E5=90=A6?= =?UTF-8?q?=E7=B2=BE=E8=8B=B1=E7=8F=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/peanut/modules/common/controller/ClassController.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/com/peanut/modules/common/controller/ClassController.java b/src/main/java/com/peanut/modules/common/controller/ClassController.java index 468e53b5..95bbdb01 100644 --- a/src/main/java/com/peanut/modules/common/controller/ClassController.java +++ b/src/main/java/com/peanut/modules/common/controller/ClassController.java @@ -475,7 +475,6 @@ public class ClassController { //结班后给合格学员发放证书 if ("0".equals(r.get("code").toString())){ ClassEntity classEntity = classEntityService.getById(params.get("classId").toString()); - ClassModel classModel = classModelService.getById(classEntity.getModelId()); List> userScoreList = classEntityService.userScoreList(params); if (userScoreList.size() > 0){ for (int i=0;i=0&& - "2".equals(classModel.getType())?i<=(Math.floor(userScoreList.size()*0.20)):i<=(Math.floor(userScoreList.size()*0.10))){ + classEntity.getTitle().contains("精英")?((i+1)<=(Math.floor(userScoreList.size()*0.20))):(i+1)<=(Math.floor(userScoreList.size()*0.10))){ type = "A"; } userCertificate.setType(type);