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.ProjectBook;
import com.sptg.estate.api.entity.ProjectCompletion;

/**
 * title: ProjectServiceImpl
 * package: com.sptg.estate.biz.security
 * description: 物业验收-服务层接口
 *
 *               
 *                     
 */
public interface ProjectCompletionServiceInterface extends IService<ProjectCompletion> {

    /**
     * 功能描述: 新增
     * @param projectCompletion
     * @return ResultBean<Boolean>
     *               
     *                      
     */
    ResultBean<Boolean> insertProjectCompletion(ProjectCompletion projectCompletion);
    /**
     * 功能描述:通过项目id查询竣工单信息
     * @param projectId
     * @return ResultBean<ProjectCompletion>
     *               
     *                      
     */
    ResultBean<ProjectCompletion> findByProjectId(Long projectId);
    /**
     * 功能描述:检测项目是否已经创建竣工单记录
     * @param projectId
     * @return ResultBean<ProjectCompletion>
     *               
     *                      
     */
    ResultBean<Boolean> countByProjectId(Long projectId);
}
