fix 参数结构调整

This commit is contained in:
2024-03-18 16:11:45 +08:00
parent 1b58ca69bf
commit fa376f7671
2 changed files with 4 additions and 2 deletions

View File

@@ -7,5 +7,5 @@ public class BusinessPlaceListResponse : BusinessPlaceResponse
/// <summary>
/// 餐次
/// </summary>
public List<ShiftEnumType> ShiftTypes { get; set; }
public List<Dictionary<int, string>> ShiftTypes { get; set; }
}

View File

@@ -82,7 +82,9 @@ public class BusinessPlaceService : IBusinessPlaceService
{
if (item.ShiftCode.HasValue)
{
item.ShiftTypes = shiftTypes.Where(x => x.ShiftCode == item.ShiftCode.Value).Select(x => x.ShiftType).ToList();
item.ShiftTypes = shiftTypes.Where(x => x.ShiftCode == item.ShiftCode.Value)
.Select(x => new Dictionary<int, string>() { [(int)x.ShiftType] = x.ShiftType.GetDescription() })
.ToList();
}
});