发布项目时查询

This commit is contained in:
sjm
2023-07-09 10:50:48 +08:00
parent 9b10789c0b
commit ac64988809

View File

@@ -63,14 +63,13 @@ public class githubDao {
public ResultSetMetaData ret_Github_info(int projectid) {
List<githubEntity> githubEntityList;
ResultSetMetaData rsmd = null;
String sql = "select * from githubinfo WHERE projectId = ?;";
try {
Connection conn = JdbcUtils.getConnection();
PreparedStatement prep = null;
PreparedStatement prep = conn.prepareStatement(sql);
ResultSet rs = null;
String sql = "select * from githubinfo WHERE projectId = ? AND isVaild = 0;";
prep = conn.prepareStatement(sql);
prep.setInt(1, projectid);
rs = prep.executeQuery(sql);
rs = prep.executeQuery();
while (rs.next()) {
rsmd = rs.getMetaData();
}