|
@@ -1,6 +1,5 @@
|
|
|
using Hotline.Caching.Interfaces;
|
|
|
using Hotline.DI;
|
|
|
-using Hotline.EventBus;
|
|
|
using Hotline.JudicialManagement;
|
|
|
using Hotline.JudicialManagement.Notifies;
|
|
|
using Hotline.Settings;
|
|
@@ -89,7 +88,6 @@ namespace Hotline.Application.JudicialManagement
|
|
|
//需要添加
|
|
|
if (isAdd)
|
|
|
{
|
|
|
-
|
|
|
var orderData = await _judicialManagementOrdersRepository.GetAsync(p => p.Id == order.Id, cancellationToken);
|
|
|
if (orderData == null)
|
|
|
{
|
|
@@ -103,7 +101,7 @@ namespace Hotline.Application.JudicialManagement
|
|
|
orderData.OrderSoure = EOrderSoure.Hotline;
|
|
|
List<Kv> kvs = new()
|
|
|
{
|
|
|
- new Kv { Key = order.OrgLevelOneName, Value = order.OrgLevelOneCode }
|
|
|
+ new Kv { Key = order.ActualHandleOrgName, Value = order.ActualHandleOrgCode }
|
|
|
};
|
|
|
orderData.EnforcementOrdersHandler = kvs;
|
|
|
await _judicialManagementOrdersRepository.AddAsync(orderData, cancellationToken);
|
|
@@ -114,8 +112,8 @@ namespace Hotline.Application.JudicialManagement
|
|
|
OrderId = order.Id,
|
|
|
OrderNo = order.No,
|
|
|
OrderSoure = EOrderSoure.Hotline,
|
|
|
- OrgCode = order.OrgLevelOneCode,
|
|
|
- OrgName = order.OrgLevelOneName
|
|
|
+ OrgCode = order.ActualHandleOrgCode,
|
|
|
+ OrgName = order.ActualHandleOrgName
|
|
|
};
|
|
|
await _enforcementOrdersHandlerRepository.AddAsync(enforcementOrdersHandler, cancellationToken);
|
|
|
}
|