From b93cff743ceaefc8b3b537e0077d18584048b54c Mon Sep 17 00:00:00 2001 From: liguoyang Date: Wed, 5 Jun 2024 15:42:46 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E5=B7=A5=E4=BD=9C=E5=9C=B0=E6=B5=B7?= =?UTF-8?q?=E5=AE=81=E9=A4=90=E8=A1=A5=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Src/Dlhis.ScheduledTask/Jobs/MealSupplementHandlerJob.cs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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,