|
@@ -6132,12 +6132,20 @@ public class OrderController : BaseController
|
|
|
}
|
|
|
|
|
|
var SourceCode = (ESource)Enum.Parse(typeof(ESource), allowSource);
|
|
|
+ var acceptType = _sysDicDataCacheManager.AcceptType
|
|
|
+ .FirstOrDefault(m => m.DicDataName == item.AcceptType);
|
|
|
+
|
|
|
+ if (acceptType == null)
|
|
|
+ {
|
|
|
+ errorMessage.Append($"第{i + 1}行: 不能通过受理类型 {item.AcceptType} 查询到对应的受理类型Code\r\n");
|
|
|
+ continue;
|
|
|
+ }
|
|
|
|
|
|
var order = await _orderRepository.GetAsync(x => x.ExternalId == item.ExternalId && x.Source == SourceCode,
|
|
|
HttpContext.RequestAborted) ?? new Orders.Order();
|
|
|
item.Source = SourceCode.ToString();
|
|
|
order = _mapper.Map(item, order);
|
|
|
-
|
|
|
+ order.AcceptTypeCode = acceptType.DicDataValue;
|
|
|
order.SourceChannel = SourceCode.GetDescription();
|
|
|
order.SourceChannelCode = ((int)SourceCode).ToString();
|
|
|
|