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.villageSpecial.VillageSpecialAddRequest;
import com.ruoyi.web.domain.dto.villageSpecial.VillageSpecialEditRequest;
import com.ruoyi.web.domain.dto.villageSpecial.VillageSpecialQueryRequest;
import com.ruoyi.web.domain.entity.ProductionData;
import com.ruoyi.web.domain.entity.VillageSpecial;
import com.ruoyi.web.domain.vo.VillageSpecial.BaseVillageSpecialVO;

import java.util.List;

/**
 *
 */
public interface VillageSpecialService extends IService<VillageSpecial> {

    Integer addVillageSpecial(VillageSpecialAddRequest villageSpecialAddRequest);

    boolean deleteVillageSpecial(String ids);

    void editVillageSpecial(VillageSpecialEditRequest villageSpecialEditRequest);

    /**
     * 根据id查询
     *
     * @param id
     * @return
     */
    BaseVillageSpecialVO getVillageSpecialById(int id);


    BaseVillageSpecialVO getBaseVillageSpecialVO(VillageSpecial villageSpecial);

    /**
     * 分页获取列表
     *
     * @param villageSpecialQueryRequest
     * @return
     */
    Page<BaseVillageSpecialVO> getListVillageSpecialByPage(VillageSpecialQueryRequest villageSpecialQueryRequest);


    /**
     * 获取查询条件
     *
     * @param villageSpecialQueryRequest
     * @return
     */
    QueryWrapper<VillageSpecial> getQueryWrapper(VillageSpecialQueryRequest villageSpecialQueryRequest);


    /**
     * 返回产品列表
     * @param id 服务与支持 id
     * @return
     */
    List<ProductionData> getProductDataList(int id);
}