package com.ga.core.mapper.endorse;

import com.ga.core.vo.endorse.ContractEndorsementResp;
import com.ga.core.vo.endorse.ContractEndorsementSearchParam;
import com.ga.core.vo.endorse.ContractEndorsementVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ContractEndorsementMapper {
    ContractEndorsementResp selectById(@Param("endorsementId") Long endorsementId);
    List<ContractEndorsementResp> selectList(ContractEndorsementSearchParam param);
    /** 재계산 미처리 건 목록 — 배치 수수료 재계산 대상 조회 */
    List<ContractEndorsementVO> selectPendingRecalc();
    int insert(ContractEndorsementVO vo);
    int markProcessed(@Param("endorsementId") Long endorsementId);
    int delete(@Param("endorsementId") Long endorsementId);
}
