|
@@ -2989,7 +2989,7 @@ public class OrderController : BaseController
|
|
|
{
|
|
|
var model = await _orderScreenRepository.Queryable(canView: false)
|
|
|
.Includes(x => x.Order)
|
|
|
- .Includes(x=>x.VisitDetail)
|
|
|
+ .Includes(x => x.VisitDetail)
|
|
|
.Includes(x => x.Workflow, d => d.Steps)
|
|
|
.Includes(x => x.Visit, d => d.Order)
|
|
|
.FirstAsync(x => x.Id == id);
|
|
@@ -5501,15 +5501,15 @@ public class OrderController : BaseController
|
|
|
if (string.IsNullOrEmpty(order.WorkflowId))
|
|
|
throw UserFriendlyException.SameMessage("该工单未开启流程");
|
|
|
var dto = await _workflowApplication.GetNextStepsAsync(order.WorkflowId, HttpContext.RequestAborted);
|
|
|
- var isAqyh = false;//行业类型是否为随手拍安全隐患
|
|
|
- if (isSnapshotEnable)
|
|
|
- {
|
|
|
- var orderSnapShot = await _orderSnapshotRepository.GetAsync(orderId, HttpContext.RequestAborted);
|
|
|
- isAqyh = orderSnapShot != null && string.CompareOrdinal(orderSnapShot.IndustryName, "安全隐患") == 0;
|
|
|
- }
|
|
|
- if (!isAqyh)
|
|
|
- dto.Steps = dto.Steps.Where(d => string.CompareOrdinal(d.Value, "网格员") != 0
|
|
|
- && string.CompareOrdinal(d.Value, "工单标记") != 0).ToList();
|
|
|
+ //var isAqyh = false;//行业类型是否为随手拍安全隐患
|
|
|
+ //if (isSnapshotEnable)
|
|
|
+ //{
|
|
|
+ // var orderSnapShot = await _orderSnapshotRepository.GetAsync(orderId, HttpContext.RequestAborted);
|
|
|
+ // isAqyh = orderSnapShot != null && string.CompareOrdinal(orderSnapShot.IndustryName, "安全隐患") == 0;
|
|
|
+ //}
|
|
|
+ //if (!isAqyh)
|
|
|
+ // dto.Steps = dto.Steps.Where(d => string.CompareOrdinal(d.Value, "网格员") != 0
|
|
|
+ // && string.CompareOrdinal(d.Value, "工单标记") != 0).ToList();
|
|
|
|
|
|
dto.ExpiredTime = order.ExpiredTime;
|
|
|
dto.Content = order.Content;
|
|
@@ -5538,7 +5538,13 @@ public class OrderController : BaseController
|
|
|
.ToList().Adapt<List<SystemDicDataOutDto>>();
|
|
|
|
|
|
rsp.CounterSignType = order.CounterSignType;
|
|
|
- await _orderSnapshotApplication.GetNextStepsDatabaseAsync(rsp, orderId);
|
|
|
+
|
|
|
+ //随手拍业务逻辑处理,并查询行业类型是否为随手拍安全隐患
|
|
|
+ var isAqyh = await _orderSnapshotApplication.GetNextStepsDatabaseAsync(rsp, orderId);
|
|
|
+ if (!isAqyh)
|
|
|
+ rsp.Steps = rsp.Steps.Where(d => string.CompareOrdinal(d.Value, "网格员") != 0
|
|
|
+ && string.CompareOrdinal(d.Value, "工单标记") != 0).ToList();
|
|
|
+
|
|
|
return rsp;
|
|
|
}
|
|
|
|
|
@@ -5554,7 +5560,7 @@ public class OrderController : BaseController
|
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
|
- /// 查询工单办理下一步可选节点(带推荐部门)
|
|
|
+ /// 查询工单办理下一步可选节点(带推荐部门)工单代办业务
|
|
|
/// </summary>
|
|
|
[HttpGet("nextsteps_commission/{orderId}")]
|
|
|
public async Task<NextStepsWithOpinionDto<RecommendStepOption>> GetNextStepsWithRecommendCommission(string orderId)
|