Browse Source

新账户字段

黑艺新账号
hwh2023 10 months ago
parent
commit
2227fee2e0
3 changed files with 8 additions and 2 deletions
  1. +5
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Organization/User/UserEntity.cs
  2. +2
    -2
      Learun.Framework.Ultimate V7/Learun.Application.Organization/User/UserService.cs
  3. +1
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/EmpInfo/EmpInfoService.cs

+ 5
- 0
Learun.Framework.Ultimate V7/Learun.Application.Organization/User/UserEntity.cs View File

@@ -240,6 +240,11 @@ namespace Learun.Application.Organization
/// </summary> /// </summary>
[Column("F_MODIFYPWDDATE")] [Column("F_MODIFYPWDDATE")]
public DateTime? F_ModifyPwdDate { get; set; } public DateTime? F_ModifyPwdDate { get; set; }
/// <summary>
/// 账户
/// </summary>
[Column("N_ACCOUNT")]
public string N_Account { get; set; }
#endregion #endregion


#region 扩展操作 #region 扩展操作


+ 2
- 2
Learun.Framework.Ultimate V7/Learun.Application.Organization/User/UserService.cs View File

@@ -39,7 +39,7 @@ namespace Learun.Application.Organization
strSql.Append("SELECT "); strSql.Append("SELECT ");
strSql.Append(fieldSql); strSql.Append(fieldSql);
strSql.Append(" FROM LR_Base_User t "); strSql.Append(" FROM LR_Base_User t ");
strSql.Append(" WHERE t.F_Account = @account AND t.F_DeleteMark = 0 ");
strSql.Append(" WHERE (t.F_Account = @account or t.N_Account=@account) AND t.F_DeleteMark = 0 ");
return this.BaseRepository().FindEntity<UserEntity>(strSql.ToString(), new { account = account }); return this.BaseRepository().FindEntity<UserEntity>(strSql.ToString(), new { account = account });
} }
catch (Exception ex) catch (Exception ex)
@@ -206,7 +206,7 @@ namespace Learun.Application.Organization
if (!string.IsNullOrEmpty(keyword)) if (!string.IsNullOrEmpty(keyword))
{ {
keyword = "%" + keyword + "%"; keyword = "%" + keyword + "%";
strSql.Append(" AND( t.F_Account like @keyword or t.F_RealName like @keyword or t.F_Mobile like @keyword ) ");
strSql.Append(" AND( t.F_Account like @keyword or t.F_RealName like @keyword or t.N_Account like @keyword or t.F_Mobile like @keyword ) ");
} }
return this.BaseRepository().FindList<UserEntity>(strSql.ToString(), new { companyId, departmentId, keyword }, pagination); return this.BaseRepository().FindList<UserEntity>(strSql.ToString(), new { companyId, departmentId, keyword }, pagination);


+ 1
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/EmpInfo/EmpInfoService.cs View File

@@ -449,6 +449,7 @@ sum(case when DATEDIFF(YYYY, t.Birthday, GETDATE()) > 20 and DATEDIFF(YYYY, t.Bi
} }
UserEntity userbase = new UserEntity(); UserEntity userbase = new UserEntity();
userbase.F_Account = tEntity.EmpNo; userbase.F_Account = tEntity.EmpNo;
userbase.N_Account = tEntity.EmpNo;
userbase.F_RealName = tEntity.EmpName; userbase.F_RealName = tEntity.EmpName;
userbase.F_EnCode = tEntity.EmpNo; userbase.F_EnCode = tEntity.EmpNo;
userbase.F_Password = Md5Helper.Encrypt(defaultpwd, 32).ToLower(); userbase.F_Password = Md5Helper.Encrypt(defaultpwd, 32).ToLower();


Loading…
Cancel
Save