bug修复

parent e6f0b86b
......@@ -19,14 +19,14 @@ public PerformanceDbContext(DbContextOptions<PerformanceDbContext> options)
public virtual DbSet<sys_role> Sys_Role { get; set; }
public virtual DbSet<sys_role_menu> Sys_Role_Menu { get; set; }
public virtual DbSet<sys_user_role> Sys_User_Role { get; set; }
public virtual DbSet<per_allot> Sys_Allot { get; set; }
public virtual DbSet<per_sheet> Im_Sheet { get; set; }
public virtual DbSet<per_allot> per_allot { get; set; }
public virtual DbSet<per_sheet> per_sheet { get; set; }
public virtual DbSet<im_employee> Im_Employee { get; set; }
public virtual DbSet<im_header> Im_Header { get; set; }
public virtual DbSet<im_data> Im_Data { get; set; }
public virtual DbSet<im_accountbasic> Im_AccountBasic { get; set; }
public virtual DbSet<res_accountdoctor> Im_AccountDoctor { get; set; }
public virtual DbSet<res_accountnurse> Im_AccountNurse { get; set; }
public virtual DbSet<res_accountdoctor> res_accountdoctor { get; set; }
public virtual DbSet<res_accountnurse> res_accountnurse { get; set; }
public virtual DbSet<cof_drugprop> Cof_DrugProp { get; set; }
public virtual DbSet<cof_income> Cof_Income { get; set; }
}
......
......@@ -28,7 +28,7 @@ public class per_allot
/// <summary>
/// CreateUser
/// </summary>
public int CreateUser { get; set; }
public int? CreateUser { get; set; }
/// <summary>
/// 绩效发放年
......
......@@ -76,7 +76,8 @@ public List<TEntity> GetEntities()
public List<TEntity> GetEntities(Expression<Func<TEntity, bool>> exp)
{
return CompileQuery(exp).ToList();
var query = CompileQuery(exp);
return query == null || query.Count() == 0 ? null : query.ToList();
}
public List<TEntity> GetEntitiesForPaging(int Page, int pageSize, Expression<Func<TEntity, bool>> exp)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment