fix 离线下载数据问题处理
This commit is contained in:
@@ -22,6 +22,7 @@ public class MiddleService : IMiddleService
|
|||||||
{
|
{
|
||||||
entity.Id = 0;
|
entity.Id = 0;
|
||||||
entity.Amount = -Math.Abs(entity.Amount);
|
entity.Amount = -Math.Abs(entity.Amount);
|
||||||
|
entity.Remark = "离线消费提交";
|
||||||
if (!await _dbContext.Queryable<BalanceRecordEntity>().AnyAsync(x => x.No == entity.No))
|
if (!await _dbContext.Queryable<BalanceRecordEntity>().AnyAsync(x => x.No == entity.No))
|
||||||
{
|
{
|
||||||
await _dbContext.InsertAsync(entity);
|
await _dbContext.InsertAsync(entity);
|
||||||
|
|||||||
@@ -112,6 +112,16 @@ public class DataDownloadService : IDataDownloadService
|
|||||||
|
|
||||||
await DownloadAsync<LocalGainfoEntity>(factory);
|
await DownloadAsync<LocalGainfoEntity>(factory);
|
||||||
await DownloadAsync<LocalGainfoMealEntity>(factory);
|
await DownloadAsync<LocalGainfoMealEntity>(factory);
|
||||||
|
|
||||||
|
|
||||||
|
await DownloadAsync<LocalDeviceEntity>(factory);
|
||||||
|
await DownloadAsync<LocalDeviceRegistryEntity>(factory);
|
||||||
|
|
||||||
|
await DownloadAsync<LocalBusinessPlaceEntity>(factory);
|
||||||
|
await DownloadAsync<LocalBusinessShiftEntity>(factory);
|
||||||
|
await DownloadAsync<LocalBusinessPlaceShiftRelationshipEntity>(factory);
|
||||||
|
|
||||||
|
await DownloadAsync<LocalBusinessShiftMealRelationshipEntity>(factory);
|
||||||
|
|
||||||
await _dbContext.Client.Ado.CommitTranAsync();
|
await _dbContext.Client.Ado.CommitTranAsync();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user