package com.ruoyi.web.service;


import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.web.domain.dto.subsidyProjects.SubsidyProjectsAddRequest;
import com.ruoyi.web.domain.dto.subsidyProjects.SubsidyProjectsEditRequest;
import com.ruoyi.web.domain.dto.subsidyProjects.SubsidyProjectsQueryRequest;
import com.ruoyi.web.domain.entity.SubsidyProjects;
import com.ruoyi.web.domain.vo.SubsidyProjectsVO;


/**
 * 惠农补贴接口
 */
public interface SubsidyProjectsService extends IService<SubsidyProjects> {

    Long addSubsidyProjects(SubsidyProjectsAddRequest subsidyProjectsAddRequest);

    boolean deleteSubsidyProjects(String ids);

    void editSubsidyProjects(SubsidyProjectsEditRequest subsidyProjectsEditRequest);

    /**
     * 根据id查询
     *
     * @param id
     * @return
     */
    SubsidyProjectsVO getSubsidyProjectsById(int id);

    /**
     * 分页获取补贴-项目列表
     *
     * @param subsidyProjectsQueryRequest
     * @return
     */
    Page<SubsidyProjectsVO> getListSubsidyProjectsByPage(SubsidyProjectsQueryRequest subsidyProjectsQueryRequest);


    /**
     * 获取查询条件
     *
     * @param subsidyProjectsQueryRequest
     * @return
     */
    QueryWrapper<SubsidyProjects> getQueryWrapper(SubsidyProjectsQueryRequest subsidyProjectsQueryRequest);
}
