package com.sptg.estate.biz.service;

import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.IService;
import com.sptg.common.core.beans.ResultBean;
import com.sptg.estate.api.dto.EnvironmentalReviewDto;
import com.sptg.estate.api.entity.EnvironmentalReview;

import java.util.List;

/**
 * title: ProjectServiceImpl
 * package: com.sptg.estate.biz.security
 * description: 环境评审-服务层接口
 *
 *               
 *                     
 */
public interface EnvironmentalReviewServiceInterface extends IService<EnvironmentalReview> {

    /**
     * 功能描述:根据定位id获取环境评审记录
     * @param positionId
     * @return  List<EnvironmentalReview>
     *                
     *                      
     */
    List<EnvironmentalReview> getListByPositionId(long positionId);
    /**
     * 功能描述:测定位是否已经创建环境评审记录
     * @param positionId
     * @return ResultBean<Boolean>
     *               
     *                     
     */
    ResultBean<Boolean> countByPositionId(Long positionId);
    /**
     * 功能描述:查询
     * @param positionId
     * @return ResultBean<Boolean>
     *               
     *                     
     */
    ResultBean<EnvironmentalReview> findByPositionId(Long positionId);
    /**
     * 功能描述:分页查询
     * @param dto
     * @return ResultBean<Page<EnvironmentalReview>>
     *               
     *                     
     */
    ResultBean<Page<EnvironmentalReview>> showList(EnvironmentalReviewDto dto);
    /**
     * 功能描述:根据机构位置统计数量
     * @param orgPosition
     * @return ResultBean<Integer>
     *               
     *                      
     */
    ResultBean<Integer> countByOrgPosition(String orgPosition);
    /**
     * 功能描述:审核
     * @param dto
     * @return ResultBean<Boolean>
     *               
     *                      
     */
    ResultBean<Boolean> checkState(EnvironmentalReviewDto dto);
    /**
     * 功能描述:新增/修改
     * @param environmentalReview
     * @return ResultBean<Boolean>
     *               
     *                     
     */
    ResultBean<Boolean> insertOrUpdateEntity(EnvironmentalReview environmentalReview);
}
