Browse Source

同步数据修改

同煤学院(新)
dao 1 week ago
parent
commit
de3df12496
7 changed files with 35 additions and 32 deletions
  1. +2
    -2
      Learun.Framework.Ultimate V7/Learun.Application.Organization/User/UserEntity.cs
  2. +6
    -6
      Learun.Framework.Ultimate V7/Learun.Application.Web/Controllers/LoginController.cs
  3. +5
    -5
      Learun.Framework.Ultimate V7/Learun.Application.Web/Controllers/SSOSystemController.cs
  4. +4
    -4
      Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/UserApi.cs
  5. +1
    -1
      Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/UsernologinApi.cs
  6. +16
    -12
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Base/SystemModule/DataItem/DataItemDetailEntity.cs
  7. +1
    -2
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Base/SystemModule/DataItem/DataItemService.cs

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

@@ -243,8 +243,8 @@ namespace Learun.Application.Organization
/// <summary> /// <summary>
/// 是否已登录标记 /// 是否已登录标记
/// </summary> /// </summary>
[Column("F_HAVELOGMARK")]
public bool? F_HaveLogMark { get; set; }
//[Column("F_HAVELOGMARK")]
//public bool? F_HaveLogMark { get; set; }
#endregion #endregion


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


+ 6
- 6
Learun.Framework.Ultimate V7/Learun.Application.Web/Controllers/LoginController.cs View File

@@ -603,7 +603,7 @@ namespace Learun.Application.Web.Controllers
else else
{ {
//记录已登录标记 //记录已登录标记
userBll.UpdateHaveLogMark(userEntity.F_UserId);
//userBll.UpdateHaveLogMark(userEntity.F_UserId);
//记录ip //记录ip
userBll.UpdateIp(GetIP(), userEntity.F_UserId); userBll.UpdateIp(GetIP(), userEntity.F_UserId);
OperatorHelper.Instance.AddLoginUser(userEntity.F_Account, "Learun_ADMS_6.1_PC", null);//写入缓存信息 OperatorHelper.Instance.AddLoginUser(userEntity.F_Account, "Learun_ADMS_6.1_PC", null);//写入缓存信息
@@ -1250,7 +1250,7 @@ namespace Learun.Application.Web.Controllers
{ {
return Fail("输入错误!"); return Fail("输入错误!");
} }
if (codeType == "firstlogin" && userEntity.F_HaveLogMark == true)
if (codeType == "firstlogin")
{ {
return Fail("当前用户非首次登录,请使用账号密码进行登录!"); return Fail("当前用户非首次登录,请使用账号密码进行登录!");
} }
@@ -1356,10 +1356,10 @@ namespace Learun.Application.Web.Controllers
{ {
return Fail("账户被系统锁定,请联系管理员!"); return Fail("账户被系统锁定,请联系管理员!");
} }
if (userEntity.F_HaveLogMark == true)
{
return Fail("当前用户非首次登录,请使用账号密码进行登录!");
}
//if (userEntity.F_HaveLogMark == true)
//{
// return Fail("当前用户非首次登录,请使用账号密码进行登录!");
//}
userEntity.LoginOk = true; userEntity.LoginOk = true;
#region 写入日志 #region 写入日志
LogEntity logEntity = new LogEntity(); LogEntity logEntity = new LogEntity();


+ 5
- 5
Learun.Framework.Ultimate V7/Learun.Application.Web/Controllers/SSOSystemController.cs View File

@@ -2061,7 +2061,7 @@ namespace Learun.Application.Web.Controllers
{ {
return Fail("输入错误!"); return Fail("输入错误!");
} }
if (codeType == "firstlogin" && userEntity.F_HaveLogMark == true)
if (codeType == "firstlogin")
{ {
return Fail("当前用户非首次登录,请使用账号密码进行登录!"); return Fail("当前用户非首次登录,请使用账号密码进行登录!");
} }
@@ -2167,10 +2167,10 @@ namespace Learun.Application.Web.Controllers
{ {
return Fail("账户被系统锁定,请联系管理员!"); return Fail("账户被系统锁定,请联系管理员!");
} }
if (userEntity.F_HaveLogMark == true)
{
return Fail("当前用户非首次登录,请使用账号密码进行登录!");
}
//if (userEntity.F_HaveLogMark == true)
//{
// return Fail("当前用户非首次登录,请使用账号密码进行登录!");
//}
userEntity.LoginOk = true; userEntity.LoginOk = true;
#region 写入日志 #region 写入日志
LogEntity logEntity = new LogEntity(); LogEntity logEntity = new LogEntity();


+ 4
- 4
Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/UserApi.cs View File

@@ -343,10 +343,10 @@ namespace Learun.Application.WebApi
{ {
return Fail("账户被系统锁定,请联系管理员!"); return Fail("账户被系统锁定,请联系管理员!");
} }
if (userEntity.F_HaveLogMark == true)
{
return Fail("当前用户非首次登录,请使用账号密码进行登录!");
}
//if (userEntity.F_HaveLogMark == true)
//{
// return Fail("当前用户非首次登录,请使用账号密码进行登录!");
//}
userEntity.LoginOk = true; userEntity.LoginOk = true;


#region 写入日志 #region 写入日志


+ 1
- 1
Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/UsernologinApi.cs View File

@@ -108,7 +108,7 @@ namespace Learun.Application.WebApi
{ {
return Fail("输入错误!"); return Fail("输入错误!");
} }
if (loginModel.codeType == "firstlogin" && userEntity.F_HaveLogMark == true)
if (loginModel.codeType == "firstlogin")
{ {
return Fail("当前用户非首次登录,请使用账号密码进行登录!"); return Fail("当前用户非首次登录,请使用账号密码进行登录!");
} }


+ 16
- 12
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Base/SystemModule/DataItem/DataItemDetailEntity.cs View File

@@ -128,42 +128,46 @@ namespace Learun.Application.Base.SystemModule
/// <returns></returns> /// <returns></returns>
[Column("F_MODIFYUSERNAME")] [Column("F_MODIFYUSERNAME")]
public string F_ModifyUserName { get; set; } public string F_ModifyUserName { get; set; }


[Column("F_ITEMCODEGB")]
public string F_ItemCodeGB { get; set; }
/// <summary> /// <summary>
/// 类型 /// 类型
/// </summary> /// </summary>
/// <returns></returns> /// <returns></returns>
[Column("F_TYPE")]
public string F_Type { get; set; }
//[Column("F_TYPE")]
//public string F_Type { get; set; }
/// <summary> /// <summary>
/// 长度 /// 长度
/// </summary> /// </summary>
/// <returns></returns> /// <returns></returns>
[Column("F_LENGTH")]
public string F_Length { get; set; }
//[Column("F_LENGTH")]
//public string F_Length { get; set; }
/// <summary> /// <summary>
/// 约束 /// 约束
/// </summary> /// </summary>
/// <returns></returns> /// <returns></returns>
[Column("F_CONSTRAINT")]
public string F_Constraint { get; set; }
//[Column("F_CONSTRAINT")]
//public string F_Constraint { get; set; }
/// <summary> /// <summary>
/// 值空间 /// 值空间
/// </summary> /// </summary>
/// <returns></returns> /// <returns></returns>
[Column("F_VALUESPACE")]
public string F_ValueSpace { get; set; }
//[Column("F_VALUESPACE")]
//public string F_ValueSpace { get; set; }
/// <summary> /// <summary>
/// 解释举例 /// 解释举例
/// </summary> /// </summary>
/// <returns></returns> /// <returns></returns>
[Column("F_EXPLAIN")]
public string F_Explain { get; set; }
//[Column("F_EXPLAIN")]
//public string F_Explain { get; set; }
/// <summary> /// <summary>
/// 引用编号 /// 引用编号
/// </summary> /// </summary>
/// <returns></returns> /// <returns></returns>
[Column("F_REFERENCENUM")]
public string F_ReferenceNum { get; set; }
//[Column("F_REFERENCENUM")]
//public string F_ReferenceNum { get; set; }
#endregion #endregion


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


+ 1
- 2
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Base/SystemModule/DataItem/DataItemService.cs View File

@@ -57,8 +57,7 @@ namespace Learun.Application.Base.SystemModule
t.F_CreateUserName, t.F_CreateUserName,
t.F_ModifyDate, t.F_ModifyDate,
t.F_ModifyUserId, t.F_ModifyUserId,
t.F_ModifyUserName,
t.F_Type,t.F_Length,t.F_Constraint,t.F_ValueSpace,t.F_Explain,t.F_ReferenceNum
t.F_ModifyUserName
"; ";
} }
#endregion #endregion


Loading…
Cancel
Save