发布项目时查询
This commit is contained in:
1 parent
2658676a5a
commit
9b10789c0b
1 file changed
+1
-1
@@ -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