yl
2022-07-31 86a0c62c22b793ebbbc67a5f2b01a9a4800640e2
VueWebApi/DLL/DAL/LoginDAL.cs
@@ -25,7 +25,7 @@
        {
            //执行sql
            strProcName = "select *  from [dbo].[TUser] where username=@username and password=@password";
            strProcName = "select *  from [dbo].[TUser] where usercode=@username and password=@password";
            //创建参数
            listStr.Add(new SqlParameter("@username", username));
            listStr.Add(new SqlParameter("@password", password));
@@ -114,7 +114,7 @@
            try
            {
                //获取菜单集合(根据登录用户编码查询权限反推菜单)
                sql = @"select distinct rt.right_code as code,rt.right_name as name,rt.right_seq from TRight rt where rt.right_code in(
                sql = @"select distinct rt.right_code as code,rt.right_name as name,rt.right_seq,rt.is_delete as flag from TRight rt where rt.right_code in(
                     select A.parent_id  from TRight A
                     left join TRoleRightRelation B on B.right_code=A.right_code
                     left join TRole C on C.role_code=B.role_code
@@ -125,7 +125,7 @@
                var data = DapperHelper.select<TreeObejct>(sql, dynamicParams);
                for (int i = 0; i < data.Count; i++)
                {
                    sql = @"select distinct mu.right_code as code,mu.right_name as name,mu.right_seq
                    sql = @"select distinct mu.right_code as code,mu.right_name as name,mu.right_seq,mu.is_delete as flag
                     from TRight mu
                            inner join TRoleRightRelation rl on mu.right_code=rl.right_code
                            inner join TUserRoleRelation ro on rl.role_code=ro.role_code
@@ -152,6 +152,7 @@
        }
        #endregion
        #region[修改密码]
        public static ToMessage UpdateUserPassword(string usercode, string username, string password, string newpassword)