liusheng
2023-08-08 c9927c06a608b4baf85669d9cbe570d7fffc361d
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
package com.ruoyi.project.service.impl;
 
import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import java.util.ArrayList;
import java.util.Map;
import com.ruoyi.common.utils.StringUtils;
import com.ruoyi.project.mapper.ServiceDonateconsolationfundMapper;
import com.ruoyi.project.domain.ServiceDonateconsolationfund;
import com.ruoyi.project.service.IServiceDonateconsolationfundService;
 
/**
 * 资金申请主表Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-01-18
 */
@Service
public class ServiceDonateconsolationfundServiceImpl extends ServiceImpl<ServiceDonateconsolationfundMapper, ServiceDonateconsolationfund> implements IServiceDonateconsolationfundService 
{
 
 
    /**
     * 查询资金申请主表列表
     * 
     * @param serviceDonateconsolationfund 资金申请主表
     * @return 资金申请主表
     */
    @Override
    public List<ServiceDonateconsolationfund> queryList(ServiceDonateconsolationfund serviceDonateconsolationfund) {
        LambdaQueryWrapper<ServiceDonateconsolationfund> wrappers = Wrappers.lambdaQuery();
        if (StringUtils.isNotBlank(serviceDonateconsolationfund.getDonorno())){
            wrappers.eq(ServiceDonateconsolationfund::getDonorno ,serviceDonateconsolationfund.getDonorno());
        }
        if (serviceDonateconsolationfund.getCreateTime() != null){
            wrappers.eq(ServiceDonateconsolationfund::getCreateTime ,serviceDonateconsolationfund.getCreateTime());
        }
        if (StringUtils.isNotBlank(serviceDonateconsolationfund.getName())){
            wrappers.like(ServiceDonateconsolationfund::getName ,serviceDonateconsolationfund.getName());
        }
        if (serviceDonateconsolationfund.getSex() != null){
            wrappers.eq(ServiceDonateconsolationfund::getSex ,serviceDonateconsolationfund.getSex());
        }
        if (StringUtils.isNotBlank(serviceDonateconsolationfund.getIdcardno())){
            wrappers.eq(ServiceDonateconsolationfund::getIdcardno ,serviceDonateconsolationfund.getIdcardno());
        }
        if (StringUtils.isNotBlank(serviceDonateconsolationfund.getDepositbank())){
            wrappers.eq(ServiceDonateconsolationfund::getDepositbank ,serviceDonateconsolationfund.getDepositbank());
        }
        if (StringUtils.isNotBlank(serviceDonateconsolationfund.getBankcardno())){
            wrappers.eq(ServiceDonateconsolationfund::getBankcardno ,serviceDonateconsolationfund.getBankcardno());
        }
        if (serviceDonateconsolationfund.getAmountrequested() != null){
            wrappers.eq(ServiceDonateconsolationfund::getAmountrequested ,serviceDonateconsolationfund.getAmountrequested());
        }
        if (StringUtils.isNotBlank(serviceDonateconsolationfund.getConsolationtype())){
            wrappers.eq(ServiceDonateconsolationfund::getConsolationtype ,serviceDonateconsolationfund.getConsolationtype());
        }
        if (StringUtils.isNotBlank(serviceDonateconsolationfund.getDeptmentno())){
            wrappers.eq(ServiceDonateconsolationfund::getDeptmentno ,serviceDonateconsolationfund.getDeptmentno());
        }
        if (StringUtils.isNotBlank(serviceDonateconsolationfund.getDeptmentname())){
            wrappers.like(ServiceDonateconsolationfund::getDeptmentname ,serviceDonateconsolationfund.getDeptmentname());
        }
        if (StringUtils.isNotBlank(serviceDonateconsolationfund.getRemark())){
            wrappers.eq(ServiceDonateconsolationfund::getRemark ,serviceDonateconsolationfund.getRemark());
        }
        if (StringUtils.isNotBlank(serviceDonateconsolationfund.getRecordstatus())){
            wrappers.eq(ServiceDonateconsolationfund::getRecordstatus ,serviceDonateconsolationfund.getRecordstatus());
        }
        if (StringUtils.isNotBlank(serviceDonateconsolationfund.getUploadflag())){
            wrappers.eq(ServiceDonateconsolationfund::getUploadflag ,serviceDonateconsolationfund.getUploadflag());
        }
        if (serviceDonateconsolationfund.getUploadtime() != null){
            wrappers.eq(ServiceDonateconsolationfund::getUploadtime ,serviceDonateconsolationfund.getUploadtime());
        }
        return this.list(wrappers);
    }
 
}