fix 参数结构调整
This commit is contained in:
@@ -7,5 +7,5 @@ public class BusinessPlaceListResponse : BusinessPlaceResponse
|
||||
/// <summary>
|
||||
/// 餐次
|
||||
/// </summary>
|
||||
public List<ShiftEnumType> ShiftTypes { get; set; }
|
||||
public List<Dictionary<int, string>> ShiftTypes { get; set; }
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user