|
@ -93,7 +93,7 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Syncs |
|
|
//业务类别
|
|
|
//业务类别
|
|
|
var businessType = SeSyncConfigInfo.BusinessType; |
|
|
var businessType = SeSyncConfigInfo.BusinessType; |
|
|
var seed = 0; |
|
|
var seed = 0; |
|
|
while (seed < 10) |
|
|
while (seed < 6) |
|
|
{ |
|
|
{ |
|
|
seed++; |
|
|
seed++; |
|
|
var syncPositionFlag = await _settleAccountDbContext.Set<SyncPositionFlag>().FirstOrDefaultAsync(t => t.TableName == syncTableName).ConfigureAwait(false); |
|
|
var syncPositionFlag = await _settleAccountDbContext.Set<SyncPositionFlag>().FirstOrDefaultAsync(t => t.TableName == syncTableName).ConfigureAwait(false); |
|
@ -104,7 +104,7 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Syncs |
|
|
.Where(t => t.UID > int.Parse(syncPosition)) |
|
|
.Where(t => t.UID > int.Parse(syncPosition)) |
|
|
.Where(t => t.DeliverBillType == deliverBillType) |
|
|
.Where(t => t.DeliverBillType == deliverBillType) |
|
|
.Where(t => deliverSubBillTypes.Contains(t.DeliverSubBillType)) |
|
|
.Where(t => deliverSubBillTypes.Contains(t.DeliverSubBillType)) |
|
|
.OrderBy(b => b.UID).Take(10_000).ToList(); |
|
|
.OrderBy(b => b.UID).Take(5_000).ToList(); |
|
|
var jisSeDetails = ObjectMapper.Map<List<TM_BJBMPT_JIT_RECORD>, List<HBPO_SE_DETAIL>>(wmsSeRecords); |
|
|
var jisSeDetails = ObjectMapper.Map<List<TM_BJBMPT_JIT_RECORD>, List<HBPO_SE_DETAIL>>(wmsSeRecords); |
|
|
if (jisSeDetails.Any()) |
|
|
if (jisSeDetails.Any()) |
|
|
{ |
|
|
{ |
|
@ -135,7 +135,7 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Syncs |
|
|
//业务类别
|
|
|
//业务类别
|
|
|
var businessType = SeSyncConfigInfo.BusinessType; |
|
|
var businessType = SeSyncConfigInfo.BusinessType; |
|
|
var seed = 0; |
|
|
var seed = 0; |
|
|
while (seed < 10) |
|
|
while (seed < 6) |
|
|
{ |
|
|
{ |
|
|
seed++; |
|
|
seed++; |
|
|
var syncPositionFlag = await _settleAccountDbContext.Set<SyncPositionFlag>().FirstOrDefaultAsync(t => t.TableName == syncTableName).ConfigureAwait(false); |
|
|
var syncPositionFlag = await _settleAccountDbContext.Set<SyncPositionFlag>().FirstOrDefaultAsync(t => t.TableName == syncTableName).ConfigureAwait(false); |
|
@ -146,7 +146,7 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Syncs |
|
|
.Where(t => t.UID > int.Parse(syncPosition)) |
|
|
.Where(t => t.UID > int.Parse(syncPosition)) |
|
|
.Where(t => t.DeliverBillType == deliverBillType) |
|
|
.Where(t => t.DeliverBillType == deliverBillType) |
|
|
.Where(t => deliverSubBillTypes.Contains(t.DeliverSubBillType)) |
|
|
.Where(t => deliverSubBillTypes.Contains(t.DeliverSubBillType)) |
|
|
.OrderBy(b => b.UID).Take(10_000).ToList(); |
|
|
.OrderBy(b => b.UID).Take(5_000).ToList(); |
|
|
var jisSeDetails = ObjectMapper.Map<List<TM_BJBMPT_JIS_RECORD>, List<HBPO_SE_DETAIL>>(wmsRecords); |
|
|
var jisSeDetails = ObjectMapper.Map<List<TM_BJBMPT_JIS_RECORD>, List<HBPO_SE_DETAIL>>(wmsRecords); |
|
|
if (jisSeDetails.Any()) |
|
|
if (jisSeDetails.Any()) |
|
|
{ |
|
|
{ |
|
|