发布项目时查询
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
Reference in New Issue
Block a user