From 5e4c26e68188e5bfa2091c33a01c15d8ed475b18 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BD=95=E7=BE=8E=E8=8D=A3?= <10755671+mei-rong-he@user.noreply.gitee.com> Date: Mon, 24 Nov 2025 18:34:40 +0800 Subject: [PATCH] 1 --- .../Services/PF/PFApproveCallBackService.cs | 18 +++++++++--------- .../Api/RiskEvaluationController.cs | 8 ++++---- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/APT.BaseData.Services/Services/PF/PFApproveCallBackService.cs b/APT.BaseData.Services/Services/PF/PFApproveCallBackService.cs index 736cf20..8490eb0 100644 --- a/APT.BaseData.Services/Services/PF/PFApproveCallBackService.cs +++ b/APT.BaseData.Services/Services/PF/PFApproveCallBackService.cs @@ -13550,7 +13550,7 @@ namespace APT.BaseData.Services.DomainServices if (c.Contains("、")) { var co = c.Split(new[] { '、' }, StringSplitOptions.RemoveEmptyEntries); - if (co.Length > 0) + if (co.Length > 2) { emeList.Add(co[1]); } @@ -13596,7 +13596,7 @@ namespace APT.BaseData.Services.DomainServices if (c.Contains("、")) { var co = c.Split(new[] { '、' }, StringSplitOptions.RemoveEmptyEntries); - if (co.Length > 0) + if (co.Length > 2) { typeList.Add(co[1]); } @@ -13642,7 +13642,7 @@ namespace APT.BaseData.Services.DomainServices if (c.Contains("、")) { var co = c.Split(new[] { '、' }, StringSplitOptions.RemoveEmptyEntries); - if (co.Length > 0) + if (co.Length > 2) { departList.Add(co[1]); } @@ -13688,7 +13688,7 @@ namespace APT.BaseData.Services.DomainServices if (c.Contains("、")) { var co = c.Split(new[] { '、' }, StringSplitOptions.RemoveEmptyEntries); - if (co.Length > 0) + if (co.Length > 2) { postList.Add(co[1]); } @@ -14435,7 +14435,7 @@ namespace APT.BaseData.Services.DomainServices if (c.Contains("、")) { var co = c.Split(new[] { '、' }, StringSplitOptions.RemoveEmptyEntries); - if (co.Length > 0) + if (co.Length > 2) { mesList.Add(co[1]); } @@ -14481,7 +14481,7 @@ namespace APT.BaseData.Services.DomainServices if (c.Contains("、")) { var co = c.Split(new[] { '、' }, StringSplitOptions.RemoveEmptyEntries); - if (co.Length > 0) + if (co.Length > 2) { emeList.Add(co[1]); } @@ -14527,7 +14527,7 @@ namespace APT.BaseData.Services.DomainServices if (c.Contains("、")) { var co = c.Split(new[] { '、' }, StringSplitOptions.RemoveEmptyEntries); - if (co.Length > 0) + if (co.Length > 2) { typeList.Add(co[1]); } @@ -14574,7 +14574,7 @@ namespace APT.BaseData.Services.DomainServices if (c.Contains("、")) { var co = c.Split(new[] { '、' }, StringSplitOptions.RemoveEmptyEntries); - if (co.Length > 0) + if (co.Length > 2) { departList.Add(co[1]); } @@ -14621,7 +14621,7 @@ namespace APT.BaseData.Services.DomainServices if (c.Contains("、")) { var co = c.Split(new[] { '、' }, StringSplitOptions.RemoveEmptyEntries); - if (co.Length > 0) + if (co.Length > 2) { postList.Add(co[1]); } diff --git a/APT.MicroApi/APT.SK.WebApi/Controllers/Api/RiskEvaluationController.cs b/APT.MicroApi/APT.SK.WebApi/Controllers/Api/RiskEvaluationController.cs index bee03f9..c69d39e 100644 --- a/APT.MicroApi/APT.SK.WebApi/Controllers/Api/RiskEvaluationController.cs +++ b/APT.MicroApi/APT.SK.WebApi/Controllers/Api/RiskEvaluationController.cs @@ -200,10 +200,10 @@ namespace APT.SK.WebApi.Controllers.Api List notices = new List(); if (entity.PUBLISH != null && entity.PUBLISH.Equals("SaveAndNotify")) { - if (departList.Where(t => t.IS_DELETED == false).Count() == 0) - { - throw new Exception("管控层级不能为空"); - } + //if (departList.Where(t => t.IS_DELETED == false).Count() == 0) + //{ + // throw new Exception("管控层级不能为空"); + //} var departmentType = this.GetEntity(t => t.ID == entity.APPLY_DEPARTMENT_ID && t.ENABLE_STATUS == 0)?.DEPARTMENT_TYPE; var param = Enum.GetName(typeof(SKDepartmentTypeEnum), departmentType); entity.STATUS = PFStandardStatus.Approving;