Merge branch 'master' of http://121.41.2.71:3000/wyw/mh_jy_safe
This commit is contained in:
commit
68543a387e
@ -279,6 +279,11 @@ namespace APT.FM.WebApi.Controllers.Api.FM
|
|||||||
|
|
||||||
List<Guid> listDepIDs = new List<Guid>();
|
List<Guid> listDepIDs = new List<Guid>();
|
||||||
if (this.Request.Headers.ContainsKey("Datarule"))
|
if (this.Request.Headers.ContainsKey("Datarule"))
|
||||||
|
{
|
||||||
|
string telnetCode = Request.Headers["Tenant"];
|
||||||
|
Guid? ORGID = APT.Infrastructure.Api.AppContext.CurrentSession.OrgId;
|
||||||
|
|
||||||
|
if (ORGID.HasValue && ORGID.Value.ToString().StartsWith(telnetCode))
|
||||||
{
|
{
|
||||||
string strDeps = this.Request.Headers["Datarule"].ToString();
|
string strDeps = this.Request.Headers["Datarule"].ToString();
|
||||||
if (strDeps.Length > 0)
|
if (strDeps.Length > 0)
|
||||||
@ -295,9 +300,14 @@ namespace APT.FM.WebApi.Controllers.Api.FM
|
|||||||
}
|
}
|
||||||
express = express.And(e => e.DEPARTMENT_ID.HasValue && listDepIDs.Contains(e.DEPARTMENT_ID.Value));
|
express = express.And(e => e.DEPARTMENT_ID.HasValue && listDepIDs.Contains(e.DEPARTMENT_ID.Value));
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
var result = this.WitOrderPaged(express, pageFilter);
|
var result = this.WitOrderPaged(express, pageFilter);
|
||||||
if (result.Data.Count() > 0)
|
if (result.Data != null && result.Data.Count() > 0)
|
||||||
{
|
{
|
||||||
var userIds = result.Data.Select(t => t.ID).ToList();
|
var userIds = result.Data.Select(t => t.ID).ToList();
|
||||||
var signs = this.GetEntities<T_FM_USER_SIGN_FILE>(t => userIds.Contains(t.USER_ID), new BaseFilter(pageFilter.OrgId));
|
var signs = this.GetEntities<T_FM_USER_SIGN_FILE>(t => userIds.Contains(t.USER_ID), new BaseFilter(pageFilter.OrgId));
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user