fix sqlserver数据库下bug
This commit is contained in:
parent
7d90b1d7d2
commit
8be3046ae2
@ -11,7 +11,7 @@ namespace ZR.Model.System
|
|||||||
public class SysLogininfor: SysBase
|
public class SysLogininfor: SysBase
|
||||||
{
|
{
|
||||||
//[Key]
|
//[Key]
|
||||||
[SugarColumn(IsPrimaryKey = true)]
|
[SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
|
||||||
public long infoId { get; set; }
|
public long infoId { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|||||||
@ -8,7 +8,7 @@ namespace ZR.Model.System
|
|||||||
[SqlSugar.SugarTable("sys_oper_log")]
|
[SqlSugar.SugarTable("sys_oper_log")]
|
||||||
public class SysOperLog
|
public class SysOperLog
|
||||||
{
|
{
|
||||||
[SqlSugar.SugarColumn(IsPrimaryKey = true)]
|
[SqlSugar.SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
|
||||||
public long OperId { get; set; }
|
public long OperId { get; set; }
|
||||||
/** 操作模块 */
|
/** 操作模块 */
|
||||||
//@Excel(name = "操作模块")
|
//@Excel(name = "操作模块")
|
||||||
|
|||||||
@ -67,10 +67,10 @@ namespace ZR.Repository.System
|
|||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public List<SysUser> GetSysUsersByRoleId(long roleId)
|
public List<SysUser> GetSysUsersByRoleId(long roleId)
|
||||||
{
|
{
|
||||||
return Db.Queryable<SysUserRole, SysUser>((t1, user) => new JoinQueryInfos(
|
return Db.Queryable<SysUserRole, SysUser>((t1, u) => new JoinQueryInfos(
|
||||||
JoinType.Left, t1.UserId == user.UserId))
|
JoinType.Left, t1.UserId == u.UserId))
|
||||||
.Where((t1, user) => t1.RoleId == roleId && user.DelFlag == "0")
|
.Where((t1, u) => t1.RoleId == roleId && u.DelFlag == "0")
|
||||||
.Select((t1, user) => user)
|
.Select((t1, u) => u)
|
||||||
.ToList();
|
.ToList();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user