Forráskód Böngészése

智能电话号码不包含* 并且只能为11位的手机号

Dun.Jason 5 hónapja
szülő
commit
c4f74abc59
1 módosított fájl, 1 hozzáadás és 1 törlés
  1. 1 1
      src/Hotline.Api/Controllers/AiController.cs

+ 1 - 1
src/Hotline.Api/Controllers/AiController.cs

@@ -1042,7 +1042,7 @@ namespace Hotline.Api.Controllers
                 .WhereIF(!string.IsNullOrEmpty(dto.AcceptType), d => d.Order.AcceptTypeCode == dto.AcceptType)//受理类型
                 .WhereIF(!string.IsNullOrEmpty(dto.No), x => x.No.Contains(dto.No)) //工单编码
                 .WhereIF(!string.IsNullOrEmpty(dto.Title),x=> x.Order.Title.Contains(dto.Title))
-                .Where(x=> !string.IsNullOrEmpty(x.Order.Contact) && SqlFunc.Length(x.Order.Contact)>6)
+                .Where(x=> !string.IsNullOrEmpty(x.Order.Contact) && SqlFunc.Length(x.Order.Contact)==11 && !x.Order.Contact.Contains("*"))
                 .ToListAsync();
             return _mapper.Map<IReadOnlyList<OrderVisitDto>>(items);
         }