Bug修复

This commit is contained in:
landaiqing committed 2023-07-10 23:58:11 +08:00
1 parent 84a2af4bca
commit f1e66fb2dd
1 file changed
+2 -2
+2 -2
View File
@@ -215,7 +215,7 @@ public class AdminDao {
try {
Connection conn = JdbcUtils.getConnection();
QueryRunner runner = new QueryRunner();
String sql="UPDATE category SET isValid = ? WHERE userId = ?";
String sql="UPDATE category SET isValid = ? WHERE categoryId = ?";
num = runner.update(conn, sql, isvalid,id);
conn.close();
} catch (SQLException e) {
@@ -230,7 +230,7 @@ public class AdminDao {
try {
Connection conn = JdbcUtils.getConnection();
QueryRunner runner = new QueryRunner();
String sql="UPDATE article SET isValid = ? WHERE userId = ?";
String sql="UPDATE article SET isValid = ? WHERE articleId = ?";
num = runner.update(conn, sql, isvalid,id);
conn.close();
} catch (SQLException e) {