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