From 75f9b45e5cd75a166404f0767b9f181bc8bd018a Mon Sep 17 00:00:00 2001 From: alex Date: Tue, 8 Aug 2023 10:26:42 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=81=94=E5=90=88=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=E5=9C=B0=E5=9D=80=E7=9A=84=E8=AF=B7=E6=B1=82IP?= =?UTF-8?q?=E7=AB=AF=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Consts/ModuleConsts.cs | 4 +++ .../ExcelDataImportManager.cs | 5 +++ .../Tnb.WarehouseMgr/WmRoadService.cs | 32 +++++++++++++++++++ .../Configurations/AgvRequestCfgUrl.json | 4 +-- 4 files changed, 43 insertions(+), 2 deletions(-) create mode 100644 WarehouseMgr/Tnb.WarehouseMgr/WmRoadService.cs diff --git a/WarehouseMgr/Tnb.WarehouseMgr.Entities/Consts/ModuleConsts.cs b/WarehouseMgr/Tnb.WarehouseMgr.Entities/Consts/ModuleConsts.cs index 84d82bf2..039aa940 100644 --- a/WarehouseMgr/Tnb.WarehouseMgr.Entities/Consts/ModuleConsts.cs +++ b/WarehouseMgr/Tnb.WarehouseMgr.Entities/Consts/ModuleConsts.cs @@ -168,5 +168,9 @@ public class ModuleConsts /// 模块标识-仓库定义 /// public const string MODULE_WMSWAREHOUSEDEFINITION_ID = "25905106252053"; + /// + /// 模块标识-路段管理 + /// + public const string MODULE_WMSROAD_ID = "26100621140773"; } \ No newline at end of file diff --git a/WarehouseMgr/Tnb.WarehouseMgr/ExcelDataImportManager.cs b/WarehouseMgr/Tnb.WarehouseMgr/ExcelDataImportManager.cs index 9e53412f..59da2dc3 100644 --- a/WarehouseMgr/Tnb.WarehouseMgr/ExcelDataImportManager.cs +++ b/WarehouseMgr/Tnb.WarehouseMgr/ExcelDataImportManager.cs @@ -81,5 +81,10 @@ namespace Tnb.WarehouseMgr } return Task.FromResult(dics); } + + public async Task GenImportTemplate(params string[] fields) + { + return null; + } } } diff --git a/WarehouseMgr/Tnb.WarehouseMgr/WmRoadService.cs b/WarehouseMgr/Tnb.WarehouseMgr/WmRoadService.cs new file mode 100644 index 00000000..6aad2e34 --- /dev/null +++ b/WarehouseMgr/Tnb.WarehouseMgr/WmRoadService.cs @@ -0,0 +1,32 @@ +using System; +using System.CodeDom; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using JNPF.VisualDev; +using Microsoft.AspNetCore.Http; +using SqlSugar; +using Tnb.WarehouseMgr.Entities; + +namespace Tnb.WarehouseMgr +{ + /// + /// 路段管理服务类 + /// + [OverideVisualDev(ModuleConsts.MODULE_WMSROAD_ID)] + public class WmRoadService : ExcelDataImportManager + { + private readonly ISqlSugarClient _db; + public WmRoadService(ISqlSugarRepository repository) + { + _db =repository.AsSugarClient(); + OverideFuncs.ImportAsync = DataImport; + } + + private async Task DataImport(IFormFile file) + { + return Task.FromResult(null); + } + } +} diff --git a/apihost/Tnb.API.Entry/Configurations/AgvRequestCfgUrl.json b/apihost/Tnb.API.Entry/Configurations/AgvRequestCfgUrl.json index 21be4b8e..2f799d66 100644 --- a/apihost/Tnb.API.Entry/Configurations/AgvRequestCfgUrl.json +++ b/apihost/Tnb.API.Entry/Configurations/AgvRequestCfgUrl.json @@ -1,6 +1,6 @@ { "AgvRequestUrls": { - "CreateTaskChainUrl": "http://localhost/api/task‑chain/create", - "CancelTaskChainUrl": "http://localhost/api/task‑chain/cancel" + "CreateTaskChainUrl": "http://192.168.11.104:1880/localhost/api/task‑chain/create", + "CancelTaskChainUrl": "http://192.168.11.104:1880/api/task‑chain/cancel" } } \ No newline at end of file