发布项目时查询
This commit is contained in:
@@ -67,7 +67,7 @@ public class githubDao {
|
||||
Connection conn = JdbcUtils.getConnection();
|
||||
PreparedStatement prep = null;
|
||||
ResultSet rs = null;
|
||||
String sql = "select * from githubinfo where projectId = ? and isValid = 1";
|
||||
String sql = "select * from githubinfo WHERE projectId = ? AND isVaild = 0;";
|
||||
prep = conn.prepareStatement(sql);
|
||||
prep.setInt(1, projectid);
|
||||
rs = prep.executeQuery(sql);
|
||||
|
Reference in New Issue
Block a user