tangjiang 7 maanden geleden
bovenliggende
commit
bc480fd02b

+ 2 - 0
src/Hotline.Api/Controllers/DataSharingController.cs

@@ -83,6 +83,8 @@ namespace Hotline.Api.Controllers
                 .WhereIF(!string.IsNullOrEmpty(dto.AcceptTypeCode), p => p.AcceptTypeCode == dto.AcceptTypeCode)
                 .WhereIF(dto.StartTime.HasValue, p => p.CreationTime >= dto.StartTime)
                 .WhereIF(dto.EndTime.HasValue, p => p.CreationTime < dto.EndTime)
+                .WhereIF(dto.HandleStateCode == "1", p => p.Status < EOrderStatus.Filed)
+                .WhereIF(dto.HandleStateCode == "2", p => p.Status >= EOrderStatus.Filed)
                 .OrderByDescending(p => p.CreationTime)
                 .ToPagedListAsync(dto.PageIndex, dto.PageSize, HttpContext.RequestAborted);
 

+ 40 - 63
src/Hotline.Application/Bulletin/BulletinApplication.cs

@@ -7,73 +7,50 @@ using System.Threading.Tasks;
 
 namespace Hotline.Application.Bulletin
 {
-    public class BulletinApplication: IBulletinApplication
+    public class BulletinApplication : IBulletinApplication
     {
 
         public string GetSiteUrls(string sHtmlText)
         {
-
-            ////临时内容
-            //System.Text.StringBuilder sb = new StringBuilder();
-            //sb.Append(sHtmlText);
-            //// 定义正则表达式用来匹配 img 标签
-            //Regex regImg = new Regex(@"<img\b[^<>]*?\bsrc[\s\t\r\n]*=[\s\t\r\n]*[""']?[\s\t\r\n]*(?<imgUrl>[^\s\t\r\n""'<>]*)[^<>]*?/?[\s\t\r\n]*>", RegexOptions.IgnoreCase);
-            //// 搜索匹配的字符串
-            //MatchCollection matches = regImg.Matches(sHtmlText);
-
-
-            //// 定义正则表达式用来匹配 video 标签
-            //Regex regvideo = new Regex(@"<video\b[^<>]*?\bsrc[\s\t\r\n]*=[\s\t\r\n]*[""']?[\s\t\r\n]*(?<imgUrl>[^\s\t\r\n""'<>]*)[^<>]*?/?[\s\t\r\n]*>", RegexOptions.IgnoreCase);
-            //// 搜索匹配的字符串
-            //MatchCollection matchesvideo = regvideo.Matches(sHtmlText);
-
-            //// 获取服务器地址配置
-            //string strSiteUrl = BaseClass.SysBase.e_GetXMLValue("SysWebSite");
-            //string getfileurl = BaseClass.SysBase.e_GetXMLValue("getfileurl");
-            //// 取得匹配项列表 视频
-            //foreach (Match match in matchesvideo)
-            //{
-            //    if (-1 < match.Groups["imgUrl"].Value.IndexOf(getfileurl))
-            //    {
-            //        string imgUrlId = match.Groups["imgUrl"].Value;
-            //        int idStart = imgUrlId.IndexOf("?id=");
-            //        if (idStart > 0)
-            //        {
-            //            var fileid = imgUrlId.Substring(idStart + 4, 36);
-            //            string newfileurl = GetFileUrl(imgUrlId.Substring(idStart + 4, 36));
-            //            sb = sb.Replace(match.Groups["imgUrl"].Value, newfileurl);
-            //        }
-            //    }
-            //    else if (-1 == match.Groups["imgUrl"].Value.IndexOf("http"))
-            //    {
-            //        sb.Replace(match.Groups["imgUrl"].Value, strSiteUrl + match.Groups["imgUrl"].Value);
-            //        sb.Replace(strSiteUrl + strSiteUrl + match.Groups["imgUrl"].Value, strSiteUrl + match.Groups["imgUrl"].Value);
-            //    }
-            //}
-
-            //// 取得匹配项列表
-            //foreach (Match match in matches)
-            //{
-            //    if (-1 < match.Groups["imgUrl"].Value.IndexOf(getfileurl))
-            //    {
-            //        string imgUrlId = match.Groups["imgUrl"].Value;
-            //        int idStart = imgUrlId.IndexOf("?id=");
-            //        if (idStart > 0)
-            //        {
-            //            var fileid = imgUrlId.Substring(idStart + 4, 36);
-            //            string newfileurl = GetFileUrl(imgUrlId.Substring(idStart + 4, 36));
-            //            sb = sb.Replace(match.Groups["imgUrl"].Value, newfileurl);
-            //        }
-            //    }
-            //    else if (-1 == match.Groups["imgUrl"].Value.IndexOf("http"))
-            //    {
-            //        sb.Replace(match.Groups["imgUrl"].Value, strSiteUrl + match.Groups["imgUrl"].Value);
-            //        sb.Replace(strSiteUrl + strSiteUrl + match.Groups["imgUrl"].Value, strSiteUrl + match.Groups["imgUrl"].Value);
-            //    }
-            //}
-
-            //return sb.ToString();
-            return "";
+            sHtmlText = sHtmlText.Replace("&lt;", "<").Replace("&gt;", ">");
+
+            //临时内容
+            System.Text.StringBuilder sb = new StringBuilder();
+            sb.Append(sHtmlText);
+            // 定义正则表达式用来匹配 img 标签
+            Regex regImg = new Regex(@"<img\b[^<>]*?\bsrc[\s\t\r\n]*=[\s\t\r\n]*[""']?[\s\t\r\n]*(?<imgUrl>[^\s\t\r\n""'<>]*)[^<>]*?/?[\s\t\r\n]*>", RegexOptions.IgnoreCase);
+            // 搜索匹配的字符串
+            MatchCollection matches = regImg.Matches(sHtmlText);
+
+            // 定义正则表达式用来匹配 video 标签
+            Regex regvideo = new Regex(@"<video\b[^<>]*?\bsrc[\s\t\r\n]*=[\s\t\r\n]*[""']?[\s\t\r\n]*(?<imgUrl>[^\s\t\r\n""'<>]*)[^<>]*?/?[\s\t\r\n]*>", RegexOptions.IgnoreCase);
+            // 搜索匹配的字符串
+            MatchCollection matchesvideo = regvideo.Matches(sHtmlText);
+
+            // 获取服务器地址配置 
+            string strSiteUrl = "OldFilesUrls";// BaseClass.SysBase.e_GetXMLValue("OldFilesUrls");
+
+            // 取得匹配项列表 视频
+            foreach (Match match in matchesvideo)
+            {
+                if (-1 == match.Groups["imgUrl"].Value.IndexOf("http"))
+                {
+                    sb.Replace(match.Groups["imgUrl"].Value, strSiteUrl + match.Groups["imgUrl"].Value);
+                    sb.Replace(strSiteUrl + strSiteUrl + match.Groups["imgUrl"].Value, strSiteUrl + match.Groups["imgUrl"].Value);
+                }
+            }
+
+            // 取得匹配项列表
+            foreach (Match match in matches)
+            {
+                if (-1 == match.Groups["imgUrl"].Value.IndexOf("http"))
+                {
+                    sb.Replace(match.Groups["imgUrl"].Value, strSiteUrl + match.Groups["imgUrl"].Value);
+                    sb.Replace(strSiteUrl + strSiteUrl + match.Groups["imgUrl"].Value, strSiteUrl + match.Groups["imgUrl"].Value);
+                }
+            }
+
+            return sb.ToString();
         }
     }
 }

+ 5 - 0
src/Hotline.Share/Dtos/DataSharingSearch/GetOrderDetailDto.cs

@@ -52,5 +52,10 @@ namespace Hotline.Share.Dtos.DataSharingSearch
         /// 区域ID
         /// </summary>
         public string? AreaCode { get; set; }
+
+        /// <summary>
+        /// 工单办理状态Code  1:办理中,2:办理完成 ,其他查询全部
+        /// </summary>
+        public string? HandleStateCode { get; set; }
     }
 }

+ 1 - 1
src/Hotline.Share/Hotline.Share.csproj

@@ -7,7 +7,7 @@
     <GenerateDocumentationFile>True</GenerateDocumentationFile>
     <NoWarn>$(NoWarn);1591;8618;</NoWarn>
     <GeneratePackageOnBuild>True</GeneratePackageOnBuild>
-    <Version>1.0.96</Version>
+    <Version>1.0.97</Version>
   </PropertyGroup>
 
   <ItemGroup>