diff --git a/Src/Dlhis.ScheduledTask/Jobs/MealSupplementHandlerJob.cs b/Src/Dlhis.ScheduledTask/Jobs/MealSupplementHandlerJob.cs index bea803ac..c7ee565c 100644 --- a/Src/Dlhis.ScheduledTask/Jobs/MealSupplementHandlerJob.cs +++ b/Src/Dlhis.ScheduledTask/Jobs/MealSupplementHandlerJob.cs @@ -110,8 +110,7 @@ public class MealSupplementHandlerJob : BaseJob if (item.Workplace == "5") { - var isChunneng = item.Factory == "501"; - await SetHainingMealSupplementAsync(isChunneng, item); + await SetHainingMealSupplementAsync(item); } else { @@ -206,12 +205,12 @@ public class MealSupplementHandlerJob : BaseJob } } - private async Task SetHainingMealSupplementAsync(bool isChuneng, MealSupplementRecordEntity mealSupplement) + private async Task SetHainingMealSupplementAsync(MealSupplementRecordEntity mealSupplement) { await DbContext.Client.Ado.BeginTranAsync(); try { - var hnResponse = isChuneng + var hnResponse = mealSupplement.Factory == "501" ? await _hainingMealSupplementApi.AddHsChuNengMealSupplementAsync(new AddHainingMealSupplementRequest { Code = mealSupplement.Code,