|
@@ -69,6 +69,7 @@ public class OrderController : BaseController
|
|
|
private readonly IRepository<OrderPublishHistory> _orderPublishHistoryRepository;
|
|
|
private readonly IRepositoryTextSearch<OrderTs> _repositoryts;
|
|
|
private readonly IQualityRepository _qualityRepository;
|
|
|
+ private readonly IRepository<Workflow> _workflowRepository;
|
|
|
|
|
|
|
|
|
public OrderController(
|
|
@@ -98,7 +99,8 @@ public class OrderController : BaseController
|
|
|
IRepository<OrderScreen> orderScreenRepository,
|
|
|
IRepository<OrderPublishHistory> orderPublishHistoryRepository,
|
|
|
IRepositoryTextSearch<OrderTs> repositoryts,
|
|
|
- IQualityRepository qualityRepository
|
|
|
+ IQualityRepository qualityRepository,
|
|
|
+ IRepository<Workflow> workflowRepository
|
|
|
)
|
|
|
{
|
|
|
_orderDomainService = orderDomainService;
|
|
@@ -128,6 +130,7 @@ public class OrderController : BaseController
|
|
|
_orderPublishHistoryRepository = orderPublishHistoryRepository;
|
|
|
_repositoryts = repositoryts;
|
|
|
_qualityRepository =qualityRepository;
|
|
|
+ _workflowRepository = workflowRepository;
|
|
|
}
|
|
|
|
|
|
#region 工单发布
|
|
@@ -851,10 +854,21 @@ public class OrderController : BaseController
|
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
|
- /// 列表页面基础数据
|
|
|
+ /// 查询工单甄别流程参数
|
|
|
/// </summary>
|
|
|
/// <returns></returns>
|
|
|
- [HttpGet("screen/base")]
|
|
|
+ [HttpGet("screen/workflow/{id}")]
|
|
|
+ public async Task<string> GetScreenWorkFlowAsync(string id)
|
|
|
+ {
|
|
|
+ var workflow = await _workflowRepository.Queryable().FirstAsync(x=>x.ExternalId == id);
|
|
|
+ return workflow.Id;
|
|
|
+ }
|
|
|
+
|
|
|
+ /// <summary>
|
|
|
+ /// 列表页面基础数据
|
|
|
+ /// </summary>
|
|
|
+ /// <returns></returns>
|
|
|
+ [HttpGet("screen/base")]
|
|
|
public async Task<object> ScreenBaseData()
|
|
|
{
|
|
|
var rsp = new
|