Parcourir la source

update load 公务资料

yuanrf il y a 5 mois
Parent
commit
6e1b49e2fa
1 fichiers modifiés avec 8 ajouts et 0 suppressions
  1. 8 0
      OASystem/OASystem.Api/Controllers/ResourceController.cs

+ 8 - 0
OASystem/OASystem.Api/Controllers/ResourceController.cs

@@ -1525,6 +1525,9 @@ Inner Join Sys_Department as d With(Nolock) On u.DepId=d.Id Where m.Id={0} ", _m
         [ProducesResponseType(typeof(JsonView), StatusCodes.Status200OK)]
         public async Task<IActionResult> QueryInvitationOfficialActivityData(QueryInvitationOfficialActivityDataDto dto)
         {
+
+            var ExcludedKeyStr = new string[] { "快递费" };
+
             try
             {
                 #region 参数验证
@@ -1549,6 +1552,11 @@ Inner Join Sys_Department as d With(Nolock) On u.DepId=d.Id Where m.Id={0} ", _m
                 }
                 sqlWhere += string.Format(@"And i.Isdel={0}", 0);
 
+                foreach (var item in ExcludedKeyStr)
+                {
+                    sqlWhere += $" And i.UnitName not like '%{item}%' ";
+                }
+
                 if (!string.IsNullOrEmpty(sqlWhere.Trim()))
                 {
                     Regex r = new Regex("And");