liusheng
2024-03-19 519886a70d630e3cdd6c0f40f55fcebc6e780dc5
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
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.ServiceDistributedetailMapper;
import com.ruoyi.project.domain.ServiceDistributedetail;
import com.ruoyi.project.service.IServiceDistributedetailService;
 
/**
 * 专家费用分发汇总明细Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-03-01
 */
@Service
public class ServiceDistributedetailServiceImpl extends ServiceImpl<ServiceDistributedetailMapper, ServiceDistributedetail> implements IServiceDistributedetailService 
{
 
 
    /**
     * 查询专家费用分发汇总明细列表
     * 
     * @param serviceDistributedetail 专家费用分发汇总明细
     * @return 专家费用分发汇总明细
     */
    @Override
    public List<ServiceDistributedetail> queryList(ServiceDistributedetail serviceDistributedetail) {
        LambdaQueryWrapper<ServiceDistributedetail> wrappers = Wrappers.lambdaQuery();
        if (StringUtils.isNotBlank(serviceDistributedetail.getBeneficiaryname())){
            wrappers.like(ServiceDistributedetail::getBeneficiaryname ,serviceDistributedetail.getBeneficiaryname());
        }
        if (StringUtils.isNotBlank(serviceDistributedetail.getBeneficiaryno())){
            wrappers.eq(ServiceDistributedetail::getBeneficiaryno ,serviceDistributedetail.getBeneficiaryno());
        }
        if (StringUtils.isNotBlank(serviceDistributedetail.getUnitname())){
            wrappers.like(ServiceDistributedetail::getUnitname ,serviceDistributedetail.getUnitname());
        }
        if (StringUtils.isNotBlank(serviceDistributedetail.getUnitno())){
            wrappers.eq(ServiceDistributedetail::getUnitno ,serviceDistributedetail.getUnitno());
        }
        if (StringUtils.isNotBlank(serviceDistributedetail.getUnituserno())){
            wrappers.eq(ServiceDistributedetail::getUnituserno ,serviceDistributedetail.getUnituserno());
        }
        if (StringUtils.isNotBlank(serviceDistributedetail.getApplytype())){
            wrappers.eq(ServiceDistributedetail::getApplytype ,serviceDistributedetail.getApplytype());
        }
        if (serviceDistributedetail.getItemid() != null){
            wrappers.eq(ServiceDistributedetail::getItemid ,serviceDistributedetail.getItemid());
        }
        if (StringUtils.isNotBlank(serviceDistributedetail.getItemname())){
            wrappers.like(ServiceDistributedetail::getItemname ,serviceDistributedetail.getItemname());
        }
        if (StringUtils.isNotBlank(serviceDistributedetail.getItemtype())){
            wrappers.eq(ServiceDistributedetail::getItemtype ,serviceDistributedetail.getItemtype());
        }
        if (StringUtils.isNotBlank(serviceDistributedetail.getRecordstatus())){
            wrappers.eq(ServiceDistributedetail::getRecordstatus ,serviceDistributedetail.getRecordstatus());
        }
        if (serviceDistributedetail.getCreateTime() != null){
            wrappers.eq(ServiceDistributedetail::getCreateTime ,serviceDistributedetail.getCreateTime());
        }
        if (StringUtils.isNotBlank(serviceDistributedetail.getUploadflag())){
            wrappers.eq(ServiceDistributedetail::getUploadflag ,serviceDistributedetail.getUploadflag());
        }
        return this.list(wrappers);
    }
 
}