@@ -0,0 +1,1133 @@
+package nju.software.jxjs.dao;%0A%0Aimport java.util.List;%0A%0Aimport nju.software.jxjs.model.PubDmb;%0A%0Aimport org.springframework.stereotype.Repository;%0A%0A@Repository%0Apublic class XtglDmbDao extends BaseDao %7B%0A%09@SuppressWarnings(%22unchecked%22)%0A%09public List%3CPubDmb%3E getDmbByLbbh(String lbbh)%7B%0A%09%09String hql = %22from PubDmb dmb where dmb.lbbh=?%22;%0A%09%09List%3CPubDmb%3E dmbs =  (List%3CPubDmb%3E) getHibernateTemplate().find(hql, new Object%5B%5D%7Blbbh%7D);%0A%09%09return dmbs;%0A%09%7D%0A%09@SuppressWarnings(%22unchecked%22)%0A%09public PubDmb getDmbByLbbhAndDmms(String lbbh,String dmms)%7B%0A%09%09String hql = %22from PubDmb dmb where dmb.lbbh=? and dmb.dmms=?%22;%0A%09%09List%3CPubDmb%3E dmbs =  (List%3CPubDmb%3E) getHibernateTemplate().find(hql, new Object%5B%5D%7Blbbh,dmms%7D);%0A%09%09if(dmbs != null && dmbs.size() %3E 0)%0A%09%09%09return dmbs.get(0);%0A%09%09else%0A%09%09%09return null;%0A%09%7D%0A%09@SuppressWarnings(%22unchecked%22)%0A%09public PubDmb getDmbByLbbhAndDmbh(String lbbh,String dmbh)%7B%0A%09%09String hql = %22from PubDmb dmb where dmb.lbbh=? and dmb.dmbh=?%22;%0A%09%09List%3CPubDmb%3E dmbs =  (List%3CPubDmb%3E) getHibernateTemplate().find(hql, new Object%5B%5D%7Blbbh,dmbh%7D);%0A%09%09if(dmbs != null && dmbs.size() %3E 0)%0A%09%09%09return dmbs.get(0);%0A%09%09else%0A%09%09%09return null;%0A%09%7D%0A%09%0A%0A%7D%0A

Add by csy