|
@ -94,7 +94,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); |
|
@ -105,7 +105,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(1_000).ToList(); |
|
|
.OrderBy(b => b.UID).Take(5000).ToList(); |
|
|
var jisSeDetails = ObjectMapper.Map<List<TM_BJBMPT_JIT_RECORD>, List<BBAC_SE_DETAIL>>(wmsSeRecords); |
|
|
var jisSeDetails = ObjectMapper.Map<List<TM_BJBMPT_JIT_RECORD>, List<BBAC_SE_DETAIL>>(wmsSeRecords); |
|
|
if (jisSeDetails.Any()) |
|
|
if (jisSeDetails.Any()) |
|
|
{ |
|
|
{ |
|
@ -136,7 +136,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); |
|
@ -147,7 +147,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(1_000).ToList(); |
|
|
.OrderBy(b => b.UID).Take(5000).ToList(); |
|
|
var jisSeDetails = ObjectMapper.Map<List<TM_BJBMPT_JIS_RECORD>, List<BBAC_SE_DETAIL>>(wmsSeRecords); |
|
|
var jisSeDetails = ObjectMapper.Map<List<TM_BJBMPT_JIS_RECORD>, List<BBAC_SE_DETAIL>>(wmsSeRecords); |
|
|
if (jisSeDetails.Any()) |
|
|
if (jisSeDetails.Any()) |
|
|
{ |
|
|
{ |
|
|