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.ServiceDonateorganstatics;
|
import com.ruoyi.project.mapper.ServiceDonateorganstaticsMapper;
|
import com.ruoyi.project.service.IServiceDonateorganstaticsService;
|
import org.springframework.stereotype.Service;
|
|
import java.util.List;
|
|
/**
|
* 捐献案例器官列Service业务层处理
|
*
|
* @author ruoyi
|
* @date 2023-12-27
|
*/
|
@Service
|
public class ServiceDonateorganstaticsServiceImpl extends ServiceImpl<ServiceDonateorganstaticsMapper, ServiceDonateorganstatics> implements IServiceDonateorganstaticsService
|
{
|
|
|
/**
|
* 查询捐献案例器官列列表
|
*
|
* @param serviceDonateorganstatics 捐献案例器官列
|
* @return 捐献案例器官列
|
*/
|
@Override
|
public List<ServiceDonateorganstatics> queryList(ServiceDonateorganstatics serviceDonateorganstatics) {
|
LambdaQueryWrapper<ServiceDonateorganstatics> wrappers = Wrappers.lambdaQuery();
|
if (serviceDonateorganstatics.getInfoid() != null){
|
wrappers.eq(ServiceDonateorganstatics::getInfoid ,serviceDonateorganstatics.getInfoid());
|
}
|
if (StringUtils.isNotBlank(serviceDonateorganstatics.getDonateno())){
|
wrappers.eq(ServiceDonateorganstatics::getDonateno ,serviceDonateorganstatics.getDonateno());
|
}
|
if (serviceDonateorganstatics.getDonatetime() != null){
|
wrappers.eq(ServiceDonateorganstatics::getDonatetime ,serviceDonateorganstatics.getDonatetime());
|
}
|
if (StringUtils.isNotBlank(serviceDonateorganstatics.getName())){
|
wrappers.like(ServiceDonateorganstatics::getName ,serviceDonateorganstatics.getName());
|
}
|
if (serviceDonateorganstatics.getBorthdate() != null){
|
wrappers.eq(ServiceDonateorganstatics::getBorthdate ,serviceDonateorganstatics.getBorthdate());
|
}
|
if (StringUtils.isNotBlank(serviceDonateorganstatics.getSex())){
|
wrappers.eq(ServiceDonateorganstatics::getSex ,serviceDonateorganstatics.getSex());
|
}
|
if (StringUtils.isNotBlank(serviceDonateorganstatics.getAge())){
|
wrappers.eq(ServiceDonateorganstatics::getAge ,serviceDonateorganstatics.getAge());
|
}
|
if (StringUtils.isNotBlank(serviceDonateorganstatics.getDonationcategory())){
|
wrappers.eq(ServiceDonateorganstatics::getDonationcategory ,serviceDonateorganstatics.getDonationcategory());
|
}
|
if (StringUtils.isNotBlank(serviceDonateorganstatics.getHospitalC22())){
|
wrappers.eq(ServiceDonateorganstatics::getHospitalC22 ,serviceDonateorganstatics.getHospitalC22());
|
}
|
if (serviceDonateorganstatics.getFeeC22() != null){
|
wrappers.eq(ServiceDonateorganstatics::getFeeC22 ,serviceDonateorganstatics.getFeeC22());
|
}
|
if (StringUtils.isNotBlank(serviceDonateorganstatics.getHospitalC22l())){
|
wrappers.eq(ServiceDonateorganstatics::getHospitalC22l ,serviceDonateorganstatics.getHospitalC22l());
|
}
|
if (serviceDonateorganstatics.getFeeC22l() != null){
|
wrappers.eq(ServiceDonateorganstatics::getFeeC22l ,serviceDonateorganstatics.getFeeC22l());
|
}
|
if (StringUtils.isNotBlank(serviceDonateorganstatics.getHospitalC22le())){
|
wrappers.eq(ServiceDonateorganstatics::getHospitalC22le ,serviceDonateorganstatics.getHospitalC22le());
|
}
|
if (serviceDonateorganstatics.getFeeC22le() != null){
|
wrappers.eq(ServiceDonateorganstatics::getFeeC22le ,serviceDonateorganstatics.getFeeC22le());
|
}
|
if (StringUtils.isNotBlank(serviceDonateorganstatics.getHospitalC22r())){
|
wrappers.eq(ServiceDonateorganstatics::getHospitalC22r ,serviceDonateorganstatics.getHospitalC22r());
|
}
|
if (serviceDonateorganstatics.getFeeC22r() != null){
|
wrappers.eq(ServiceDonateorganstatics::getFeeC22r ,serviceDonateorganstatics.getFeeC22r());
|
}
|
if (StringUtils.isNotBlank(serviceDonateorganstatics.getHospitalC64l())){
|
wrappers.eq(ServiceDonateorganstatics::getHospitalC64l ,serviceDonateorganstatics.getHospitalC64l());
|
}
|
if (serviceDonateorganstatics.getFeeC64l() != null){
|
wrappers.eq(ServiceDonateorganstatics::getFeeC64l ,serviceDonateorganstatics.getFeeC64l());
|
}
|
if (StringUtils.isNotBlank(serviceDonateorganstatics.getHospitalC64r())){
|
wrappers.eq(ServiceDonateorganstatics::getHospitalC64r ,serviceDonateorganstatics.getHospitalC64r());
|
}
|
if (serviceDonateorganstatics.getFeeC64r() != null){
|
wrappers.eq(ServiceDonateorganstatics::getFeeC64r ,serviceDonateorganstatics.getFeeC64r());
|
}
|
if (StringUtils.isNotBlank(serviceDonateorganstatics.getHospitalC38())){
|
wrappers.eq(ServiceDonateorganstatics::getHospitalC38 ,serviceDonateorganstatics.getHospitalC38());
|
}
|
if (serviceDonateorganstatics.getFeeC38() != null){
|
wrappers.eq(ServiceDonateorganstatics::getFeeC38 ,serviceDonateorganstatics.getFeeC38());
|
}
|
if (StringUtils.isNotBlank(serviceDonateorganstatics.getHospitalC34())){
|
wrappers.eq(ServiceDonateorganstatics::getHospitalC34 ,serviceDonateorganstatics.getHospitalC34());
|
}
|
if (serviceDonateorganstatics.getFeeC34() != null){
|
wrappers.eq(ServiceDonateorganstatics::getFeeC34 ,serviceDonateorganstatics.getFeeC34());
|
}
|
if (StringUtils.isNotBlank(serviceDonateorganstatics.getHospitalC34l())){
|
wrappers.eq(ServiceDonateorganstatics::getHospitalC34l ,serviceDonateorganstatics.getHospitalC34l());
|
}
|
if (serviceDonateorganstatics.getFeeC34l() != null){
|
wrappers.eq(ServiceDonateorganstatics::getFeeC34l ,serviceDonateorganstatics.getFeeC34l());
|
}
|
if (StringUtils.isNotBlank(serviceDonateorganstatics.getHospitalC34r())){
|
wrappers.eq(ServiceDonateorganstatics::getHospitalC34r ,serviceDonateorganstatics.getHospitalC34r());
|
}
|
if (serviceDonateorganstatics.getFeeC34r() != null){
|
wrappers.eq(ServiceDonateorganstatics::getFeeC34r ,serviceDonateorganstatics.getFeeC34r());
|
}
|
if (StringUtils.isNotBlank(serviceDonateorganstatics.getHospitalC17())){
|
wrappers.eq(ServiceDonateorganstatics::getHospitalC17 ,serviceDonateorganstatics.getHospitalC17());
|
}
|
if (serviceDonateorganstatics.getFeeC17() != null){
|
wrappers.eq(ServiceDonateorganstatics::getFeeC17 ,serviceDonateorganstatics.getFeeC17());
|
}
|
if (StringUtils.isNotBlank(serviceDonateorganstatics.getHospitalC69l())){
|
wrappers.eq(ServiceDonateorganstatics::getHospitalC69l ,serviceDonateorganstatics.getHospitalC69l());
|
}
|
if (serviceDonateorganstatics.getFeeC69l() != null){
|
wrappers.eq(ServiceDonateorganstatics::getFeeC69l ,serviceDonateorganstatics.getFeeC69l());
|
}
|
if (StringUtils.isNotBlank(serviceDonateorganstatics.getHospitalC69r())){
|
wrappers.eq(ServiceDonateorganstatics::getHospitalC69r ,serviceDonateorganstatics.getHospitalC69r());
|
}
|
if (serviceDonateorganstatics.getFeeC69r() != null){
|
wrappers.eq(ServiceDonateorganstatics::getFeeC69r ,serviceDonateorganstatics.getFeeC69r());
|
}
|
if (StringUtils.isNotBlank(serviceDonateorganstatics.getHospitalC01())){
|
wrappers.eq(ServiceDonateorganstatics::getHospitalC01 ,serviceDonateorganstatics.getHospitalC01());
|
}
|
if (serviceDonateorganstatics.getFeeC01() != null){
|
wrappers.eq(ServiceDonateorganstatics::getFeeC01 ,serviceDonateorganstatics.getFeeC01());
|
}
|
if (StringUtils.isNotBlank(serviceDonateorganstatics.getUnitBody())){
|
wrappers.eq(ServiceDonateorganstatics::getUnitBody ,serviceDonateorganstatics.getUnitBody());
|
}
|
if (serviceDonateorganstatics.getFeeCount() != null){
|
wrappers.eq(ServiceDonateorganstatics::getFeeCount ,serviceDonateorganstatics.getFeeCount());
|
}
|
return this.list(wrappers);
|
}
|
|
}
|