@@ -0,0 +1,510 @@
+package nju.software.jxjs.dao;%0A%0Aimport java.util.List;%0A%0Aimport nju.software.jxjs.model.TDsr;%0A%0Aimport org.springframework.stereotype.Repository;%0A%0A@Repository%0Apublic class TDsrDao extends BaseDao %7B%0A%09@SuppressWarnings(%22unchecked%22)%09%0A%09public TDsr getDsrByJxjsbh(int jxjsbh)%7B%0A%09%09String hql = %22from TDsr dsr where dsr.jxjsbh=?%22;%0A%09%09List%3CTDsr%3E dsrList = (List%3CTDsr%3E) getHibernateTemplate().find(hql, new Object%5B%5D%7Bjxjsbh%7D);%0A%09%09if(dsrList!=null && dsrList.size()%3E0)%0A%09%09%09return dsrList.get(0);%0A%09%09else%0A%09%09%09return null;%09%09%0A%09%7D%0A%0A%7D%0A

add by csy