All Downloads are FREE. Search and download functionalities are using the official Maven repository.
Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
k.e.book.ddh.service.CceeeUserService Maven / Gradle / Ivy
package k.e.book.ddh.service;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import k.e.book.ddh.entity.CceeeUserDO;
import k.e.book.ddh.entity.CceeeUserQueryDTO;
import k.e.book.ddh.mapper.CceeeUserMapper;
import org.springframework.stereotype.Service;
/**
* @author kk
* @date 2023-05-21 11:04
*/
@Service
public class CceeeUserService extends ServiceImpl {
public IPage selectProductPage(CceeeUserQueryDTO dto) {
LambdaQueryWrapper qr = new LambdaQueryWrapper<>();
if(dto.getId() != null){
qr.eq(CceeeUserDO::getId, dto.getId());
}
if(dto.getGroupId() != null){
qr.eq(CceeeUserDO::getGroupId, dto.getGroupId());
}
if(dto.getUsername() != null){
qr.eq(CceeeUserDO::getUsername, dto.getUsername());
}
if(dto.getNickname() != null){
qr.eq(CceeeUserDO::getNickname, dto.getNickname());
}
if(dto.getPassword() != null){
qr.eq(CceeeUserDO::getPassword, dto.getPassword());
}
if(dto.getSalt() != null){
qr.eq(CceeeUserDO::getSalt, dto.getSalt());
}
if(dto.getEmail() != null){
qr.eq(CceeeUserDO::getEmail, dto.getEmail());
}
if(dto.getMobile() != null){
qr.eq(CceeeUserDO::getMobile, dto.getMobile());
}
if(dto.getAvatar() != null){
qr.eq(CceeeUserDO::getAvatar, dto.getAvatar());
}
if(dto.getLevel() != null){
qr.eq(CceeeUserDO::getLevel, dto.getLevel());
}
if(dto.getGender() != null){
qr.eq(CceeeUserDO::getGender, dto.getGender());
}
if(dto.getBirthday() != null){
qr.eq(CceeeUserDO::getBirthday, dto.getBirthday());
}
if(dto.getBio() != null){
qr.eq(CceeeUserDO::getBio, dto.getBio());
}
if(dto.getMoney() != null){
qr.eq(CceeeUserDO::getMoney, dto.getMoney());
}
if(dto.getScore() != null){
qr.eq(CceeeUserDO::getScore, dto.getScore());
}
if(dto.getSuccessions() != null){
qr.eq(CceeeUserDO::getSuccessions, dto.getSuccessions());
}
if(dto.getMaxsuccessions() != null){
qr.eq(CceeeUserDO::getMaxsuccessions, dto.getMaxsuccessions());
}
if(dto.getPrevtime() != null){
qr.eq(CceeeUserDO::getPrevtime, dto.getPrevtime());
}
if(dto.getLogintime() != null){
qr.eq(CceeeUserDO::getLogintime, dto.getLogintime());
}
if(dto.getLoginip() != null){
qr.eq(CceeeUserDO::getLoginip, dto.getLoginip());
}
if(dto.getLoginfailure() != null){
qr.eq(CceeeUserDO::getLoginfailure, dto.getLoginfailure());
}
if(dto.getJoinip() != null){
qr.eq(CceeeUserDO::getJoinip, dto.getJoinip());
}
if(dto.getJointime() != null){
qr.eq(CceeeUserDO::getJointime, dto.getJointime());
}
if(dto.getCreatetime() != null){
qr.eq(CceeeUserDO::getCreatetime, dto.getCreatetime());
}
if(dto.getUpdatetime() != null){
qr.eq(CceeeUserDO::getUpdatetime, dto.getUpdatetime());
}
if(dto.getToken() != null){
qr.eq(CceeeUserDO::getToken, dto.getToken());
}
if(dto.getStatus() != null){
qr.eq(CceeeUserDO::getStatus, dto.getStatus());
}
if(dto.getVerification() != null){
qr.eq(CceeeUserDO::getVerification, dto.getVerification());
}
if(dto.getPayPassword() != null){
qr.eq(CceeeUserDO::getPayPassword, dto.getPayPassword());
}
if(dto.getInvitedConsumeMoney() != null){
qr.eq(CceeeUserDO::getInvitedConsumeMoney, dto.getInvitedConsumeMoney());
}
if(dto.getIsAuthentication() != null){
qr.eq(CceeeUserDO::getIsAuthentication, dto.getIsAuthentication());
}
if(dto.getCredits() != null){
qr.eq(CceeeUserDO::getCredits, dto.getCredits());
}
if(dto.getBindCardStatus() != null){
qr.eq(CceeeUserDO::getBindCardStatus, dto.getBindCardStatus());
}
if(dto.getBackgroundImg() != null){
qr.eq(CceeeUserDO::getBackgroundImg, dto.getBackgroundImg());
}
if(dto.getCollectShow() != null){
qr.eq(CceeeUserDO::getCollectShow, dto.getCollectShow());
}
if(dto.getPersonalIntroduction() != null){
qr.eq(CceeeUserDO::getPersonalIntroduction, dto.getPersonalIntroduction());
}
if(dto.getAvatarFrame() != null){
qr.eq(CceeeUserDO::getAvatarFrame, dto.getAvatarFrame());
}
if(dto.getApproveType() != null){
qr.eq(CceeeUserDO::getApproveType, dto.getApproveType());
}
if(dto.getOpenId() != null){
qr.eq(CceeeUserDO::getOpenId, dto.getOpenId());
}
qr.orderByDesc(CceeeUserDO::getId);
IPage page = new Page<>();
page.setCurrent(dto.getPage());
page.setSize(dto.getLimit());
return baseMapper.selectPage(page, qr);
}
}