package com.oqpo.api.mapper.loanmng;


import com.oqpo.api.entity.loanmng.LoanMgntBaseInfoEntity;
import com.oqpo.api.entity.loanmng.LoanMgntDtlHstEntity;
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 LoanStateMapper {

    List<LoanMgntBaseInfoEntity> selectLoanStateGridList(@Param("sBrandId") String sBrandId, @Param("sStoreId") String sStoreId, @Param("sLoanDvsn") String sLoanDvsn, @Param("sUseYn") String sUseYn,
                                                         GridRequest gridRequest) throws Exception;

    int selectLoanStateGridCnt(@Param("sBrandId") String sBrandId, @Param("sStoreId") String sStoreId, @Param("sLoanDvsn") String sLoanDvsn, @Param("sUseYn") String sUseYn) throws Exception;

    LoanMgntBaseInfoEntity selectLoanMgntBaseInfo(@Param("loanMgntUnqNo") String loanMgntUnqNo) throws Exception;

    List<LoanMgntDtlHstEntity> selectLoanHistGridList(@Param("sLoanMgntUnqNo") String sLoanMgntUnqNo, @Param("sDpstPayDvsn") String sDpstPayDvsn,
                                                      @Param("fromDt") String fromDt, @Param("toDt") String toDt,
                                                      GridRequest gridRequest) throws Exception;

    int selectLoanHistGridCnt(@Param("sLoanMgntUnqNo") String sLoanMgntUnqNo, @Param("sDpstPayDvsn") String sDpstPayDvsn,
                              @Param("fromDt") String fromDt, @Param("toDt") String toDt) throws Exception;

}
