|
|
@ -288,7 +288,7 @@ namespace WY.NewJit.EdiReceive.Services |
|
|
|
var vehicleAssemblyResu = await _assemblyCfgVehicleRepository.InsertAsync(vehicleAssemblyCfgObj, true); |
|
|
|
if (vehicleAssemblyResu == null) |
|
|
|
{ |
|
|
|
throw new Exception("插入整车总成返回结果为空InsertAsync!"); |
|
|
|
throw new Exception($"{_errorMessagePrefix}插入整车总成失败:{m100Obj.HostSN2}"); |
|
|
|
} |
|
|
|
#endregion
|
|
|
|
|
|
|
@ -296,8 +296,12 @@ namespace WY.NewJit.EdiReceive.Services |
|
|
|
m100Obj.SetAssemblyID(vehicleAssemblyResu.Id); |
|
|
|
m100Obj.SetBillStatus(BillStatusEnum.Match); |
|
|
|
var m100Ret = await _billM100Repository.UpdateAsync(m100Obj); |
|
|
|
if (m100Ret == null) |
|
|
|
{ |
|
|
|
throw new Exception($"{_errorMessagePrefix}更新M100失败:{m100Obj.HostSN2}"); |
|
|
|
} |
|
|
|
//判断未打印表是否有数据,有则更新,没有则插入
|
|
|
|
ObjectResultDto wpRet = await _hqM100DomainServie.InsertOrUpdateWaitPrintByM100(m100Obj, false, true); |
|
|
|
ObjectResultDto wpRet = await _hqM100DomainServie.InsertOrUpdateWaitPrintByM100(m100Ret, false, true); |
|
|
|
if (wpRet.Status == false) |
|
|
|
{ |
|
|
|
throw new Exception(wpRet.Message); |
|
|
|