liusheng
2023-10-18 a54e249f9fedf3633825dd7a6846621df7b110b9
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
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.ServiceFundflowMapper;
import com.ruoyi.project.domain.ServiceFundflow;
import com.ruoyi.project.service.IServiceFundflowService;
 
/**
 * 资金审批流程Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-04-27
 */
@Service
public class ServiceFundflowServiceImpl extends ServiceImpl<ServiceFundflowMapper, ServiceFundflow> implements IServiceFundflowService 
{
 
 
    /**
     * 查询资金审批流程列表
     * 
     * @param serviceFundflow 资金审批流程
     * @return 资金审批流程
     */
    @Override
    public List<ServiceFundflow> queryList(ServiceFundflow serviceFundflow) {
        LambdaQueryWrapper<ServiceFundflow> wrappers = Wrappers.lambdaQuery();
        if (serviceFundflow.getFundid() != null){
            wrappers.eq(ServiceFundflow::getFundid ,serviceFundflow.getFundid());
        }
        if (StringUtils.isNotBlank(serviceFundflow.getCheckuserno())){
            wrappers.eq(ServiceFundflow::getCheckuserno ,serviceFundflow.getCheckuserno());
        }
        if (StringUtils.isNotBlank(serviceFundflow.getCheckusername())){
            wrappers.like(ServiceFundflow::getCheckusername ,serviceFundflow.getCheckusername());
        }
        if (StringUtils.isNotBlank(serviceFundflow.getFlowcontent())){
            wrappers.eq(ServiceFundflow::getFlowcontent ,serviceFundflow.getFlowcontent());
        }
        if (serviceFundflow.getFlowconclusion() != null){
            wrappers.eq(ServiceFundflow::getFlowconclusion ,serviceFundflow.getFlowconclusion());
        }
        if (serviceFundflow.getFundtype() != null){
            wrappers.eq(ServiceFundflow::getFundtype ,serviceFundflow.getFundtype());
        }
        if (StringUtils.isNotBlank(serviceFundflow.getApplytype())){
            wrappers.eq(ServiceFundflow::getApplytype ,serviceFundflow.getApplytype());
        }
        return this.list(wrappers);
    }
 
}