Person_PersonsService 修改多DbContext 实体导致的错误
This commit is contained in:
Binary file not shown.
@@ -46,6 +46,11 @@ namespace BLL
|
|||||||
/// <returns></returns>
|
/// <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)
|
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);
|
IQueryable<Model.Person_Persons> getDataList = getDataLists.OrderBy(x => x.UnitId).ThenBy(x => x.DepartId);
|
||||||
if (!string.IsNullOrEmpty(unitId) && unitId != Const._Null)
|
if (!string.IsNullOrEmpty(unitId) && unitId != Const._Null)
|
||||||
{
|
{
|
||||||
@@ -55,8 +60,6 @@ namespace BLL
|
|||||||
{
|
{
|
||||||
getDataList = getDataList.Where(e => e.DepartId == departId);
|
getDataList = getDataList.Where(e => e.DepartId == departId);
|
||||||
}
|
}
|
||||||
|
|
||||||
var db1 = Funs.DB;
|
|
||||||
if (!string.IsNullOrEmpty(projetcId) && projetcId != Const._Null)
|
if (!string.IsNullOrEmpty(projetcId) && projetcId != Const._Null)
|
||||||
{
|
{
|
||||||
var idLists = (from x in db1.SitePerson_PersonItem
|
var idLists = (from x in db1.SitePerson_PersonItem
|
||||||
|
|||||||
Reference in New Issue
Block a user