|
|
@@ -279,6 +279,10 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration |
|
|
|
{ |
|
|
|
try |
|
|
|
{ |
|
|
|
if(keyValue.StartsWith("N")) |
|
|
|
{ |
|
|
|
keyValue=keyValue.Substring(1); |
|
|
|
} |
|
|
|
return this.BaseRepository("CollegeMIS").FindEntity<EmpInfoEntity>(m => m.EmpNo == keyValue); |
|
|
|
} |
|
|
|
catch (Exception ex) |
|
|
@@ -435,7 +439,8 @@ sum(case when DATEDIFF(YYYY, t.Birthday, GETDATE()) > 20 and DATEDIFF(YYYY, t.Bi |
|
|
|
var studentList = new List<UserEntity>(); |
|
|
|
foreach (var tEntity in teacherList) |
|
|
|
{ |
|
|
|
if (alluserlist.Count(m => m.F_Account == tEntity.EmpNo) > 0) |
|
|
|
var empNo = $"N{tEntity.EmpNo}"; |
|
|
|
if (alluserlist.Count(m => m.N_Account == empNo) > 0) |
|
|
|
{ |
|
|
|
continue; |
|
|
|
} |
|
|
@@ -448,10 +453,10 @@ sum(case when DATEDIFF(YYYY, t.Birthday, GETDATE()) > 20 and DATEDIFF(YYYY, t.Bi |
|
|
|
|
|
|
|
} |
|
|
|
UserEntity userbase = new UserEntity(); |
|
|
|
userbase.F_Account = tEntity.EmpNo; |
|
|
|
userbase.N_Account = tEntity.EmpNo; |
|
|
|
userbase.F_Account = empNo; |
|
|
|
userbase.N_Account = empNo; |
|
|
|
userbase.F_RealName = tEntity.EmpName; |
|
|
|
userbase.F_EnCode = tEntity.EmpNo; |
|
|
|
userbase.F_EnCode = empNo; |
|
|
|
userbase.F_Password = Md5Helper.Encrypt(defaultpwd, 32).ToLower(); |
|
|
|
userbase.F_HeadIcon = string.IsNullOrEmpty(url) ? Config.GetValue("defaultheadimg") : url; |
|
|
|
userbase.F_Gender = tEntity.GenderNo.HasValue ? Convert.ToInt32(tEntity.GenderNo.Value) : 1; |
|
|
|