?? downtypedaoimpl.java
字號:
package com.jeecms.download.dao.impl;
import java.util.List;
import org.springframework.stereotype.Repository;
import com.jeecms.core.JeeCoreDaoImpl;
import com.jeecms.download.dao.DownTypeDao;
import com.jeecms.download.entity.DownType;
@Repository
public class DownTypeDaoImpl extends JeeCoreDaoImpl<DownType> implements DownTypeDao {
@SuppressWarnings("unchecked")
public List<DownType> getList(Long webId, boolean all) {
String hql = "from DownType l where l.website.id=?";
if (!all) {
hql += " l.disabled = false";
}
hql += " order by l.priority asc";
List<DownType> list = find(hql, webId);
return list;
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -