package cn.edu.qust.news.dao; import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.util.ArrayList; import java.util.List; import cn.edu.qust.news.dao.TypeDao; import cn.edu.qust.news.domain.Type; import cn.edu.qust.news.utils.JdbcUtil; public class TypeDao { public TypeDao() { // TODO Auto-generated constructor stub } public List<Type> findType() { Connection conn=null; PreparedStatement stmt = null; ResultSet rs = null; List<Type> lTypes=new ArrayList<Type>(); try { conn = JdbcUtil.getConnection(); stmt = conn .prepareStatement("select f_typename from t_type order by f_typeid DESC"); rs = stmt.executeQuery(); while (rs.next()) { Type type=new Type(); type.setTypeName(rs.getString("f_typename")); lTypes.add(type); } return lTypes; } catch (Exception e) { throw new RuntimeException(e); } finally { JdbcUtil.release(rs, stmt, conn); } } }

张泽帅 LV6
2024年10月28日
hao98382 LV2
2024年10月22日
bankroll LV5
2024年6月13日
asddwh LV13
2023年12月29日
19542347615 LV1
2023年11月23日
无名氏111 LV33
2023年11月18日
lwlwlwlw LV3
2023年6月17日
傻瓜还没打死烦人 LV7
2022年12月6日
zhunishimian LV6
2022年10月30日
SQ2930501923 LV14
2022年10月16日

f22m1a2b2 LV17
1月21日
233123
2024年12月20日
暂无贡献等级
ma406805131 LV19
2024年12月18日
qwqwx585160 LV2
2024年12月15日
traume
2024年12月11日
暂无贡献等级
沉着冷静
2024年11月25日
暂无贡献等级
张泽帅 LV6
2024年10月28日
微信网友_7222576034680832 LV2
2024年10月23日
hao98382 LV2
2024年10月22日
asdfgh112
2024年7月4日
暂无贡献等级