package com.thinkgem.jeesite.modules.youka.dao;

import com.thinkgem.jeesite.common.persistence.CrudDao;
import com.thinkgem.jeesite.common.persistence.annotation.MyBatisDao;
import com.thinkgem.jeesite.modules.youka.entity.YoukaCardEntity;
import com.thinkgem.jeesite.modules.youka.entity.YoukaRate;
import org.apache.ibatis.annotations.MapKey;

import java.util.List;
import java.util.Map;

/**
 * @author niehh
 * @Description: 费率
 * @date 2018年03月09日 10:09
 */
@MyBatisDao
public interface YoukaRateDao  extends CrudDao<YoukaRate> {

    @MapKey("userLevel")
    public Map<String,YoukaRate> getRateByUserLevel(YoukaRate youkaRate);

    public YoukaRate getRateByCode(YoukaRate youkaRate);
}
