|
@@ -13,6 +13,7 @@ using Hotline.Caching.Interfaces;
|
|
|
using Hotline.FlowEngine.Workflows;
|
|
|
using Hotline.Share.Dtos.CallCenter;
|
|
|
using MapsterMapper;
|
|
|
+using XF.Domain.Exceptions;
|
|
|
|
|
|
namespace Hotline.Api.Controllers.Bi
|
|
|
{
|
|
@@ -318,6 +319,7 @@ namespace Hotline.Api.Controllers.Bi
|
|
|
[HttpGet("special_data_list/list")]
|
|
|
public async Task<PagedDto<OrderSpecialDto>> List([FromQuery] OrderSpecialListDto dto)
|
|
|
{
|
|
|
+ if(!dto.StartTime.HasValue || !dto.EndTime.HasValue) throw UserFriendlyException.SameMessage("请选择时间!");
|
|
|
var (total, items) = await _orderSpecialRepository.Queryable()
|
|
|
.Includes(x => x.Order)
|
|
|
.WhereIF(!string.IsNullOrEmpty(dto.Keyword),
|