|
@@ -531,8 +531,6 @@ public class OrderController : BaseController
|
|
|
{
|
|
|
var (total, items) = await _orderSuperviseRepository.Queryable()
|
|
|
.Includes(x => x.Order)
|
|
|
- .Includes(x => x.Organize)
|
|
|
- .Includes(x => x.CrOrganize)
|
|
|
.WhereIF(!string.IsNullOrEmpty(dto.Keyword), d => d.Order.Title.Contains(dto.Keyword!) || d.Order.No.Contains(dto.Keyword!))
|
|
|
.WhereIF(dto.SuperviseState > 0, x => x.State == dto.SuperviseState)
|
|
|
.OrderByDescending(x => x.CreationTime)
|
|
@@ -556,6 +554,7 @@ public class OrderController : BaseController
|
|
|
throw UserFriendlyException.SameMessage("无效工单");
|
|
|
|
|
|
var model = _mapper.Map<OrderSupervise>(dto);
|
|
|
+ model.CreatorOrgName = _sessionContext.OrgName;
|
|
|
model.State = 0;
|
|
|
await _orderSuperviseRepository.AddAsync(model, HttpContext.RequestAborted);
|
|
|
}
|
|
@@ -616,7 +615,6 @@ public class OrderController : BaseController
|
|
|
{
|
|
|
return await _orderSuperviseRepository.Queryable()
|
|
|
.Includes(x => x.Order)
|
|
|
- .Includes(x => x.Organize)
|
|
|
.FirstAsync(x => x.Id == id);
|
|
|
}
|
|
|
|
|
@@ -635,8 +633,6 @@ public class OrderController : BaseController
|
|
|
{
|
|
|
var (total, items) = await _orderUrgeRepository.Queryable()
|
|
|
.Includes(x => x.Order)
|
|
|
- .Includes(x => x.Organize)
|
|
|
- .Includes(x => x.CrOrganize)
|
|
|
.WhereIF(!string.IsNullOrEmpty(dto.Keyword), d => d.Order.Title.Contains(dto.Keyword!) || d.Order.No.Contains(dto.Keyword!))
|
|
|
.WhereIF(dto.SuperviseState > 0, x => x.State == dto.SuperviseState)
|
|
|
.OrderByDescending(x => x.CreationTime)
|
|
@@ -719,7 +715,6 @@ public class OrderController : BaseController
|
|
|
{
|
|
|
return await _orderUrgeRepository.Queryable()
|
|
|
.Includes(x => x.Order)
|
|
|
- .Includes(x => x.Organize)
|
|
|
.FirstAsync(x => x.Id == id);
|
|
|
}
|
|
|
|