Procházet zdrojové kódy

删除多余代码

zhengly před 2 roky
rodič
revize
64adb9a6e8

+ 2 - 6
MicroServices/Business/Business.Application/DOP/SyncDOPAppService.cs

@@ -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);
                 }