Browse Source

修复登录人教学系部权限

新疆影视学院高职
liangkun 2 years ago
parent
commit
55d2a36508
2 changed files with 5 additions and 4 deletions
  1. +2
    -2
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Base/AuthorizeModule/DataAuthorize/DataAuthorizeBLL.cs
  2. +3
    -2
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Base/AuthorizeModule/DataAuthorize/DataAuthorizeService.cs

+ 2
- 2
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Base/AuthorizeModule/DataAuthorize/DataAuthorizeBLL.cs View File

@@ -514,9 +514,9 @@ namespace Learun.Application.Base.AuthorizeModule
case 8: // ½Ìѧϵ²¿ case 8: // ½Ìѧϵ²¿
{ {
var empinfo = dataAuthorizeService.GetEmpInfoEntityByNo(userInfo.account); var empinfo = dataAuthorizeService.GetEmpInfoEntityByNo(userInfo.account);
if (empinfo != null&&!string.IsNullOrEmpty(empinfo.DeptNo))
if (empinfo != null&&empinfo.Rows.Count>0&&empinfo.Rows[0]["DeptNo"]!=null)
{ {
text = empinfo.DeptNo;
text = empinfo.Rows[0]["DeptNo"].ToString();
} }
else else
{ {


+ 3
- 2
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Base/AuthorizeModule/DataAuthorize/DataAuthorizeService.cs View File

@@ -2,6 +2,7 @@ using Learun.DataBase.Repository;
using Learun.Util; using Learun.Util;
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Data;
using System.Text; using System.Text;


namespace Learun.Application.Base.AuthorizeModule namespace Learun.Application.Base.AuthorizeModule
@@ -265,11 +266,11 @@ namespace Learun.Application.Base.AuthorizeModule


#endregion #endregion


public dynamic GetEmpInfoEntityByNo(string keyValue)
public DataTable GetEmpInfoEntityByNo(string keyValue)
{ {
try try
{ {
return this.BaseRepository("CollegeMIS").FindEntity<dynamic>("select * from EmpInfo where EmpNo='"+keyValue+"'");
return this.BaseRepository("CollegeMIS").FindTable("select * from EmpInfo where EmpNo='"+keyValue+"'");
} }
catch (Exception ex) catch (Exception ex)
{ {


Loading…
Cancel
Save