📄 c72dao.java
字号:
package com.je.ims.dao;
import java.util.List;
import com.je.ims.hibernate.Docflow;
import com.je.ims.hibernate.RoleId;
public class C72DAO extends CommonDAO {
public Object[] getCount(int start, int count) {
// TODO Auto-generated method stub
return null;
}
public Object[] getCount(int start, int count, List l) {
// TODO Auto-generated method stub
List list=l;
Docflow[] app = new Docflow[count];
for (int i=0;i<count;i++)
{
app[i]=new Docflow();
app[i]=(Docflow)list.get(i+start);
}
return app;
}
public List getReject(Long roletypeid,String roleid)
{
String hql="from Docflow where userType=? and userRoleid=?";
List list=getHibernateTemplate().find(hql,new Object[]{roletypeid,roleid});
return list;
}
public Docflow getLastEditor(Long id,RoleId roleid)
{
String hql="from Docflow where docId=? and userRoleid!=? and userType!=? order by step desc";
List list=getHibernateTemplate().find(hql,new Object[]{id,roleid.getRoleId(),roleid.getRoleTypeId()});
Docflow f=null;
if(list.size()>0)
f=(Docflow)list.get(0);
return f;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -