过滤国际中医师和针灸师
This commit is contained in:
@@ -53,7 +53,10 @@ public class UserCertificateController {
|
||||
MPJLambdaWrapper<MyUserEntity> 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.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");
|
||||
@@ -62,7 +65,8 @@ public class UserCertificateController {
|
||||
for (Map<String,Object> map:certificatePage.getRecords()){
|
||||
map.put("certificate",userCertificateService.list(new LambdaQueryWrapper<UserCertificate>()
|
||||
.eq(UserCertificate::getUserId,map.get("userId"))
|
||||
.in(UserCertificate::getLabelId,5,8)));
|
||||
.in(UserCertificate::getLabelId,5,8,13,19)
|
||||
.orderByDesc(UserCertificate::getLabelId)));
|
||||
}
|
||||
return R.ok().put("certificateList", certificatePage);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user