修改数据库表名

pull/1/head
you 5 years ago
parent b1a2337b4a
commit 2f9ecc9f1a

2
.gitignore vendored

@ -2,4 +2,4 @@
.project .project
.metadata .metadata
.settings .settings
build /build

@ -27,7 +27,7 @@ public class Admin {
Connection connection = null; Connection connection = null;
PreparedStatement pstmt = null; PreparedStatement pstmt = null;
ResultSet resultSet = null; ResultSet resultSet = null;
String sql = "select * from system_manager where username=? and password=? limit 1"; String sql = "select * from admin where username=? and password=? limit 1";
connection = Base.getConnection(); connection = Base.getConnection();
pstmt = (PreparedStatement) connection.prepareStatement(sql); pstmt = (PreparedStatement) connection.prepareStatement(sql);
pstmt.setString(1, username); pstmt.setString(1, username);

Loading…
Cancel
Save