Przeglądaj źródła

成品库存监控接口

zhengly 2 lat temu
rodzic
commit
9652dce1e7

+ 19 - 0
MicroServices/Business/Business.Application.Contracts/DOP/ISyncDOPAppService.cs

@@ -0,0 +1,19 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using Volo.Abp.Application.Services;
+
+namespace Business.DOP
+{
+    public interface ISyncDOPAppService : IApplicationService
+    {
+        /// <summary>
+        /// 成品库存监控
+        /// </summary>
+        /// <param name="id"></param>
+        /// <returns></returns>
+        string SyncPlatformFinishedProductMonitoring();
+    }
+}

+ 25 - 0
MicroServices/Business/Business.Application/DOP/SyncDOPAppService.cs

@@ -0,0 +1,25 @@
+using Abp.Application.Services;
+using Abp.Dependency;
+using Business.ResourceExamineManagement;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Business.DOP
+{
+    //DOP
+    public class SyncDOPAppService : ApplicationService, ISyncDOPAppService, ITransientDependency
+    {
+        /// <summary>
+        /// 平台成品监控
+        /// </summary>
+        /// <returns></returns>
+        /// <exception cref="NotImplementedException"></exception>
+        public string SyncPlatformFinishedProductMonitoring()
+        {
+            throw new NotImplementedException();
+        }
+    }
+}

+ 41 - 0
MicroServices/Business/Business.HttpApi/Controllers/DOP/DOPController.cs

@@ -0,0 +1,41 @@
+using Business.DOP;
+using Business.ResourceExamineManagement;
+using Microsoft.AspNetCore.Mvc;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using Volo.Abp;
+using Volo.Abp.AspNetCore.Mvc;
+
+namespace Business.Controllers.DOP
+{
+
+    /// <summary>
+    /// DOP同步接口
+    /// </summary>
+    [RemoteService]
+    [Area("Business")]
+    [Route("api/business/DOP")]
+    public class DOPController : AbpController
+    {
+        private readonly ISyncDOPAppService _DopAppService;
+
+        public DOPController(ISyncDOPAppService DopAppService)
+        {
+            _DopAppService = DopAppService;
+        }
+        /// <summary>
+        /// 平台成品库存监控
+        /// </summary>
+        /// <param name="input"></param>
+        /// <returns></returns>
+        [HttpPost]
+        [Route("SyncPlatformFinishedProductMonitoring")]
+        public string SyncPlatformFinishedProductMonitoring()
+        {
+            return _DopAppService.SyncPlatformFinishedProductMonitoring();
+        }
+    }
+}

+ 41 - 0
MicroServices/Business/Bussiness.Model/WMS/PlatformSpecificationComparison.cs

@@ -0,0 +1,41 @@
+using Business.Core.Attributes;
+using Microsoft.EntityFrameworkCore;
+using System;
+using System.Collections.Generic;
+using System.ComponentModel.DataAnnotations;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Business.Model.WMS
+{
+    /// <summary>
+    /// 平台规格库存对照
+    /// </summary>
+    [Comment("平台规格库存对照")]
+    public class PlatformSpecificationComparison : BaseEntity
+    {
+        /// <summary>
+        /// 主键
+        /// </summary>
+        /// <param name="Id"></param>
+        public PlatformSpecificationComparison(long Id) : base(Id)
+        {
+        }
+        /// <summary>
+        /// 标准规格型号
+        /// </summary>
+        [Comment("标准规格型号")]
+        public string? StandardSpecifications { get; set; }
+        /// <summary>
+        /// 海王规格型号
+        /// </summary>
+        [Comment("海王规格型号")]
+        public string? HWSpecificationModel { get; set; }
+        /// <summary>
+        /// 国科规格型号
+        /// </summary>
+        [Comment("国科规格型号")]
+        public string? GKSpecificationModel { get; set; }
+    }
+}