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.CcOrderProfitSharingService 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.CcOrderProfitSharingDO;
import k.e.book.ddh.entity.CcOrderProfitSharingQueryDTO;
import k.e.book.ddh.mapper.CcOrderProfitSharingMapper;
import org.springframework.stereotype.Service;
/**
* @author kk
* @date 2023-05-21 11:04
*/
@Service
public class CcOrderProfitSharingService extends ServiceImpl {
public IPage selectProductPage(CcOrderProfitSharingQueryDTO dto) {
LambdaQueryWrapper qr = new LambdaQueryWrapper<>();
if(dto.getId() != null){
qr.eq(CcOrderProfitSharingDO::getId, dto.getId());
}
if(dto.getUserId() != null){
qr.eq(CcOrderProfitSharingDO::getUserId, dto.getUserId());
}
if(dto.getType() != null){
qr.eq(CcOrderProfitSharingDO::getType, dto.getType());
}
if(dto.getPayorderid() != null){
qr.eq(CcOrderProfitSharingDO::getPayorderid, dto.getPayorderid());
}
if(dto.getPaytype() != null){
qr.eq(CcOrderProfitSharingDO::getPaytype, dto.getPaytype());
}
if(dto.getMerchantNo() != null){
qr.eq(CcOrderProfitSharingDO::getMerchantNo, dto.getMerchantNo());
}
if(dto.getOrderid() != null){
qr.eq(CcOrderProfitSharingDO::getOrderid, dto.getOrderid());
}
if(dto.getTradeNo() != null){
qr.eq(CcOrderProfitSharingDO::getTradeNo, dto.getTradeNo());
}
if(dto.getBuyerId() != null){
qr.eq(CcOrderProfitSharingDO::getBuyerId, dto.getBuyerId());
}
if(dto.getSellerId() != null){
qr.eq(CcOrderProfitSharingDO::getSellerId, dto.getSellerId());
}
if(dto.getProductId() != null){
qr.eq(CcOrderProfitSharingDO::getProductId, dto.getProductId());
}
if(dto.getBoxId() != null){
qr.eq(CcOrderProfitSharingDO::getBoxId, dto.getBoxId());
}
if(dto.getMarketId() != null){
qr.eq(CcOrderProfitSharingDO::getMarketId, dto.getMarketId());
}
if(dto.getTotalAmount() != null){
qr.eq(CcOrderProfitSharingDO::getTotalAmount, dto.getTotalAmount());
}
if(dto.getPaidAmount() != null){
qr.eq(CcOrderProfitSharingDO::getPaidAmount, dto.getPaidAmount());
}
if(dto.getServiceFee() != null){
qr.eq(CcOrderProfitSharingDO::getServiceFee, dto.getServiceFee());
}
if(dto.getCopyrightFee() != null){
qr.eq(CcOrderProfitSharingDO::getCopyrightFee, dto.getCopyrightFee());
}
if(dto.getPaymentFee() != null){
qr.eq(CcOrderProfitSharingDO::getPaymentFee, dto.getPaymentFee());
}
if(dto.getPayeeType() != null){
qr.eq(CcOrderProfitSharingDO::getPayeeType, dto.getPayeeType());
}
if(dto.getPayFee() != null){
qr.eq(CcOrderProfitSharingDO::getPayFee, dto.getPayFee());
}
if(dto.getStatus() != null){
qr.eq(CcOrderProfitSharingDO::getStatus, dto.getStatus());
}
if(dto.getMemo() != null){
qr.eq(CcOrderProfitSharingDO::getMemo, dto.getMemo());
}
if(dto.getContent() != null){
qr.eq(CcOrderProfitSharingDO::getContent, dto.getContent());
}
if(dto.getCreatetime() != null){
qr.eq(CcOrderProfitSharingDO::getCreatetime, dto.getCreatetime());
}
if(dto.getUpdatetime() != null){
qr.eq(CcOrderProfitSharingDO::getUpdatetime, dto.getUpdatetime());
}
if(dto.getDeletetime() != null){
qr.eq(CcOrderProfitSharingDO::getDeletetime, dto.getDeletetime());
}
if(dto.getCreatedAt() != null){
qr.eq(CcOrderProfitSharingDO::getCreatedAt, dto.getCreatedAt());
}
if(dto.getUpdatedAt() != null){
qr.eq(CcOrderProfitSharingDO::getUpdatedAt, dto.getUpdatedAt());
}
if(dto.getDeletedAt() != null){
qr.eq(CcOrderProfitSharingDO::getDeletedAt, dto.getDeletedAt());
}
qr.orderByDesc(CcOrderProfitSharingDO::getId);
IPage page = new Page<>();
page.setCurrent(dto.getPage());
page.setSize(dto.getLimit());
return baseMapper.selectPage(page, qr);
}
}