|
@@ -566,6 +566,31 @@ public class OrderController : BaseController
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ /// <summary>
|
|
|
+ /// 批量分配回访人员
|
|
|
+ /// </summary>
|
|
|
+ /// <param name="dto"></param>
|
|
|
+ /// <returns></returns>
|
|
|
+ //[HttpPost("visit/distribution")]
|
|
|
+ //public async Task DistributionVisit([FromBody]DistributionVisitDto dto)
|
|
|
+ //{
|
|
|
+ // foreach (var id in dto.Ids)
|
|
|
+ // {
|
|
|
+ // var visit = await _orderVisitRepository.Queryable().FirstAsync(d => d.Id == dto.Id, HttpContext.RequestAborted);
|
|
|
+ // if (visit !=null && visit.VisitState != EVisitState.WaitForVisit)
|
|
|
+ // {
|
|
|
+
|
|
|
+ // }
|
|
|
+ // else
|
|
|
+ // {
|
|
|
+
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+
|
|
|
+
|
|
|
+ //}
|
|
|
+
|
|
|
+
|
|
|
#endregion
|
|
|
|
|
|
#region 工单重办
|
|
@@ -576,15 +601,15 @@ public class OrderController : BaseController
|
|
|
/// <param name="dto"></param>
|
|
|
/// <returns></returns>
|
|
|
[Permission(EPermission.QueryOrderRedoRecord)]
|
|
|
- [HttpGet("redo")]
|
|
|
- public async Task<PagedDto<OrderRedo>> QueryOrderRedo([FromQuery] QueryOrderRedoRecordDto dto)
|
|
|
- {
|
|
|
- var (total, items) = await _orderRedoRepository.Queryable()
|
|
|
- .Includes(x => x.Order)
|
|
|
- .WhereIF(!string.IsNullOrEmpty(dto.Keyword),
|
|
|
- d => d.Order.Title.Contains(dto.Keyword!) || d.Order.No.Contains(dto.Keyword!))
|
|
|
- .OrderByDescending(x => x.CreationTime)
|
|
|
- .ToPagedListAsync(dto.PageIndex, dto.PageSize, HttpContext.RequestAborted);
|
|
|
+ [HttpGet("redo")]
|
|
|
+ public async Task<PagedDto<OrderRedo>> QueryOrderRedo([FromQuery] QueryOrderRedoRecordDto dto)
|
|
|
+ {
|
|
|
+ var (total, items) = await _orderRedoRepository.Queryable()
|
|
|
+ .Includes(x => x.Order)
|
|
|
+ .WhereIF(!string.IsNullOrEmpty(dto.Keyword),
|
|
|
+ d => d.Order.Title.Contains(dto.Keyword!) || d.Order.No.Contains(dto.Keyword!))
|
|
|
+ .OrderByDescending(x => x.CreationTime)
|
|
|
+ .ToPagedListAsync(dto.PageIndex, dto.PageSize, HttpContext.RequestAborted);
|
|
|
|
|
|
return new PagedDto<OrderRedo>(total, items);
|
|
|
}
|