liusheng
2025-12-26 2944ea778f0fc87c8e09ae47200d9de8069049e3
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
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<BaseAnnextypeMapper, BaseAnnextype> implements IBaseAnnextypeService {
 
 
    /**
     * 查询捐献附件列表
     *
     * @param baseAnnextype 捐献附件
     * @return 捐献附件
     */
    @Override
    public List<BaseAnnextype> queryList(BaseAnnextype baseAnnextype) {
        LambdaQueryWrapper<BaseAnnextype> 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());
        }
        if (StringUtils.isNotBlank(baseAnnextype.getCaseNo())) {
            wrappers.eq(BaseAnnextype::getCaseNo, baseAnnextype.getCaseNo());
        }
        return this.list(wrappers);
    }
 
}