|
@@ -1337,7 +1337,7 @@ public class OrderController : BaseController
|
|
|
Histories = histories,
|
|
|
IsCanUpdate = isCanUpdate
|
|
|
};
|
|
|
- if (_appOptions.Value.IsLuZhou
|
|
|
+ if (_appOptions.Value.IsLuZhou
|
|
|
&& !_sessionContext.OrgIsCenter
|
|
|
&& rsp.OrderVisitModel.Order.IsSecret)
|
|
|
{
|
|
@@ -4027,15 +4027,13 @@ public class OrderController : BaseController
|
|
|
if (_systemSettingCacheManager.Snapshot)
|
|
|
{
|
|
|
await _orderSnapshotRepository.Queryable()
|
|
|
- .Where(m => m.Id == order.Id)
|
|
|
- .Select(m => new { m.IndustryId, m.IndustryName , m.IndustryCase})
|
|
|
+ .LeftJoin<IndustryCase>((snapshot, industryCase) => snapshot.IndustryCase == industryCase.Id)
|
|
|
+ .Where((snapshot, industryCase) => snapshot.Id == order.Id)
|
|
|
+ .Select((snapshot, industryCase) => new { snapshot.IndustryId, snapshot.IndustryName, industryCase.Name, })
|
|
|
.FirstAsync(HttpContext.RequestAborted)
|
|
|
.Then(async snapshot =>
|
|
|
{
|
|
|
- if (snapshot.IndustryCase.IsNullOrEmpty())
|
|
|
- dto.IndustryName = snapshot.IndustryName;
|
|
|
- else
|
|
|
- dto.IndustryName = snapshot.IndustryName + " " + snapshot.IndustryCase;
|
|
|
+ dto.IndustryName = snapshot.IndustryName + " " + snapshot.Name;
|
|
|
dto.IndustryId = snapshot.IndustryId;
|
|
|
});
|
|
|
}
|
|
@@ -4860,7 +4858,7 @@ public class OrderController : BaseController
|
|
|
orderHandleFlowDto.CrossSteps = orderHandleFlowDto.CrossSteps.OrderBy(d => d.Sort).ToList();
|
|
|
var stepCount = orderHandleFlowDto.CrossSteps.Count;
|
|
|
var unhandleSteps = new List<WorkflowStep> { startStep };
|
|
|
- for (int i = 0; i < stepCount; i++)
|
|
|
+ for (int i = 0;i < stepCount;i++)
|
|
|
{
|
|
|
var crossStep = orderHandleFlowDto.CrossSteps[i];
|
|
|
var tempSteps = new List<WorkflowStep>();
|
|
@@ -7203,11 +7201,11 @@ public class OrderController : BaseController
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- /// <summary>
|
|
|
- /// 批量重提 根据传入的工单编号特提所有工单
|
|
|
- /// </summary>
|
|
|
- /// <returns></returns>
|
|
|
- [HttpPost("order_batch_special")]
|
|
|
+ /// <summary>
|
|
|
+ /// 批量重提 根据传入的工单编号特提所有工单
|
|
|
+ /// </summary>
|
|
|
+ /// <returns></returns>
|
|
|
+ [HttpPost("order_batch_special")]
|
|
|
[AllowAnonymous]
|
|
|
public async Task BatchSpecial([FromBody] OrderBatchSpecialDto model)
|
|
|
{
|
|
@@ -7215,15 +7213,15 @@ public class OrderController : BaseController
|
|
|
.Includes(o => o.Workflow)
|
|
|
.Includes(o => o.OrderVisits)
|
|
|
.Where(o => (o.CounterSignType == null || o.CounterSignType == ECounterSignType.Department))
|
|
|
- .In(o=> o.No, model.No).ToListAsync();
|
|
|
+ .In(o => o.No, model.No).ToListAsync();
|
|
|
if (!orders.Any())
|
|
|
throw UserFriendlyException.SameMessage("未查询到工单信息!");
|
|
|
foreach (var order in orders)
|
|
|
{
|
|
|
var nextStep = await _workflowTraceRepository.Queryable()
|
|
|
- .LeftJoin<SystemOrganize>((step, o) => step.HandlerOrgId == o.Id)
|
|
|
- .Where((step,o) => step.WorkflowId == order.WorkflowId && step.TraceStyle == ETraceStyle.Flow && step.StepType == EStepType.Normal
|
|
|
- &&!string.IsNullOrEmpty(step.HandlerOrgId) && o.Level == 1 && step.BusinessType == EBusinessType.Department).OrderByDescending(step => step.CreationTime)
|
|
|
+ .LeftJoin<SystemOrganize>((step, o) => step.HandlerOrgId == o.Id)
|
|
|
+ .Where((step, o) => step.WorkflowId == order.WorkflowId && step.TraceStyle == ETraceStyle.Flow && step.StepType == EStepType.Normal
|
|
|
+ && !string.IsNullOrEmpty(step.HandlerOrgId) && o.Level == 1 && step.BusinessType == EBusinessType.Department).OrderByDescending(step => step.CreationTime)
|
|
|
.FirstAsync(HttpContext.RequestAborted);
|
|
|
if (nextStep is null)
|
|
|
continue;
|