|
@@ -4189,27 +4189,7 @@ public class OrderController : BaseController
|
|
|
cancellationToken: HttpContext.RequestAborted);
|
|
|
//}
|
|
|
await _workflowApplication.RecallAsync(recall, expiredTime.ExpiredTime, order.Status >= EOrderStatus.Filed, HttpContext.RequestAborted);
|
|
|
- var publish = await _orderPublishRepository.GetAsync(x => x.OrderId == dto.OrderId);
|
|
|
- if (publish != null)
|
|
|
- {
|
|
|
- var publishHistory = _mapper.Map<OrderPublishHistory>(publish);
|
|
|
- publishHistory.OrderPublishId = publish.Id;
|
|
|
- publishHistory.ArrangeTitleAfter = publish.ArrangeTitle;
|
|
|
- publishHistory.ArrangeTitleBefor = publish.ArrangeTitle;
|
|
|
- publishHistory.ArrangeContentAfter = publish.ArrangeContent;
|
|
|
- publishHistory.ArrangeContentBefor = publish.ArrangeContent;
|
|
|
- publishHistory.ArrangeOpinionAfter = publish.ArrangeOpinion;
|
|
|
- publishHistory.ArrangeOpinionBefor = publish.ArrangeOpinion;
|
|
|
- await _orderPublishHistoryRepository.AddAsync(publishHistory, HttpContext.RequestAborted);
|
|
|
- await _orderPublishRepository.RemoveAsync(publish, false, HttpContext.RequestAborted);
|
|
|
- }
|
|
|
-
|
|
|
- var visit = await _orderVisitRepository.GetAsync(x => x.OrderId == dto.OrderId && x.VisitState != EVisitState.None);
|
|
|
- if (visit != null)
|
|
|
- {
|
|
|
- visit.VisitState = EVisitState.None;
|
|
|
- await _orderVisitRepository.UpdateAsync(visit, HttpContext.RequestAborted);
|
|
|
- }
|
|
|
+
|
|
|
|
|
|
if (order != null && ("001171".Equals(model.OrgId) ||
|
|
|
"001178".Equals(model.OrgId) ||
|
|
@@ -4332,32 +4312,32 @@ public class OrderController : BaseController
|
|
|
? EProcessType.Zhiban
|
|
|
: EProcessType.Jiaoban;
|
|
|
await _workflowApplication.RecallAsync(recall, endTime, order.Status >= EOrderStatus.Filed, HttpContext.RequestAborted);
|
|
|
- var publish = await _orderPublishRepository.GetAsync(x => x.OrderId == dto.OrderId);
|
|
|
- if (publish != null)
|
|
|
- {
|
|
|
- var publishHistory = _mapper.Map<OrderPublishHistory>(publish);
|
|
|
- publishHistory.OrderPublishId = publish.Id;
|
|
|
- publishHistory.ArrangeTitleAfter = publish.ArrangeTitle;
|
|
|
- publishHistory.ArrangeTitleBefor = publish.ArrangeTitle;
|
|
|
- publishHistory.ArrangeContentAfter = publish.ArrangeContent;
|
|
|
- publishHistory.ArrangeContentBefor = publish.ArrangeContent;
|
|
|
- publishHistory.ArrangeOpinionAfter = publish.ArrangeOpinion;
|
|
|
- publishHistory.ArrangeOpinionBefor = publish.ArrangeOpinion;
|
|
|
- await _orderPublishHistoryRepository.AddAsync(publishHistory, HttpContext.RequestAborted);
|
|
|
- await _orderPublishRepository.RemoveAsync(publish, false, HttpContext.RequestAborted);
|
|
|
- }
|
|
|
+ //var publish = await _orderPublishRepository.GetAsync(x => x.OrderId == dto.OrderId);
|
|
|
+ //if (publish != null)
|
|
|
+ //{
|
|
|
+ // var publishHistory = _mapper.Map<OrderPublishHistory>(publish);
|
|
|
+ // publishHistory.OrderPublishId = publish.Id;
|
|
|
+ // publishHistory.ArrangeTitleAfter = publish.ArrangeTitle;
|
|
|
+ // publishHistory.ArrangeTitleBefor = publish.ArrangeTitle;
|
|
|
+ // publishHistory.ArrangeContentAfter = publish.ArrangeContent;
|
|
|
+ // publishHistory.ArrangeContentBefor = publish.ArrangeContent;
|
|
|
+ // publishHistory.ArrangeOpinionAfter = publish.ArrangeOpinion;
|
|
|
+ // publishHistory.ArrangeOpinionBefor = publish.ArrangeOpinion;
|
|
|
+ // await _orderPublishHistoryRepository.AddAsync(publishHistory, HttpContext.RequestAborted);
|
|
|
+ // await _orderPublishRepository.RemoveAsync(publish, false, HttpContext.RequestAborted);
|
|
|
+ //}
|
|
|
|
|
|
var reTransactNum = order.ReTransactNum.HasValue ? order.ReTransactNum.Value + 1 : 1;
|
|
|
var Status = model.StepType == EStepType.Start ? EOrderStatus.BackToUnAccept : EOrderStatus.SendBack;
|
|
|
await _orderRepository.Updateable().SetColumns(o => new Orders.Order() { ProcessType = processType, ReTransactNum = reTransactNum, Status = Status }).Where(o => o.Id == order.Id)
|
|
|
.ExecuteCommandAsync(HttpContext.RequestAborted);
|
|
|
|
|
|
- var visit = await _orderVisitRepository.GetAsync(x => x.OrderId == dto.OrderId && x.VisitState != EVisitState.None);
|
|
|
- if (visit != null)
|
|
|
- {
|
|
|
- visit.VisitState = EVisitState.None;
|
|
|
- await _orderVisitRepository.UpdateAsync(visit, HttpContext.RequestAborted);
|
|
|
- }
|
|
|
+ //var visit = await _orderVisitRepository.GetAsync(x => x.OrderId == dto.OrderId && x.VisitState != EVisitState.None);
|
|
|
+ //if (visit != null)
|
|
|
+ //{
|
|
|
+ // visit.VisitState = EVisitState.None;
|
|
|
+ // await _orderVisitRepository.UpdateAsync(visit, HttpContext.RequestAborted);
|
|
|
+ //}
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -4419,27 +4399,27 @@ public class OrderController : BaseController
|
|
|
//todo 特提重办,按审批通过时间依据中心派至部门的规则计算期满时间,更新order
|
|
|
|
|
|
await _workflowApplication.RecallAsync(recall, expiredTime.ExpiredTime, order.Status >= EOrderStatus.Filed, HttpContext.RequestAborted);
|
|
|
- var publish = await _orderPublishRepository.GetAsync(x => x.OrderId == special.OrderId);
|
|
|
- if (publish != null)
|
|
|
- {
|
|
|
- var publishHistory = _mapper.Map<OrderPublishHistory>(publish);
|
|
|
- publishHistory.OrderPublishId = publish.Id;
|
|
|
- publishHistory.ArrangeTitleAfter = publish.ArrangeTitle;
|
|
|
- publishHistory.ArrangeTitleBefor = publish.ArrangeTitle;
|
|
|
- publishHistory.ArrangeContentAfter = publish.ArrangeContent;
|
|
|
- publishHistory.ArrangeContentBefor = publish.ArrangeContent;
|
|
|
- publishHistory.ArrangeOpinionAfter = publish.ArrangeOpinion;
|
|
|
- publishHistory.ArrangeOpinionBefor = publish.ArrangeOpinion;
|
|
|
- await _orderPublishHistoryRepository.AddAsync(publishHistory, HttpContext.RequestAborted);
|
|
|
- await _orderPublishRepository.RemoveAsync(publish, false, HttpContext.RequestAborted);
|
|
|
- }
|
|
|
+ //var publish = await _orderPublishRepository.GetAsync(x => x.OrderId == special.OrderId);
|
|
|
+ //if (publish != null)
|
|
|
+ //{
|
|
|
+ // var publishHistory = _mapper.Map<OrderPublishHistory>(publish);
|
|
|
+ // publishHistory.OrderPublishId = publish.Id;
|
|
|
+ // publishHistory.ArrangeTitleAfter = publish.ArrangeTitle;
|
|
|
+ // publishHistory.ArrangeTitleBefor = publish.ArrangeTitle;
|
|
|
+ // publishHistory.ArrangeContentAfter = publish.ArrangeContent;
|
|
|
+ // publishHistory.ArrangeContentBefor = publish.ArrangeContent;
|
|
|
+ // publishHistory.ArrangeOpinionAfter = publish.ArrangeOpinion;
|
|
|
+ // publishHistory.ArrangeOpinionBefor = publish.ArrangeOpinion;
|
|
|
+ // await _orderPublishHistoryRepository.AddAsync(publishHistory, HttpContext.RequestAborted);
|
|
|
+ // await _orderPublishRepository.RemoveAsync(publish, false, HttpContext.RequestAborted);
|
|
|
+ //}
|
|
|
|
|
|
- var visit = await _orderVisitRepository.GetAsync(x => x.OrderId == special.OrderId && x.VisitState != EVisitState.None);
|
|
|
- if (visit != null)
|
|
|
- {
|
|
|
- visit.VisitState = EVisitState.None;
|
|
|
- await _orderVisitRepository.UpdateAsync(visit, HttpContext.RequestAborted);
|
|
|
- }
|
|
|
+ //var visit = await _orderVisitRepository.GetAsync(x => x.OrderId == special.OrderId && x.VisitState != EVisitState.None);
|
|
|
+ //if (visit != null)
|
|
|
+ //{
|
|
|
+ // visit.VisitState = EVisitState.None;
|
|
|
+ // await _orderVisitRepository.UpdateAsync(visit, HttpContext.RequestAborted);
|
|
|
+ //}
|
|
|
|
|
|
if (order != null && ("001171".Equals(special.OrgId) ||
|
|
|
"001178".Equals(special.OrgId) ||
|