Explorar el Código

禁用用户不可以登录

evan.hong hace 5 años
padre
commit
fbdc694185
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      models/Sql_SysUser.go

+ 1 - 1
models/Sql_SysUser.go

@@ -4,7 +4,7 @@ var SqlUserLogin = `
         select
 			id,login_id,password,name,full_name,mobile,email,org_id,type,status,domain,create_by,create_time,last_update_by,last_update_time,del_flag
         from sys_user
-		where %v = ? and del_flag=0`
+		where %v = ? and del_flag = 0 and status = 0`
 
 var SqlUserInfoPage = `SELECT
   sys_user.*,