This commit is contained in:
wuchunlei
2024-06-24 17:29:00 +08:00
parent 06efb09cfc
commit 5b10b6e6d7

View File

@@ -42,7 +42,9 @@ public class MyUserServiceImpl extends ServiceImpl<MyUserDao, MyUserEntity> impl
wrapper.selectAs(UserVip::getStartTime,"startTime");
wrapper.selectAs(UserVip::getEndTime,"endTime");
wrapper.leftJoin(UserVip.class,UserVip::getUserId,MyUserEntity::getId);
if (!"0".equals(params.get("type").toString())){
wrapper.eq(MyUserEntity::getVip,params.get("type"));
}
wrapper.eq(UserVip::getState,0);
if (StringUtils.isNotBlank(params.get("userWords").toString())){
wrapper.and(t->t.like(MyUserEntity::getName,params.get("userWords")).or().like(MyUserEntity::getNickname,params.get("userWords"))