c35planorgdao.java
来自「使用spring ,hibernate 框架的稽查管理系统」· Java 代码 · 共 43 行
JAVA
43 行
package com.je.ims.dao;
import java.util.List;
import org.springframework.orm.hibernate3.support.HibernateDaoSupport;
import com.je.ims.hibernate.PlanOrg;
public class c35PlanOrgDao extends HibernateDaoSupport {
public List getOrg(Long year,Long month)
{
String condition = "where planorg.id.planAreaId = planarea.planAreaId and planarea.year="+year+" and planarea.month="+month+" order by planorg.showId";
List c = getHibernateTemplate().find("select planorg from PlanOrg planorg,PlanArea planarea "+condition);
return c;
}
public List getOrg(Long year,Long month,Long areapk)
{
String condition = "where planorg.id.planAreaId = planarea.planAreaId and planarea.year="+year+" and planarea.month="+month+" and planarea.areaPk="+areapk+" order by planorg.showId";
List c = getHibernateTemplate().find("select planorg from PlanOrg planorg,PlanArea planarea "+condition);
return c;
}
public PlanOrg getOrg(Long year,Long month,Long areapk,String orgid)
{
String condition = "where planorg.id.planAreaId = planarea.planAreaId and planarea.year="+year+" and planarea.month="+month+" and planarea.areaPk="+areapk+" and planorg.id.orgId='"+orgid+"' order by planorg.showId";
List c = getHibernateTemplate().find("select planorg from PlanOrg planorg,PlanArea planarea "+condition);
if(c.size()>0)
return (PlanOrg)c.get(0);
else
return null;
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?