zhengly 2 лет назад
Родитель
Сommit
e1db95d79c

+ 8 - 2
MicroServices/Business/Business.Application.Contracts/DOP/ISyncDOPAppService.cs

@@ -11,10 +11,16 @@ namespace Business.DOP
     public interface ISyncDOPAppService : IApplicationService
     {
         /// <summary>
-        /// 成品库存监控
+        /// 海王成品库存监控
         /// </summary>
         /// <param name="id"></param>
         /// <returns></returns>
-        Task<string> SyncPlatformFinishedProductMonitoring(List<PlatformInventoryDto> platformInventoryDtoList);
+        Task<string> SyncPlatformFinishedProductMonitoringHW(List<PlatformInventoryDto> platformInventoryDtoList);
+        /// <summary>
+        /// 海王成品库存监控
+        /// </summary>
+        /// <param name="id"></param>
+        /// <returns></returns>
+        Task<string> SyncPlatformFinishedProductMonitoringGK(List<PlatformInventoryDto> platformInventoryDtoList);
     }
 }

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

@@ -56,16 +56,26 @@ namespace Business.DOP
         }
         #endregion
         /// <summary>
-        /// 平台成品监控
+        /// 海王平台成品监控
         /// </summary>
         /// <returns></returns>
         /// <exception cref="NotImplementedException"></exception>
-        public async Task<string> SyncPlatformFinishedProductMonitoring(List<PlatformInventoryDto> platformInventoryDtoList)
+        public async Task<string> SyncPlatformFinishedProductMonitoringHW(List<PlatformInventoryDto> platformInventoryDtoList)
         {
             var ret = SavePlatformFinishedProductMonitoringAsync(platformInventoryDtoList, 1);
             return await ret;
         }
         /// <summary>
+        /// 国科平台成品监控
+        /// </summary>
+        /// <returns></returns>
+        /// <exception cref="NotImplementedException"></exception>
+        public async Task<string> SyncPlatformFinishedProductMonitoringGK(List<PlatformInventoryDto> platformInventoryDtoList)
+        {
+            var ret = SavePlatformFinishedProductMonitoringAsync(platformInventoryDtoList, 2);
+            return await ret;
+        }
+        /// <summary>
         /// 保存库存信息
         /// </summary>
         /// <param name="platformInventoryDtoList"></param>

+ 14 - 3
MicroServices/Business/Business.HttpApi/Controllers/DOP/DOPController.cs

@@ -33,10 +33,21 @@ namespace Business.Controllers.DOP
         /// <param name="input"></param>
         /// <returns></returns>
         [HttpPost]
-        [Route("SyncPlatformFinishedProductMonitoring")]
-        public async Task<string> SyncPlatformFinishedProductMonitoring(List<PlatformInventoryDto> platformInventoryDtoList)
+        [Route("SyncPlatformFinishedProductMonitoringHW")]
+        public async Task<string> SyncPlatformFinishedProductMonitoringHW(List<PlatformInventoryDto> platformInventoryDtoList)
         {
-            return await _DopAppService.SyncPlatformFinishedProductMonitoring(platformInventoryDtoList);
+            return await _DopAppService.SyncPlatformFinishedProductMonitoringHW(platformInventoryDtoList);
+        }
+        /// <summary>
+        /// 平台成品库存监控
+        /// </summary>
+        /// <param name="input"></param>
+        /// <returns></returns>
+        [HttpPost]
+        [Route("SyncPlatformFinishedProductMonitoringGK")]
+        public async Task<string> SyncPlatformFinishedProductMonitoringGK(List<PlatformInventoryDto> platformInventoryDtoList)
+        {
+            return await _DopAppService.SyncPlatformFinishedProductMonitoringGK(platformInventoryDtoList);
         }
     }
 }