更新
This commit is contained in:
1 parent
6831164da8
commit
818ffd8ffe
1 file changed
+2
-2
@@ -106,7 +106,7 @@ public class projectDao {
|
|||||||
try {
|
try {
|
||||||
Connection conn = JdbcUtils.getConnection();
|
Connection conn = JdbcUtils.getConnection();
|
||||||
QueryRunner runner = new QueryRunner();
|
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);
|
projectEntityList = runner.query(conn, sql, new BeanListHandler<>(projectEntity.class),name);
|
||||||
conn.close();
|
conn.close();
|
||||||
} catch (SQLException e) {
|
} catch (SQLException e) {
|
||||||
@@ -120,7 +120,7 @@ public class projectDao {
|
|||||||
try {
|
try {
|
||||||
Connection conn = JdbcUtils.getConnection();
|
Connection conn = JdbcUtils.getConnection();
|
||||||
QueryRunner runner = new QueryRunner();
|
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);
|
projectEntityList = runner.query(conn, sql, new BeanListHandler<>(projectEntity.class),name);
|
||||||
conn.close();
|
conn.close();
|
||||||
} catch (SQLException e) {
|
} catch (SQLException e) {
|
||||||
|
|||||||
Reference in new issue
Block a user