package com.ga.core.mapper.product;

import com.ga.core.vo.product.ContractResp;
import com.ga.core.vo.product.ContractSearchParam;
import com.ga.core.vo.product.ContractVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ContractMapper {
    List<ContractResp> selectList(ContractSearchParam param);
    ContractResp selectDetailById(@Param("contractId") Long contractId);
    ContractVO selectById(@Param("contractId") Long contractId);
    int existsByPolicyNo(@Param("policyNo") String policyNo);
    int insert(ContractVO vo);
    int update(ContractVO vo);
    int updateStatus(@Param("contractId") Long contractId, @Param("status") String status);
    int countByAgent(@Param("agentId") Long agentId, @Param("status") String status);
}
