/**
 * 文件：ResourceDaoImpl.java 版本：1.0.0 日期： Copyright &reg; All right reserved.
 */

package com.mortals.xhx.base.system.resource.dao.ibatis;

import com.mortals.framework.dao.ibatis.BaseCRUDDaoMybatis;
import com.mortals.framework.model.ParamDto;
import com.mortals.xhx.base.system.resource.dao.ResourceDao;
import com.mortals.xhx.base.system.resource.model.ResourceEntity;

import org.springframework.stereotype.Repository;

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

/**
 * <p>
 * Title: 资源信息
 * </p>
 * <p>
 * Description: ResourceDaoImpl DAO接口
 * </p>
 * <p>
 * Copyright: Copyright &reg;
 * </p>
 * <p>
 * Company:
 * </p>
 * @author
 * @version 1.0.0
 */
@Repository("resourceDao")
public class ResourceDaoImpl extends BaseCRUDDaoMybatis<ResourceEntity, Long> implements ResourceDao {

    @Override
    public List<ResourceEntity> getListByUserId(Long userId) {
        ParamDto param = new ParamDto();
        param.getCondition().put("userId", userId);
        return getSqlSession().selectList(getSqlId("getListByUserId"), param);
    }


}