Compare commits
2 Commits
7eaa61678b
...
353e03c4fe
| Author | SHA1 | Date |
|---|---|---|
|
|
353e03c4fe | |
|
|
aa60cb4822 |
|
|
@ -27,7 +27,7 @@ namespace IRaCIS.Core.Application.ViewModel
|
||||||
|
|
||||||
public UserTypeEnum? OptUserTypeEnum { get; set; }
|
public UserTypeEnum? OptUserTypeEnum { get; set; }
|
||||||
|
|
||||||
public UserLogJsonObj JsonObj { get; set; }
|
public string JsonObj { get; set; }
|
||||||
|
|
||||||
public string IPRegion { get; set; }
|
public string IPRegion { get; set; }
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -41,7 +41,7 @@ namespace IRaCIS.Core.Application.Triggers.AfterSaveTrigger
|
||||||
|
|
||||||
}).FirstOrDefaultAsync();
|
}).FirstOrDefaultAsync();
|
||||||
|
|
||||||
userlog.JsonObj = obj;
|
userlog.JsonObj = obj.ToJsonStr();
|
||||||
|
|
||||||
await _identityUserRepository.SaveChangesAsync();
|
await _identityUserRepository.SaveChangesAsync();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,7 @@ public class UserLog : BaseAddAuditEntity
|
||||||
public string ActionUserName { get; set; }
|
public string ActionUserName { get; set; }
|
||||||
|
|
||||||
[MaxLength]
|
[MaxLength]
|
||||||
public UserLogJsonObj JsonObj { get; set; }
|
public string JsonObj { get; set; }
|
||||||
|
|
||||||
|
|
||||||
[Comment("被操作的对象 admin 修改张三信息 张三是被操作对象")]
|
[Comment("被操作的对象 admin 修改张三信息 张三是被操作对象")]
|
||||||
|
|
@ -66,7 +66,6 @@ public class UserLogJsonObj
|
||||||
|
|
||||||
public string DepartmentName { get; set; }
|
public string DepartmentName { get; set; }
|
||||||
|
|
||||||
[NotMapped]
|
|
||||||
public List<UserRoleLogObj> UserRoleList { get; set; }
|
public List<UserRoleLogObj> UserRoleList { get; set; }
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -63,15 +63,6 @@ public class IRaCISDBContext : DbContext
|
||||||
protected override void OnModelCreating(ModelBuilder modelBuilder)
|
protected override void OnModelCreating(ModelBuilder modelBuilder)
|
||||||
{
|
{
|
||||||
|
|
||||||
modelBuilder.Entity<UserLog>(entity =>
|
|
||||||
{
|
|
||||||
entity.OwnsOne(x => x.JsonObj, ownedNavigationBuilder =>
|
|
||||||
{
|
|
||||||
ownedNavigationBuilder.ToJson();
|
|
||||||
});
|
|
||||||
|
|
||||||
});
|
|
||||||
|
|
||||||
modelBuilder.Entity<TestLength>(entity =>
|
modelBuilder.Entity<TestLength>(entity =>
|
||||||
{
|
{
|
||||||
// 使用部分加密值转换器,前 2 个字符不加密,方便模糊搜索
|
// 使用部分加密值转换器,前 2 个字符不加密,方便模糊搜索
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue