|
|
@ -311,8 +311,11 @@ namespace WY.NewJit.EdiReceive.Services |
|
|
|
{ |
|
|
|
throw new Exception($"{_errorMessagePrefix}更新M100失败:{m100Obj.HostSN2}"); |
|
|
|
} |
|
|
|
|
|
|
|
bool hasBeforeNotPrint = await _hqM100DomainServie.BeforeNotPrint((int)(m100Obj.HostSN2)); |
|
|
|
bool isReplenishPrint = hasBeforeNotPrint ? false : true; //未打印表包含重新解析之前的记录,设置成正常打印,否则设置成补打
|
|
|
|
//判断未打印表是否有数据,有则更新,没有则插入
|
|
|
|
ObjectResultDto wpRet = await _hqM100DomainServie.InsertOrUpdateWaitPrintByM100(m100Ret, false, true); |
|
|
|
ObjectResultDto wpRet = await _hqM100DomainServie.InsertOrUpdateWaitPrintByM100(m100Ret, false, isReplenishPrint); |
|
|
|
if (wpRet.Status == false) |
|
|
|
{ |
|
|
|
throw new Exception(wpRet.Message); |
|
|
|