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.CcIntegralGoodsService 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.CcIntegralGoodsDO;
import k.e.book.ddh.entity.CcIntegralGoodsQueryDTO;
import k.e.book.ddh.mapper.CcIntegralGoodsMapper;
import org.springframework.stereotype.Service;
/**
* @author kk
* @date 2023-05-21 11:04
*/
@Service
public class CcIntegralGoodsService extends ServiceImpl {
public IPage selectProductPage(CcIntegralGoodsQueryDTO dto) {
LambdaQueryWrapper qr = new LambdaQueryWrapper<>();
if(dto.getId() != null){
qr.eq(CcIntegralGoodsDO::getId, dto.getId());
}
if(dto.getType() != null){
qr.eq(CcIntegralGoodsDO::getType, dto.getType());
}
if(dto.getName() != null){
qr.eq(CcIntegralGoodsDO::getName, dto.getName());
}
if(dto.getImage() != null){
qr.eq(CcIntegralGoodsDO::getImage, dto.getImage());
}
if(dto.getProductId() != null){
qr.eq(CcIntegralGoodsDO::getProductId, dto.getProductId());
}
if(dto.getProductLongimage() != null){
qr.eq(CcIntegralGoodsDO::getProductLongimage, dto.getProductLongimage());
}
if(dto.getProductSourcefile() != null){
qr.eq(CcIntegralGoodsDO::getProductSourcefile, dto.getProductSourcefile());
}
if(dto.getProductCerturl() != null){
qr.eq(CcIntegralGoodsDO::getProductCerturl, dto.getProductCerturl());
}
if(dto.getProductCerttxhash() != null){
qr.eq(CcIntegralGoodsDO::getProductCerttxhash, dto.getProductCerttxhash());
}
if(dto.getModel3d() != null){
qr.eq(CcIntegralGoodsDO::getModel3d, dto.getModel3d());
}
if(dto.getModel3dsquare() != null){
qr.eq(CcIntegralGoodsDO::getModel3dsquare, dto.getModel3dsquare());
}
if(dto.getModel3dfile() != null){
qr.eq(CcIntegralGoodsDO::getModel3dfile, dto.getModel3dfile());
}
if(dto.getUserMaxLimit() != null){
qr.eq(CcIntegralGoodsDO::getUserMaxLimit, dto.getUserMaxLimit());
}
if(dto.getAmount() != null){
qr.eq(CcIntegralGoodsDO::getAmount, dto.getAmount());
}
if(dto.getScore() != null){
qr.eq(CcIntegralGoodsDO::getScore, dto.getScore());
}
if(dto.getQuantity() != null){
qr.eq(CcIntegralGoodsDO::getQuantity, dto.getQuantity());
}
if(dto.getSoldQty() != null){
qr.eq(CcIntegralGoodsDO::getSoldQty, dto.getSoldQty());
}
if(dto.getStatus() != null){
qr.eq(CcIntegralGoodsDO::getStatus, dto.getStatus());
}
if(dto.getTagType() != null){
qr.eq(CcIntegralGoodsDO::getTagType, dto.getTagType());
}
if(dto.getStarttime() != null){
qr.eq(CcIntegralGoodsDO::getStarttime, dto.getStarttime());
}
if(dto.getEndtime() != null){
qr.eq(CcIntegralGoodsDO::getEndtime, dto.getEndtime());
}
if(dto.getSort() != null){
qr.eq(CcIntegralGoodsDO::getSort, dto.getSort());
}
if(dto.getContent() != null){
qr.eq(CcIntegralGoodsDO::getContent, dto.getContent());
}
if(dto.getCreatetime() != null){
qr.eq(CcIntegralGoodsDO::getCreatetime, dto.getCreatetime());
}
if(dto.getUpdatetime() != null){
qr.eq(CcIntegralGoodsDO::getUpdatetime, dto.getUpdatetime());
}
if(dto.getDeletetime() != null){
qr.eq(CcIntegralGoodsDO::getDeletetime, dto.getDeletetime());
}
if(dto.getRelationProductId() != null){
qr.eq(CcIntegralGoodsDO::getRelationProductId, dto.getRelationProductId());
}
if(dto.getLogic() != null){
qr.eq(CcIntegralGoodsDO::getLogic, dto.getLogic());
}
if(dto.getIsSuperposition() != null){
qr.eq(CcIntegralGoodsDO::getIsSuperposition, dto.getIsSuperposition());
}
qr.orderByDesc(CcIntegralGoodsDO::getId);
IPage page = new Page<>();
page.setCurrent(dto.getPage());
page.setSize(dto.getLimit());
return baseMapper.selectPage(page, qr);
}
}