Person_PersonsService 修改多DbContext 实体导致的错误

This commit is contained in:
李鹏飞 2025-02-05 16:10:03 +08:00
parent 22661b6f0e
commit 7eb0c0d59c
2 changed files with 5 additions and 2 deletions

Binary file not shown.

View File

@ -46,6 +46,11 @@ namespace BLL
/// <returns></returns>
public static IEnumerable getListData(string unitId, string departId, string projetcId, string name, string idCard, string isPost, string personType, string account, string[] workPostIds, Grid Grid1)
{
var db1 = Funs.DB;
var getDataLists = from x in db1.Person_Persons
where x.PersonId != Const.sysglyId && x.PersonId != Const.hfnbdId
select x;
IQueryable<Model.Person_Persons> getDataList = getDataLists.OrderBy(x => x.UnitId).ThenBy(x => x.DepartId);
if (!string.IsNullOrEmpty(unitId) && unitId != Const._Null)
{
@ -55,8 +60,6 @@ namespace BLL
{
getDataList = getDataList.Where(e => e.DepartId == departId);
}
var db1 = Funs.DB;
if (!string.IsNullOrEmpty(projetcId) && projetcId != Const._Null)
{
var idLists = (from x in db1.SitePerson_PersonItem