发布项目时查询
This commit is contained in:
@@ -63,14 +63,13 @@ public class githubDao {
|
|||||||
public ResultSetMetaData ret_Github_info(int projectid) {
|
public ResultSetMetaData ret_Github_info(int projectid) {
|
||||||
List<githubEntity> githubEntityList;
|
List<githubEntity> githubEntityList;
|
||||||
ResultSetMetaData rsmd = null;
|
ResultSetMetaData rsmd = null;
|
||||||
|
String sql = "select * from githubinfo WHERE projectId = ?;";
|
||||||
try {
|
try {
|
||||||
Connection conn = JdbcUtils.getConnection();
|
Connection conn = JdbcUtils.getConnection();
|
||||||
PreparedStatement prep = null;
|
PreparedStatement prep = conn.prepareStatement(sql);
|
||||||
ResultSet rs = null;
|
ResultSet rs = null;
|
||||||
String sql = "select * from githubinfo WHERE projectId = ? AND isVaild = 0;";
|
|
||||||
prep = conn.prepareStatement(sql);
|
|
||||||
prep.setInt(1, projectid);
|
prep.setInt(1, projectid);
|
||||||
rs = prep.executeQuery(sql);
|
rs = prep.executeQuery();
|
||||||
while (rs.next()) {
|
while (rs.next()) {
|
||||||
rsmd = rs.getMetaData();
|
rsmd = rs.getMetaData();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user