diff --git a/APT.MicroApi/APT.SC.WebApi/Controllers/Api/BIController/BIStatiscialAnalysisController.cs b/APT.MicroApi/APT.SC.WebApi/Controllers/Api/BIController/BIStatiscialAnalysisController.cs index 517adc5..3c20e35 100644 --- a/APT.MicroApi/APT.SC.WebApi/Controllers/Api/BIController/BIStatiscialAnalysisController.cs +++ b/APT.MicroApi/APT.SC.WebApi/Controllers/Api/BIController/BIStatiscialAnalysisController.cs @@ -9617,13 +9617,14 @@ namespace APT.SC.WebApi.Controllers.Api.BIController return SafeExecute>(() => { var orgId = APT.Infrastructure.Api.AppContext.CurrentSession.OrgId.Value; - var mineType = 30; + //var mineType = 30; var departmentIds = new List(); List completionLists = new List(); - List completionSorts = new List(); - if (string.IsNullOrEmpty(filter.Keyword)) - return completionSorts; - var departmentInfo = this.GetEntities(t => t.MineType == int.Parse(filter.Keyword.ToString()), new BaseFilter(orgId)); + List completionSorts = new List(); + //if (string.IsNullOrEmpty(filter.Keyword)) + // return completionSorts; + //var departmentInfo = this.GetEntities(t => t.MineType == int.Parse(filter.Keyword.ToString()), new BaseFilter(orgId)); + var departmentInfo = this.GetEntities(t => t.ENABLE_STATUS == 0 && t.CATEGORY == FMCATEGORY.ACTURE, new BaseFilter(orgId)); if (departmentInfo == null || !departmentInfo.Any()) return completionSorts; else @@ -9708,13 +9709,14 @@ namespace APT.SC.WebApi.Controllers.Api.BIController { dynamic ret = new System.Dynamic.ExpandoObject(); var orgId = APT.Infrastructure.Api.AppContext.CurrentSession.OrgId.Value; - var mineType = 30; + //var mineType = 30; var departmentIds = new List(); List completionLists = new List(); - List completionSorts = new List(); - if (string.IsNullOrEmpty(filter.Keyword)) - return ret; - var departmentInfo = this.GetEntities(t => t.MineType == int.Parse(filter.Keyword.ToString()), new BaseFilter(orgId)); + List completionSorts = new List(); + //if (string.IsNullOrEmpty(filter.Keyword)) + // return ret; + //var departmentInfo = this.GetEntities(t => t.PRODUCTION_UNIT_ID == Guid.Parse(filter.Keyword.ToString()), new BaseFilter(orgId)); + var departmentInfo = this.GetEntities(t => t.ENABLE_STATUS == 0 && t.CATEGORY == FMCATEGORY.ACTURE, new BaseFilter(orgId)); if (departmentInfo == null || !departmentInfo.Any()) return ret; else