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.BaseAnnextype; import com.ruoyi.project.mapper.BaseAnnextypeMapper; import com.ruoyi.project.service.IBaseAnnextypeService; import org.springframework.stereotype.Service; import java.util.List; /** * 捐献附件Service业务层处理 * * @author ruoyi * @date 2023-11-10 */ @Service public class BaseAnnextypeServiceImpl extends ServiceImpl implements IBaseAnnextypeService { /** * 查询捐献附件列表 * * @param baseAnnextype 捐献附件 * @return 捐献附件 */ @Override public List queryList(BaseAnnextype baseAnnextype) { LambdaQueryWrapper wrappers = Wrappers.lambdaQuery(); if (StringUtils.isNotBlank(baseAnnextype.getDonationcategory())){ wrappers.eq(BaseAnnextype::getDonationcategory ,baseAnnextype.getDonationcategory()); } if (StringUtils.isNotBlank(baseAnnextype.getAnnextype())){ wrappers.eq(BaseAnnextype::getAnnextype ,baseAnnextype.getAnnextype()); } if (StringUtils.isNotBlank(baseAnnextype.getAnnexname())){ wrappers.like(BaseAnnextype::getAnnexname ,baseAnnextype.getAnnexname()); } if (baseAnnextype.getNeed() != null){ wrappers.eq(BaseAnnextype::getNeed ,baseAnnextype.getNeed()); } if (baseAnnextype.getSeqno() != null){ wrappers.eq(BaseAnnextype::getSeqno ,baseAnnextype.getSeqno()); } return this.list(wrappers); } }