fix 工作地海宁餐补处理
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user