package io.renren.modules.business.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import io.renren.modules.business.entity.BusinessContractEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 合同信息
 * 
 * @author jiaqiao
 * @email jiaqiao@163.com
 * @date 2022-08-22 17:16:07
 */
@Mapper
public interface BusinessContractDao extends BaseMapper<BusinessContractEntity> {

    List<BusinessContractEntity> queryList(Map<String, Object> params);

    //根据projectId获取所有包含此立项的合同信息
    List<BusinessContractEntity> getByProjectId(@Param("projectId") String projectId);

    /**
     * 根据合同id获取基本信息
     * @param contractId
     * @return
     */
    BusinessContractEntity conInfoById(@Param("contractId") Integer contractId);

    /**
     * 审批不通过
     * @param approvalId
     */
    void updateNoPassByIds(String approvalId);

    /**
     * 更新
     * @param businessContractEntity
     */
    void newUpdateById(BusinessContractEntity businessContractEntity);
}
