UserNotificationCount 报错处理
This commit is contained in:
parent
621a2584eb
commit
956503400c
@ -65,7 +65,7 @@ namespace APT.FM.WebApi.Controllers.Api
|
|||||||
}
|
}
|
||||||
if (pageFilter.Parameter1.Equals("2"))
|
if (pageFilter.Parameter1.Equals("2"))
|
||||||
{
|
{
|
||||||
result = GetOrderPageEntities<T_FM_NOTIFICATION_TASK>(s => s.USER_ID == userId && (s.NOTICE_STATUS == 1 || s.NOTICE_STATUS == 2) && s.NOTICE_TYPE != 2 && s.NOTICE_TYPE != 7 , pageFilter);
|
result = GetOrderPageEntities<T_FM_NOTIFICATION_TASK>(s => s.USER_ID == userId && (s.NOTICE_STATUS == 1 || s.NOTICE_STATUS == 2) && s.NOTICE_TYPE != 2 && s.NOTICE_TYPE != 7, pageFilter);
|
||||||
}
|
}
|
||||||
if (pageFilter.Parameter1.Equals("3") && todayNewCount > 0)
|
if (pageFilter.Parameter1.Equals("3") && todayNewCount > 0)
|
||||||
{
|
{
|
||||||
@ -159,7 +159,20 @@ namespace APT.FM.WebApi.Controllers.Api
|
|||||||
appFilter.Order = DbOrder.DESC;
|
appFilter.Order = DbOrder.DESC;
|
||||||
appFilter.Sort = "CREATE_TIME";
|
appFilter.Sort = "CREATE_TIME";
|
||||||
//查询指定租户
|
//查询指定租户
|
||||||
appFilter.SpecifyTenant = "0001";
|
string Tenant = "00001";
|
||||||
|
// wyw 改为动态获取
|
||||||
|
if (HttpContext.Request.Headers.ContainsKey("Tenant") || HttpContext.Request.Headers.ContainsKey("tenant"))
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
Tenant = HttpContext.Request.Headers["Tenant"];
|
||||||
|
}
|
||||||
|
catch
|
||||||
|
{
|
||||||
|
Tenant = HttpContext.Request.Headers["tenant"];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
appFilter.SpecifyTenant = Tenant;
|
||||||
appFilter.IsSpecifyDb = true;
|
appFilter.IsSpecifyDb = true;
|
||||||
var appVersion = this.GetEntity<T_PF_APP_VERSION>(null, appFilter, "Nav_Files.Nav_ImgFile.Nav_File");
|
var appVersion = this.GetEntity<T_PF_APP_VERSION>(null, appFilter, "Nav_Files.Nav_ImgFile.Nav_File");
|
||||||
if (appVersion != null)
|
if (appVersion != null)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user