package com.td.Dawa.game.comloggoldtran.repository;

import com.td.Dawa.common.repository.*;
import com.td.Dawa.game.comloggoldtran.pojo.ComLogGoldTran;
import org.springframework.stereotype.Repository;

import java.util.Optional;

@Repository
public interface ComLogGoldTranRepository extends CommonRepository<ComLogGoldTran, String> {

    //查询当前用户的交易记录
    Optional<ComLogGoldTran> findByUserIdAndTranTypeAndStatus(String userId, Integer tranType, Integer status);

}
