发布项目时查询

This commit is contained in:
sjm
2023-07-09 10:46:35 +08:00
parent 2658676a5a
commit 9b10789c0b

View File

@@ -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);