fix 工作地海宁餐补处理

This commit is contained in:
2024-06-05 15:42:46 +08:00
parent 7a63d23706
commit b93cff743c

View File

@@ -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,