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);
|
}
|
|
}
|