From 9b10789c0b82fde6dcc8e9b820e1a85a6cb45f78 Mon Sep 17 00:00:00 2001 From: sjm <2431685932@qq.com> Date: Sun, 9 Jul 2023 10:46:35 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=91=E5=B8=83=E9=A1=B9=E7=9B=AE=E6=97=B6?= =?UTF-8?q?=E6=9F=A5=E8=AF=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/com/hellogithub/dao/githubDao.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com/hellogithub/dao/githubDao.java b/src/com/hellogithub/dao/githubDao.java index da3500a..9850cfe 100644 --- a/src/com/hellogithub/dao/githubDao.java +++ b/src/com/hellogithub/dao/githubDao.java @@ -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);