Person_PersonsService 修改多DbContext 实体导致的错误
This commit is contained in:
parent
22661b6f0e
commit
7eb0c0d59c
Binary file not shown.
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue