package com.oqpo.api.mapper.sttlmng;


import com.oqpo.api.entity.settmng.PgKiccPayPtclEntity;
import com.oqpo.api.web.dto.request.GridRequest;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface KiccPayMngMapper {

    List<PgKiccPayPtclEntity> selectKiccPayGridList(@Param("sBrandId") String sBrandId, @Param("sStoreId") String sStoreId,
                                                    @Param("sTranType") String sTranType, @Param("sAuthNo") String sAuthNo,
                                                    @Param("fromDt") String fromDt, @Param("toDt") String toDt, GridRequest gridRequest) throws Exception;

    int selectKiccPayGridCnt(@Param("sBrandId") String sBrandId, @Param("sStoreId") String sStoreId,
                             @Param("sTranType") String sTranType, @Param("sAuthNo") String sAuthNo,
                             @Param("fromDt") String fromDt, @Param("toDt") String toDt) throws Exception;

    PgKiccPayPtclEntity selectPgKiccPayPtcl(@Param("poOrdNo") String poOrdNo) throws Exception;

    int updatePgKiccPayPtcl4Cancel(@Param("userId") String userId, PgKiccPayPtclEntity entity) throws Exception;

}
