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.Contract;

/**
 * title: ProjectServiceImpl
 * package: com.sptg.estate.biz.security
 * description: 实施项目合同-服务层接口
 *
 *               
 *                     
 */
public interface ContractServiceInterface extends IService<Contract> {

    /**
     * 功能描述: 根基项目id获取合同信息
     * @param projectId 项目id
     * @return ResultBean<Contract>
     *               
     *                      
     */
    ResultBean<Contract> findByProjectId(Long projectId);
    /**
     * 功能描述: 保存合同信息
     * @param contract
     * @return ResultBean<Boolean>
     *               
     *                      
     */
    ResultBean<Boolean> insertByResidentialId(Contract contract);
    /**
     * 功能描述: 修改
     * @param contract
     * @return ResultBean<Boolean>
     *               
     *                      
     */
    ResultBean<Boolean> editByProjectId(Contract contract);
}
