package com.house365.ws.dao.impl;

import com.house365.beans.entity.BaseAttachment;
import com.house365.beans.entity.ProjectDynamicEntity;
import com.house365.dao.system.impl.DefaultDaoImpl;
import com.house365.ws.dao.interfaces.IProjectDynamicDao;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository("projectDynamicDao")
public class ProjectDynamicDaoImpl extends DefaultDaoImpl<ProjectDynamicEntity> implements IProjectDynamicDao<ProjectDynamicEntity> {

    @SuppressWarnings({"unchecked", "deprecation"})
    @Override
    public List<BaseAttachment> queryDynamicPicByResouceType(String channel){
        return (List<BaseAttachment>) this.getReadTemplate().queryForList(getStatement(), channel);
    }



}
