package com.sptg.estate.biz.service;

import com.baomidou.mybatisplus.service.IService;
import com.sptg.common.core.beans.ResultBean;
import com.sptg.estate.api.entity.InstallationReview;

import java.util.List;

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

    /**
     * 功能描述:根据定位id获取安装环境评审记录
     * @param positionId
     * @return List<InstallationReview>
     *                
     *                      
     */
    List<InstallationReview> getListByPositionId(long positionId);
    /**
     * 功能描述:测定位是否已经创建安装环境评审记录
     * @param positionId
     * @return ResultBean<Boolean>
     *               
     *                     
     */
    ResultBean<Boolean> countByPositionId(Long positionId);
    /**
     * 功能描述:根据positionRecordId获取安装评审记录
     * @param positionRecordId
     * @return ResultBean<PositionRecord>
     *               
     *                     
     */
    ResultBean<InstallationReview> findByPositionRecordId(Long positionRecordId);
    /**
     * 功能描述:新增|修改
     * @param installationReview
     * @return ResultBean<PositionRecord>
     *               
     *                      
     */
    ResultBean<Boolean> insertOrUpdateEntity(InstallationReview installationReview);
    /**
     * 功能描述:根据环境评审id获安装环境评审记录
     * @param environmentalReviewId
     * @return ResultBean<InstallationReview>
     *               
     *                      
     */
    ResultBean<InstallationReview> findByEnvironmentalReviewId(Long environmentalReviewId);
}
