diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/Syncs/JisBBACSeSyncBaseAppService.cs b/code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/Syncs/JisBBACSeSyncBaseAppService.cs index b6663334..01faa33d 100644 --- a/code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/Syncs/JisBBACSeSyncBaseAppService.cs +++ b/code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/Syncs/JisBBACSeSyncBaseAppService.cs @@ -201,6 +201,13 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Syncs t.CreateTime = dateTimeNow; t.CreationTime = dateTimeNow; + + //如果MatchNumber为空,取MESConfigCode字段,MESConfigCode为老虚拟总成号 + if (string.IsNullOrEmpty(t.MatchNumber)) + { + t.MatchNumber = t.MESConfigCode; + } + }); var syncPosition = seDetails.Last().UID.ToString(); diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/Syncs/JisHBPOSeSyncBaseAppService.cs b/code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/Syncs/JisHBPOSeSyncBaseAppService.cs index 74ec1fd8..0e21c57d 100644 --- a/code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/Syncs/JisHBPOSeSyncBaseAppService.cs +++ b/code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/Syncs/JisHBPOSeSyncBaseAppService.cs @@ -201,6 +201,13 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Syncs t.CreateTime = dateTimeNow; t.CreationTime = dateTimeNow; + + //如果MatchNumber为空,取MESConfigCode字段,MESConfigCode为老虚拟总成号 + if(string.IsNullOrEmpty(t.MatchNumber)) + { + t.MatchNumber = t.MESConfigCode; + } + }); var syncPosition = seDetails.Last().UID.ToString();