package com.mitsui.dao; import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; import java.util.ArrayList; import java.util.List; import com.mitsui.domain.CertSelect; import com.mitsui.domain.StaffCert; import com.mitsui.util.ConnectionUtil; public class CertSelectDao { public static List<CertSelect> queryAllCertSelect(){ String sql = "select cer_id,traingrade.grade_id,cer_name,staff.p_id,p_name,cer_date from staffcert, traingrade,staff where staffcert.grade_id=traingrade.grade_id and traingrade.p_id=Staff.p_id"; Connection conn = ConnectionUtil.getConection(); PreparedStatement ps = null; try { ps = conn.prepareStatement(sql); ResultSet rs = ps.executeQuery(); CertSelect select = null; List<CertSelect> selects = new ArrayList<CertSelect>(); while(rs.next()){ int cer_id = rs.getInt("cer_id"); int grade_id = rs.getInt("grade_id"); String cer_name = rs.getString("cer_name"); String cer_date = rs.getString("cer_date"); int p_id =rs.getInt("p_id"); String p_name =rs.getString("p_name"); select = new CertSelect(cer_id, grade_id, cer_name, cer_date, p_id, p_name); selects.add(select); } return selects; } catch (SQLException e) { e.printStackTrace(); return null; } } }

yuanshun LV7
2023年12月14日
微醺酸梅汤 LV2
2023年9月27日
husiyu LV3
2023年9月25日
duoer12 LV5
2022年12月30日
wangxiaolaugh LV2
2022年12月27日
194897762 LV4
2022年12月26日
485415187 LV6
2022年11月20日
aduahfue LV4
2022年10月25日
13940562934 LV22
2022年7月2日
donglixue LV6
2022年6月28日

微信网友_7338401665241088
1月13日
暂无贡献等级
自选菜
2024年11月21日
暂无贡献等级
张泽帅 LV6
2024年10月18日
krispeng LV14
2024年8月12日
liuaaa
2024年6月24日
暂无贡献等级
微信网友_7041475584184320
2024年6月17日
暂无贡献等级
123456cjj LV1
2024年6月2日
微信网友_7009341063450624
2024年6月1日
暂无贡献等级
微信网友_6906962132258816 LV7
2024年5月15日
爱丽淇 LV5
2024年3月13日