From 7f7f21c2716ad82be7883de7140d4b29e3d0f56c Mon Sep 17 00:00:00 2001
From: majian <780924089@qq.com>
Date: Thu, 18 Jul 2024 10:29:56 +0800
Subject: [PATCH] =?UTF-8?q?=E9=9D=99=E7=BD=AE=E4=BB=93=E5=88=B0=E6=88=90?=
=?UTF-8?q?=E5=93=81?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
ProductionMgr/Tnb.ProductionMgr/RedisBackGround.cs | 3 +++
.../Tnb.WarehouseMgr/WmsEmptycarryInstockLogService.cs | 3 ++-
apihost/Tnb.API.Entry/Configurations/ConnectionStrings.json | 2 +-
3 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/ProductionMgr/Tnb.ProductionMgr/RedisBackGround.cs b/ProductionMgr/Tnb.ProductionMgr/RedisBackGround.cs
index 56950a38..98b5d8ee 100644
--- a/ProductionMgr/Tnb.ProductionMgr/RedisBackGround.cs
+++ b/ProductionMgr/Tnb.ProductionMgr/RedisBackGround.cs
@@ -2198,6 +2198,9 @@ where carry_code = '{coderesult}' and status = '{WmsWareHouseConst.TASK_BILL_STA
LoggerFloor4DMC2CPK.LogInformation($"【四楼灭菌仓到成品库】 {startlocation.location_code} 到 {endlocation.location_code} 预任务生成成功");
wmsSterilizationInstockH.status = WmsWareHouseConst.BILLSTATUS_ON_ID;
+ wmsSterilizationInstockH.cp_location_id = endlocation.id;
+ wmsSterilizationInstockH.cp_location_code = endlocation.location_code;
+
await db_Floor4DMC2CPK.Updateable(wmsSterilizationInstockH).UpdateColumns(r => new { r.status }).ExecuteCommandAsync();
await db_Floor4DMC2CPK.Ado.CommitTranAsync();
diff --git a/WarehouseMgr/Tnb.WarehouseMgr/WmsEmptycarryInstockLogService.cs b/WarehouseMgr/Tnb.WarehouseMgr/WmsEmptycarryInstockLogService.cs
index 1937184d..49025951 100644
--- a/WarehouseMgr/Tnb.WarehouseMgr/WmsEmptycarryInstockLogService.cs
+++ b/WarehouseMgr/Tnb.WarehouseMgr/WmsEmptycarryInstockLogService.cs
@@ -28,6 +28,7 @@ using Tnb.ProductionMgr.Entities.Dto;
using JNPF.VisualDev;
using System.Runtime.InteropServices;
using Tnb.BasicData.Entities;
+using Microsoft.AspNetCore.Authorization;
namespace Tnb.WarehouseMgr
{
@@ -47,7 +48,7 @@ namespace Tnb.WarehouseMgr
///
///
///
- [HttpPost]
+ [HttpPost, NonUnify, AllowAnonymous]
public async Task Instock(WmsEmptycarryInstockServiceInstockInput input)
{
try
diff --git a/apihost/Tnb.API.Entry/Configurations/ConnectionStrings.json b/apihost/Tnb.API.Entry/Configurations/ConnectionStrings.json
index b6af195c..5314dd45 100644
--- a/apihost/Tnb.API.Entry/Configurations/ConnectionStrings.json
+++ b/apihost/Tnb.API.Entry/Configurations/ConnectionStrings.json
@@ -20,7 +20,7 @@
//Oracle
//"DefaultConnection": "Data Source=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST={0})(PORT={1}))(CONNECT_DATA=(SERVER = DEDICATED)(SERVICE_NAME={2})));User Id={3};Password={4}"
//PostgreSQL
- "DefaultConnection": "server={0};port={1};database={2};uid={3};pwd={4};pooling=true;KeepAlive=60;ConnectionLifetime=300"
+ "DefaultConnection": "server={0};port={1};database={2};uid={3};pwd={4};pooling=true;KeepAlive=60;ConnectionLifetime=300;MaxPoolSize=320;"
//MySql
//"DefaultConnection": "server={0};port={1};database={2};uid={3};pwd={4};sslmode=none;pooling=true;charset=utf8mb4;allowLoadLocalInfile=true;allowPublicKeyRetrieval=true"
}