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;
|
import org.springframework.transaction.annotation.Transactional;
|
|
/**
|
* 资金审批流程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);
|
}
|
|
@Override
|
@Transactional(rollbackFor = Exception.class)
|
public Boolean saveData(ServiceFundflow serviceFundflow) {
|
boolean save = save(serviceFundflow);
|
return save;
|
}
|
|
}
|