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 implements IServiceFundflowService { /** * 查询资金审批流程列表 * * @param serviceFundflow 资金审批流程 * @return 资金审批流程 */ @Override public List queryList(ServiceFundflow serviceFundflow) { LambdaQueryWrapper 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); } }