From a3a7ee26ea3436e3cf760135be18bc2291303680 Mon Sep 17 00:00:00 2001 From: wanglei <34475144@qq.com> Date: Thu, 23 Oct 2025 16:04:34 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BD=BF=E7=94=A8=E7=9A=84?= =?UTF-8?q?=E7=94=A8=E6=88=B7=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/service/system/user.lua | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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