From 6907e9f7dd6bb85b6103f21f83b73139108d4f7e Mon Sep 17 00:00:00 2001 From: Administrator Date: Wed, 15 Jun 2022 15:33:03 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../host/SettleAccount.HttpApi.Host/appsettings.json | 4 ++-- .../Entities/WMS/WMSJitAppService.cs | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/appsettings.json b/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/appsettings.json index 5f69ce88..99aab2e7 100644 --- a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/appsettings.json +++ b/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/appsettings.json @@ -10,8 +10,8 @@ //"Default": "Server=127.0.0.1;Database=ABP;user id=sa;Password=1", //"SettleAccountService": "Server=127.0.0.1;Database=SettleAccountService;user id=sa;Password=1;" "Default": "Server=127.0.0.1;Database=ABP;User ID=sa;Password=1;", - "SettleAccountService": "Server=127.0.0.1;Database=SettleAccountService;user id=sa;password=1;", - "Wms": "Server=127.0.0.1;Database=CPAT_WMS;user id=sa;password=1;" + "SettleAccountService": "Server=192.168.0.67;Database=SettleAccountService;user id=sa;password=Microsoft2008;", + "Wms": "Server=192.168.0.67;Database=CPAT_WMS;user id=sa;password=Microsoft2008;" }, "Logging": { diff --git a/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/WMS/WMSJitAppService.cs b/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/WMS/WMSJitAppService.cs index fdf8d9eb..e8c553a9 100644 --- a/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/WMS/WMSJitAppService.cs +++ b/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/WMS/WMSJitAppService.cs @@ -54,7 +54,7 @@ namespace Win.Sfs.SettleAccount.Entities.SettleAccounts /// wms出库 /// - [Authorize(SettleAccountPermissions.WMSJIT.Default)] + //[Authorize(SettleAccountPermissions.WMSJIT.Default)] [Route("api/settleaccount/wmsjitoutput")] public class WMSJitAppService : @@ -557,6 +557,7 @@ namespace Win.Sfs.SettleAccount.Entities.SettleAccounts /// [HttpPost] [Route("WmsJitOutPut-Cancel")] + [UnitOfWork(false)] [Authorize(SettleAccountPermissions.WMSJIT.Delete)] public async Task WmsJitOutPutCancel(WmsJitRequestDto input) { @@ -572,7 +573,7 @@ namespace Win.Sfs.SettleAccount.Entities.SettleAccounts string str= string.Join(",",_ls.ToArray()); - var sql = "DECLARE @return_value int\n" + + var sql = "DECLARE @return_value int\n" + "EXEC @return_value = [dbo].[p_wms_output_cancel]\n" + " @Guids ='{0}', \n" + " @billnum = N'{1}',\n" +