diff --git a/WarehouseMgr/Tnb.WarehouseMgr/WmsMaterialSignHService.cs b/WarehouseMgr/Tnb.WarehouseMgr/WmsMaterialSignHService.cs
index e211f1ae..7591be10 100644
--- a/WarehouseMgr/Tnb.WarehouseMgr/WmsMaterialSignHService.cs
+++ b/WarehouseMgr/Tnb.WarehouseMgr/WmsMaterialSignHService.cs
@@ -81,8 +81,9 @@ namespace Tnb.WarehouseMgr
///
///
[HttpPost]
- public async Task MaterialSign(MaterialSignInput input)
+ public async Task MaterialSign(MaterialSignInput input)
{
+ string msg = "成功";
try
{
if (input == null)
@@ -452,7 +453,8 @@ namespace Tnb.WarehouseMgr
BasFactoryConfig callErp = await _db.Queryable().FirstAsync(x => x.enabled == 1 && x.key == FactoryConfigConst.CALLERP);
if(callErp.value=="1"){
- await _thirdApiRecordService.Send(new List { thirdWebapiRecord }, "自动", _db);
+ ThirdResult thirdResult = await _thirdApiRecordService.Send(new List { thirdWebapiRecord }, "自动", _db);
+ msg = thirdResult.msgResult;
}
break;
@@ -564,10 +566,11 @@ namespace Tnb.WarehouseMgr
if(callErp2.value=="1"){
ThirdResult thirdResult = await _thirdApiRecordService.Send(new List { thirdWebapiRecord }, "自动", _db);
Logger.LogInformation($"【WmsMaterialSignHService ModifyAsync】thirdResult {JsonConvert.SerializeObject(thirdResult)}");
- if (thirdResult.Code!=200)
- {
- throw Oops.Bah(thirdResult.msgResult ?? "erp接口调用失败");
- }
+ // if (thirdResult.Code!=200)
+ // {
+ // throw Oops.Bah(thirdResult.msgResult ?? "erp接口调用失败");
+ // }
+ msg = thirdResult.msgResult;
}
if (wmsMaterialTransfer.type == WmsWareHouseConst.MATERIALTRANSFER_JZGLRK_CODE
@@ -644,10 +647,12 @@ namespace Tnb.WarehouseMgr
if(callErp2.value=="1"){
ThirdResult thirdResult = await _thirdApiRecordService.Send(new List { thirdWebapiRecord2 }, "自动", _db);
- if (thirdResult.Code!=200)
- {
- throw Oops.Bah(thirdResult.msgResult);
- }
+ // if (thirdResult.Code!=200)
+ // {
+ // throw Oops.Bah(thirdResult.msgResult);
+ // }
+
+ msg = thirdResult.msgResult;
}
}
break;
@@ -665,6 +670,8 @@ namespace Tnb.WarehouseMgr
await _db.Ado.RollbackTranAsync();
throw new AppFriendlyException($"【MaterialSign】物料签收失败 {ex.Message}", 500);
}
+
+ return msg;
}
}