Bug修复
This commit is contained in:
@@ -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) {
|
||||
|
@@ -129,7 +129,7 @@ public class commentDao {
|
||||
try {
|
||||
Connection conn = JdbcUtils.getConnection();
|
||||
QueryRunner runner = new QueryRunner();
|
||||
String sql="update comment set userId = ? , projectId = ? , content = ? ,isUsed =?, commentTime=?, isValid=?,star=?,likeNum=?where commentId =? ";
|
||||
String sql="update comment set userId = ? , projectId = ? , content = ? ,isUsed =?, commentTime=?, isValid=?,star=?,likeNum=? where commentId =? ";
|
||||
num = runner.update(conn,sql,userId, projectId , content , isUsed, commentTime, isValid, star, likeNum ,commentId);
|
||||
conn.close();
|
||||
} catch (SQLException e) {
|
||||
|
Reference in New Issue
Block a user