liusheng
2023-10-19 f80df09d8dee5c731cb42d4e3d18f627e32bdaea
ruoyi-project/src/main/java/com/ruoyi/project/service/impl/ServiceFundSharedServiceImpl.java
@@ -5,8 +5,10 @@
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.common.utils.StringUtils;
import com.ruoyi.project.domain.ServiceFundShared;
import com.ruoyi.project.domain.ServiceReimbursementShared;
import com.ruoyi.project.mapper.ServiceFundSharedMapper;
import com.ruoyi.project.service.IServiceFundSharedService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
@@ -15,12 +17,15 @@
 * 费用申请主Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-01-10
 * @date 2023-03-27
 */
@Service
public class ServiceFundSharedServiceImpl extends ServiceImpl<ServiceFundSharedMapper, ServiceFundShared> implements IServiceFundSharedService 
{
    @Autowired
    ServiceFundSharedMapper serviceFundSharedMapper;
    /**
     * 查询费用申请主列表
@@ -33,6 +38,9 @@
        LambdaQueryWrapper<ServiceFundShared> wrappers = Wrappers.lambdaQuery();
        if (serviceFundShared.getInfoid() != null){
            wrappers.eq(ServiceFundShared::getInfoid ,serviceFundShared.getInfoid());
        }
        if (Long.valueOf(serviceFundShared.getSerfunid()) != null){
            wrappers.eq(ServiceFundShared::getSerfunid ,serviceFundShared.getSerfunid());
        }
        if (StringUtils.isNotBlank(serviceFundShared.getDonorno())){
            wrappers.eq(ServiceFundShared::getDonorno ,serviceFundShared.getDonorno());
@@ -166,4 +174,25 @@
        return this.list(wrappers);
    }
    @Override
    public List<ServiceFundShared> queryFundShareList() {
        LambdaQueryWrapper<ServiceFundShared> wrappers = Wrappers.lambdaQuery();
        wrappers.eq(ServiceFundShared::getDel_flag, 0);
      //  wrappers.isNotNull(ServiceFundShared::getCxrjyj);
        return this.list(wrappers);
    }
    @Override
    public  List<ServiceFundShared> getFundShareInfoById(Long fundid)
    {
        return serviceFundSharedMapper.getFundShareInfoById(fundid);
        // return  null;
    }
    @Override
    public Boolean delfundsharedInfoById(Long fundId) {
        return serviceFundSharedMapper.delfundsharedInfoById(fundId);
    }
}