|
@@ -3649,6 +3649,10 @@ public class OrderController : BaseController
|
|
|
[HttpGet("history")]
|
|
|
public async Task<PagedDto<OrderHistoryOutDto>> Query([FromQuery] QueryOrderHistoryDto dto)
|
|
|
{
|
|
|
+ if (dto.PhoneNo.Equals("信息保密"))
|
|
|
+ {
|
|
|
+ return new PagedDto<OrderHistoryOutDto>() { };
|
|
|
+ }
|
|
|
var query = _orderRepository.Queryable();
|
|
|
|
|
|
if (_appOptions.Value.IsLuZhou && !_sessionContext.OrgIsCenter)
|
|
@@ -3670,6 +3674,7 @@ public class OrderController : BaseController
|
|
|
var (total, items) = await query
|
|
|
.Includes(d => d.OrderScreens)
|
|
|
.Where(d => d.Contact == dto.PhoneNo)
|
|
|
+ .WhereIF(_sessionContext.OrgIsCenter==false,d=>d.IsSecret==false)
|
|
|
.WhereIF(!string.IsNullOrEmpty(dto.OrderId), d => d.Id != dto.OrderId)
|
|
|
.WhereIF(!string.IsNullOrEmpty(dto.Keyword), d => d.Title.Contains(dto.Keyword!) || d.No.Contains(dto.Keyword!))
|
|
|
.Select(d => new OrderHistoryOutDto
|