diff --git a/src/service/system/user.lua b/src/service/system/user.lua index 824aec9..efa0445 100644 --- a/src/service/system/user.lua +++ b/src/service/system/user.lua @@ -74,7 +74,7 @@ end local function checkUserExist(username, phone, email) --组装sql语句 local where = string.format("where username='%s' or phone='%s' or email='%s'", username, phone, email) - local sql = string.format("select count(*) as count from \"T_Users\" %s", where) + local sql = string.format("select count(*) as count from \"tbl_users\" %s", where) print("check sql: "..sql) --获取数据库连接 return execSQL(sql) @@ -83,14 +83,14 @@ end -- 查询数据表中的所有用户信息 function _M.getAllUser() --组装sql语句 - local sql = "select * from \"T_Users\"" + local sql = "select * from \"tbl_users\"" return execSQL(sql) end --根据用户id获取用户信息 function _M.getUser(id) --组装sql语句 - local sql = "select * from \"T_Users\" where id='"..id.."'" + local sql = "select * from \"tbl_users\" where id='"..id.."'" return execSQL(sql) end @@ -131,14 +131,14 @@ function _M.addUser(jsonData) local newKeys = keys.."id" local newValues = values.."'"..getUuid().."'" --组装sql语句 - local sql = string.format("insert into \"T_Users\"(%s)values(%s)", newKeys, newValues) + local sql = string.format("insert into \"tbl_users\"(%s)values(%s)", newKeys, newValues) return execSQL(sql) end --增加用户信息到数据表 function _M.delete_user(id) --组装sql语句 - local sql = "delete from \"T_Users\" where id='"..id.."'" + local sql = "delete from \"tbl_users\" where id='"..id.."'" return execSQL(sql) end