|
|
@@ -17,11 +17,6 @@ namespace Business.DOP
|
|
|
public class SyncDOPAppService : ApplicationService, ISyncDOPAppService, ITransientDependency
|
|
|
{
|
|
|
#region 服务
|
|
|
- /// <summary>
|
|
|
- /// 工单
|
|
|
- /// </summary>
|
|
|
- //private readonly ISqlRepository<PlatformSpecificationComparison> _PlatformSpecificationComparison;
|
|
|
-
|
|
|
/// <summary>
|
|
|
/// 平台规格型号对照表
|
|
|
/// </summary>
|
|
|
@@ -119,6 +114,7 @@ namespace Business.DOP
|
|
|
{
|
|
|
try
|
|
|
{
|
|
|
+ //先删后插
|
|
|
await _PlatformInventory.DeleteManyAsync(platformInventoryDel);
|
|
|
await _PlatformInventory.InsertManyAsync(platformInventoryInsert);
|
|
|
|
|
|
@@ -126,7 +122,7 @@ namespace Business.DOP
|
|
|
}
|
|
|
catch (Exception e)
|
|
|
{
|
|
|
- new NLogHelper("SyncDOPAppService").WriteLog("PrMerge", "接口获取失败:" + e.Message);
|
|
|
+ new NLogHelper("SyncDOPAppService").WriteLog("PlatformFinishedProductMonitoringAsyncMerge", "接口异常:" + e.Message);
|
|
|
unitOfWork.Dispose();
|
|
|
return JsonConvert.SerializeObject(e.Message);
|
|
|
}
|