fix 暂时移除海宁餐补

This commit is contained in:
2024-06-18 09:34:28 +08:00
parent 4ccf2ac623
commit ee9066e17c

View File

@@ -36,6 +36,7 @@ public class MealSupplementHandlerJob : BaseJob
//查询待处理餐补 //查询待处理餐补
var mealSupplements = await DbContext.Queryable<MealSupplementRecordEntity>() var mealSupplements = await DbContext.Queryable<MealSupplementRecordEntity>()
.Where(x => x.Status == MealSupplementStatusEnumtype.Wait || x.Status == MealSupplementStatusEnumtype.Error) .Where(x => x.Status == MealSupplementStatusEnumtype.Wait || x.Status == MealSupplementStatusEnumtype.Error)
.Where(x => x.Workplace != "5")
.Where(x => !x.Sync) .Where(x => !x.Sync)
.ToListAsync(); .ToListAsync();
@@ -165,7 +166,7 @@ public class MealSupplementHandlerJob : BaseJob
IsDeleted = false, IsDeleted = false,
}); });
var r = await _jinkoJIPService.SyncMealSupplementRecordsAsync(new List<SyncMealSupplementRecordRequest> var r = await _jinkoJIPService.SyncMealSupplementRecordsAsync(new List<SyncMealSupplementRecordRequest>
{ {
new() new()
@@ -175,7 +176,7 @@ public class MealSupplementHandlerJob : BaseJob
Msg = "操作成功" Msg = "操作成功"
} }
}); });
//更新餐补信息为成功(同步成功) //更新餐补信息为成功(同步成功)
await DbContext.Updateable<MealSupplementRecordEntity>() await DbContext.Updateable<MealSupplementRecordEntity>()
.SetColumns(x => x.Result == r) .SetColumns(x => x.Result == r)