From 6a77daa0d146bf504b3c5b38c8807b10ab06779c Mon Sep 17 00:00:00 2001 From: wuchunlei Date: Wed, 2 Jul 2025 09:17:22 +0800 Subject: [PATCH] =?UTF-8?q?=E5=89=94=E9=99=A4=E5=9B=BD=E9=99=85=E4=B8=AD?= =?UTF-8?q?=E5=8C=BB=E5=B8=88=E3=80=81=E9=92=88=E7=81=B8=E5=B8=88=E5=90=8C?= =?UTF-8?q?=E6=97=B6=E8=8E=B7=E5=BE=97=E7=9A=84=E4=BA=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../master/controller/UserCertificateController.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/peanut/modules/master/controller/UserCertificateController.java b/src/main/java/com/peanut/modules/master/controller/UserCertificateController.java index 63df50f9..68c80025 100644 --- a/src/main/java/com/peanut/modules/master/controller/UserCertificateController.java +++ b/src/main/java/com/peanut/modules/master/controller/UserCertificateController.java @@ -50,13 +50,14 @@ public class UserCertificateController { //小班自考证书列表 @RequestMapping("/userClassAndZKCertificateList") public R userClassAndZKCertificateList(@RequestBody Map params) { - MPJLambdaWrapper wrapper = new MPJLambdaWrapper(); - wrapper.leftJoin(MyUserEntity.class,MyUserEntity::getId,UserCertificate::getUserId); + MPJLambdaWrapper wrapper = new MPJLambdaWrapper(); + wrapper.leftJoin(UserCertificate.class,UserCertificate::getUserId,MyUserEntity::getId); wrapper.in(UserCertificate::getLabelId,5,8); + wrapper.notExists("select 1 from (select count(1) c,user_id from user_certificate where label_id in (13,19) group by user_id having c>1) s where s.user_id = t.id "); wrapper.select("count(1) as count,user_id userId,name,tel,email"); wrapper.groupBy(UserCertificate::getUserId); wrapper.orderByDesc("count"); - Page> certificatePage = userCertificateService.pageMaps(new Page<>( + Page> certificatePage = myUserService.pageMaps(new Page<>( Long.parseLong(params.get("current").toString()),Long.parseLong(params.get("limit").toString())),wrapper); for (Map map:certificatePage.getRecords()){ map.put("certificate",userCertificateService.list(new LambdaQueryWrapper()