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

/**
 * title: ProjectServiceImpl
 * package: com.sptg.estate.biz.security
 * description: 竣工验收-服务层接口
 *
 *               
 *                     
 */
public interface AcceptanceServiceInterface extends IService<Acceptance> {

    /**
     * 功能描述:检测项目是否已经创建定位记录
     * @param projectId
     * @return ResultBean<Boolean>
     *               
     *                      
     */
    ResultBean<Boolean> countByProjectId(Long projectId);
    /**
     * 功能描述:新增
     * @param dto
     * @return ResultBean<Boolean>
     *               
     *                      
     */
    ResultBean<Boolean> insertEntity(AcceptanceDto dto);
    /**
     * 功能描述:根据机构位置统计数量
     * @param orgPosition
     * @return ResultBean<Integer>
     *               
     *                      
     */
    ResultBean<Integer> countByOrgPosition(String orgPosition);
    /**
     * 功能描述:分页查询
     * @param acceptanceDto
     * @return ResultBean<Integer>
     *               
     *                      
     */
    Page<Acceptance> showList(AcceptanceDto acceptanceDto);
    /**
     * 功能描述:审核
     * @param dto
     * @return ResultBean<Boolean>
     *               
     *                      
     */
    ResultBean<Boolean> checkState(AcceptanceDto dto);
}
