📄 c453dao.java
字号:
package com.je.ims.dao;
import java.util.List;
import com.je.ims.hibernate.ChiefReport;
public class C453DAO extends CommonDAO {
public C453DAO() {
super();
}
//查询所有记录
public List getAll(Long year,Long month) {
String hql="select distinct cr from ChiefReport as cr where cr.year="+year+"and cr.month="+month+"and (cr.editState=1 or cr.editState=2 or cr.editState=3 or cr.editState=7)";
List list=this.getHibernateTemplate().find(hql);
return list;
}
//返回记录, start为记录开始的位置,size为记录的长度
public Object[] getCount(int start, int size){
return null;
}
public Object[] getCount(int start, int count, List l) {
List list=l;
ChiefReport[] report = new ChiefReport[count];
for (int i=0;i<count;i++)
{
report[i]=new ChiefReport();
report[i]=(ChiefReport)list.get(i+start);
}
return report;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -