package com.yeshi.buwan.dao;
|
|
import com.yeshi.buwan.dao.base.BaseDao;
|
import com.yeshi.buwan.domain.VideoResourceMapExtraInfo;
|
import org.springframework.stereotype.Repository;
|
|
import java.util.List;
|
|
@Repository
|
public class VideoResourceMapExtraInfoDao extends BaseDao<VideoResourceMapExtraInfo> {
|
|
/**
|
* 根据主键查询
|
*
|
* @param idList
|
* @return
|
*/
|
public List<VideoResourceMapExtraInfo> listByIds(List<String> idList) {
|
String where = "";
|
for (String id : idList) {
|
where += " vi.id = ? or";
|
}
|
if (where.endsWith("or"))
|
where = where.substring(0, where.length() - 2);
|
String[] params = new String[idList.size()];
|
idList.toArray(params);
|
return list("from VideoResourceMapExtraInfo vi where " + where, params);
|
}
|
|
}
|