package com.pcloud.book.rightsSetting.dao.impl;

import com.pcloud.book.rightsSetting.dao.RightsNowPicDao;
import com.pcloud.book.rightsSetting.entity.RightsNowPic;
import com.pcloud.common.core.dao.BaseDaoImpl;

import org.springframework.stereotype.Component;

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

/**
 * @ClassName com.pcloud.book.rightsSetting.dao.impl.RightsItemPicDaoImpl
 * @Author ruansiyuan
 * @Description
 * @Date 2020/5/6 11:08
 * @Version 1.0
 **/
@Component("rightsNowPicDao")
public class RightsNowPicDaoImpl extends BaseDaoImpl<RightsNowPic> implements RightsNowPicDao {
    @Override
    public List<RightsNowPic> getAllDefaultRightsNowPics(Integer type) {
        Map<String, Object> map = new HashMap<>();
        map.put("type", type);
        return super.getSqlSession().selectList(getStatement("getAllDefaultRightsNowPics"), map);
    }
}