Explorar el Código

Merge branch 'dev' of http://git.12345lm.cn/Fengwo/hotline into dev

qinchaoyue hace 6 meses
padre
commit
bf9e000e79
Se han modificado 1 ficheros con 18 adiciones y 18 borrados
  1. 18 18
      src/Hotline.Api/Controllers/OrderController.cs

+ 18 - 18
src/Hotline.Api/Controllers/OrderController.cs

@@ -285,9 +285,9 @@ public class OrderController : BaseController
             .WhereIF(dto.PubState == EPubState.Pub, d => d.Status >= EOrderStatus.Published)
             .WhereIF(dto.PubState == EPubState.NoPub, d => d.Status < EOrderStatus.Published)
             .WhereIF(!string.IsNullOrEmpty(dto.Channel), d => d.SourceChannelCode == dto.Channel)
-			//.WhereIF(!string.IsNullOrEmpty(dto.PubMan),
-			//    d => d.AcceptorName.Contains(dto.PubMan!) || d.AcceptorStaffNo.Contains(dto.PubMan!))
-			.WhereIF(dto.PubRange == EPublicState.Pub, d => d.OrderPublish.PublishState)
+            //.WhereIF(!string.IsNullOrEmpty(dto.PubMan),
+            //    d => d.AcceptorName.Contains(dto.PubMan!) || d.AcceptorStaffNo.Contains(dto.PubMan!))
+            .WhereIF(dto.PubRange == EPublicState.Pub, d => d.OrderPublish.PublishState)
             .WhereIF(dto.PubRange == EPublicState.NoPub, d => !d.OrderPublish.PublishState)
             .WhereIF(dto.IsProvinceOrder.HasValue && dto.IsProvinceOrder == true, d => d.Source == ESource.ProvinceStraight)
             .WhereIF(dto.IsProvinceOrder.HasValue && dto.IsProvinceOrder == false, d => d.Source != ESource.ProvinceStraight)
@@ -795,23 +795,23 @@ public class OrderController : BaseController
     [HttpGet("publish/base-data")]
     public async Task<object> PublishBaseData()
     {
-	    var rsp = new
-	    {
-		    ChannelOptions = _sysDicDataCacheManager.GetSysDicDataCache(TimeLimitBaseDataConsts.SourceChannel)
-	    };
-	    return rsp;
+        var rsp = new
+        {
+            ChannelOptions = _sysDicDataCacheManager.GetSysDicDataCache(TimeLimitBaseDataConsts.SourceChannel)
+        };
+        return rsp;
     }
 
-	#endregion
+    #endregion
 
-	#region 工单回访
+    #region 工单回访
 
-	/// <summary>
-	/// 回访列表
-	/// </summary>
-	/// <param name="dto"></param>
-	/// <returns></returns>
-	[HttpGet("visit")]
+    /// <summary>
+    /// 回访列表
+    /// </summary>
+    /// <param name="dto"></param>
+    /// <returns></returns>
+    [HttpGet("visit")]
     public async Task<PagedDto<OrderVisitDto>> QueryOrderVisitList([FromQuery] QueryOrderVisitDto dto)
     {
         var (total, items) = await _orderVisitRepository.Queryable()
@@ -3115,7 +3115,7 @@ public class OrderController : BaseController
 
         //订阅此事件的内部处理工单数据只能更新各自业务的字段,不能全部更新
         //新增工单其他处理事件  (受理短信)
-        if (!string.IsNullOrEmpty(order.Contact) && order.Contact.Length==11)
+        if (!string.IsNullOrEmpty(order.Contact) && order.Contact.Length == 11)
         {
             await _publisher.PublishAsync(new AddOrderNotify(order), PublishStrategy.ParallelWhenAll, HttpContext.RequestAborted);
         }
@@ -3268,7 +3268,7 @@ public class OrderController : BaseController
             .FirstAsync(d => d.Id == dto.Id);
         if (order == null)
             throw UserFriendlyException.SameMessage("无效工单编号");
-        if (dto.IsEdit == false && order.Status > EOrderStatus.HandOverToUnAccept)
+        if (dto.IsEdit != true && order.Status > EOrderStatus.HandOverToUnAccept)
             throw UserFriendlyException.SameMessage("工单已发起流程,不可编辑");
 
         // 副本工单