This commit is contained in:
2024-11-13 14:29:03 +08:00
parent 8b41a49188
commit 810aaaa980

View File

@@ -32,6 +32,7 @@ using Tnb.WarehouseMgr.Interfaces;
using Tnb.ProductionMgr.Entities.Entity; using Tnb.ProductionMgr.Entities.Entity;
using System.Threading; using System.Threading;
using Tnb.BasicData.Interfaces; using Tnb.BasicData.Interfaces;
using JNPF.Logging;
namespace Tnb.WarehouseMgr namespace Tnb.WarehouseMgr
{ {
@@ -338,7 +339,7 @@ namespace Tnb.WarehouseMgr
public override async Task ModifyAsync(WareHouseUpInput input) public override async Task ModifyAsync(WareHouseUpInput input)
{ {
Logger.LogInformation($"【WmsPrdInstockHService ModifyAsync】开始执行产成品入库对接bip {JsonConvert.SerializeObject(input)}"); Log.Information($"【WmsPrdInstockHService ModifyAsync】开始执行产成品入库对接bip {JsonConvert.SerializeObject(input)}");
if (input == null) if (input == null)
{ {
throw new ArgumentNullException(nameof(input)); throw new ArgumentNullException(nameof(input));
@@ -383,7 +384,7 @@ namespace Tnb.WarehouseMgr
prdInstockH.code = instock.bill_code; prdInstockH.code = instock.bill_code;
prdInstockH.is_sync_bip = 0; prdInstockH.is_sync_bip = 0;
await _db.Updateable(prdInstockH).ExecuteCommandAsync(); await _db.Updateable(prdInstockH).ExecuteCommandAsync();
Logger.LogInformation($"【WmsPrdInstockHService ModifyAsync】更新生产入库记录id{prdInstockH.id}"); Log.Information($"【WmsPrdInstockHService ModifyAsync】更新生产入库记录id{prdInstockH.id}");
} }
else else
{ {
@@ -401,7 +402,7 @@ namespace Tnb.WarehouseMgr
prdInstockH.is_sync_bip = 0; prdInstockH.is_sync_bip = 0;
await _db.Insertable(prdInstockH).ExecuteCommandAsync(); await _db.Insertable(prdInstockH).ExecuteCommandAsync();
Logger.LogInformation($"【WmsPrdInstockHService ModifyAsync】新增生产入库记录id{prdInstockH.id}"); Log.Information($"【WmsPrdInstockHService ModifyAsync】新增生产入库记录id{prdInstockH.id}");
} }
#endregion #endregion