package com.ruoyi.project.service.impl;
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
import com.ruoyi.common.utils.StringUtils;
|
import com.ruoyi.project.domain.VExpertfeeDonor;
|
import com.ruoyi.project.mapper.VExpertfeeDonorMapper;
|
import com.ruoyi.project.service.IVExpertfeeDonorService;
|
import org.springframework.stereotype.Service;
|
|
import java.util.List;
|
|
/**
|
* VIEWService业务层处理
|
*
|
* @author ruoyi
|
* @date 2024-05-08
|
*/
|
@Service
|
public class VExpertfeeDonorServiceImpl extends ServiceImpl<VExpertfeeDonorMapper, VExpertfeeDonor> implements IVExpertfeeDonorService
|
{
|
|
|
/**
|
* 查询VIEW列表
|
*
|
* @param vExpertfeeDonor VIEW
|
* @return VIEW
|
*/
|
@Override
|
public List<VExpertfeeDonor> queryList(VExpertfeeDonor vExpertfeeDonor) {
|
LambdaQueryWrapper<VExpertfeeDonor> wrappers = Wrappers.lambdaQuery();
|
if (vExpertfeeDonor.getFundTaxId() != null){
|
wrappers.eq(VExpertfeeDonor::getFundTaxId ,vExpertfeeDonor.getFundTaxId());
|
}
|
if (vExpertfeeDonor.getInfoid() != null){
|
wrappers.eq(VExpertfeeDonor::getInfoid ,vExpertfeeDonor.getInfoid());
|
}
|
if (StringUtils.isNotBlank(vExpertfeeDonor.getDonorname())){
|
wrappers.like(VExpertfeeDonor::getDonorname ,vExpertfeeDonor.getDonorname());
|
}
|
if (vExpertfeeDonor.getPretaxamount() != null){
|
wrappers.eq(VExpertfeeDonor::getPretaxamount ,vExpertfeeDonor.getPretaxamount());
|
}
|
if (vExpertfeeDonor.getTaxamount() != null){
|
wrappers.eq(VExpertfeeDonor::getTaxamount ,vExpertfeeDonor.getTaxamount());
|
}
|
if (vExpertfeeDonor.getTaxedamount() != null){
|
wrappers.eq(VExpertfeeDonor::getTaxedamount ,vExpertfeeDonor.getTaxedamount());
|
}
|
if (vExpertfeeDonor.getDonormedicalcost() != null){
|
wrappers.eq(VExpertfeeDonor::getDonormedicalcost ,vExpertfeeDonor.getDonormedicalcost());
|
}
|
if (vExpertfeeDonor.getDonorbodycost() != null){
|
wrappers.eq(VExpertfeeDonor::getDonorbodycost ,vExpertfeeDonor.getDonorbodycost());
|
}
|
if (vExpertfeeDonor.getOrgangaincost() != null){
|
wrappers.eq(VExpertfeeDonor::getOrgangaincost ,vExpertfeeDonor.getOrgangaincost());
|
}
|
if (vExpertfeeDonor.getOrganmedicalcost() != null){
|
wrappers.eq(VExpertfeeDonor::getOrganmedicalcost ,vExpertfeeDonor.getOrganmedicalcost());
|
}
|
if (vExpertfeeDonor.getDonorcost() != null){
|
wrappers.eq(VExpertfeeDonor::getDonorcost ,vExpertfeeDonor.getDonorcost());
|
}
|
return this.list(wrappers);
|
}
|
|
}
|