diff --git a/src/com/hellogithub/dao/projectDao.java b/src/com/hellogithub/dao/projectDao.java index 2669cb8..0d08ff2 100644 --- a/src/com/hellogithub/dao/projectDao.java +++ b/src/com/hellogithub/dao/projectDao.java @@ -106,7 +106,7 @@ public class projectDao { try { Connection conn = JdbcUtils.getConnection(); QueryRunner runner = new QueryRunner(); - String sql = "select * from project where projectId in (select projectId from project_category where category in(select categoryId from categoty where categoryName = ?))"; + String sql = "select * from project where projectId in (select projectId from project_category where categoryId in(select categoryId from category where categoryName = ?))"; projectEntityList = runner.query(conn, sql, new BeanListHandler<>(projectEntity.class),name); conn.close(); } catch (SQLException e) { @@ -120,7 +120,7 @@ public class projectDao { try { Connection conn = JdbcUtils.getConnection(); QueryRunner runner = new QueryRunner(); - String sql = "select * from project where projectId in (select projectId from project_category where categoryId in(select categoryId from categoty where categoryName = ?)) order by lookCount desc"; + String sql = "select * from project where projectId in (select projectId from project_category where categoryId in(select categoryId from category where categoryName = ?)) order by lookCount desc"; projectEntityList = runner.query(conn, sql, new BeanListHandler<>(projectEntity.class),name); conn.close(); } catch (SQLException e) {