|
@@ -120,7 +120,10 @@ namespace GxPress.Api.AppControllers
|
|
|
TimeKey = item.Date.ToString(),
|
|
|
};
|
|
|
foreach (var data in orderList.Where(n => n.Date == Convert.ToInt32(item.Date)).Distinct().ToList())
|
|
|
- timeDictionary.TimeValues.Add(new TimeValue { Key = data.Hour, Value = data.UserName });
|
|
|
+ {
|
|
|
+ timeDictionary.TimeValues.Add(data.Hour);
|
|
|
+ timeDictionary.NewTimeValues.Add(new TimeValue { Key = data.Hour, Value = data.UserName });
|
|
|
+ }
|
|
|
orderLists.Add(timeDictionary);
|
|
|
}
|
|
|
// foreach (var item in orderLists)
|
|
@@ -561,7 +564,7 @@ namespace GxPress.Api.AppControllers
|
|
|
var meetingTime = meetingTimeList.FirstOrDefault();
|
|
|
var TimeValuelast = meetingTime.TimeValues.Last();
|
|
|
var data = meetingTime.TimeKey.ToString().Insert(4, "-").Insert(7, "-");
|
|
|
- var key = Convert.ToDateTime(data).AddHours(TimeValuelast.Key);
|
|
|
+ var key = Convert.ToDateTime(data).AddHours(TimeValuelast);
|
|
|
if (key < DateTime.Now)
|
|
|
status = 1;
|
|
|
}
|
|
@@ -628,7 +631,7 @@ namespace GxPress.Api.AppControllers
|
|
|
var meetingTime = meetingTimeList.FirstOrDefault();
|
|
|
var TimeValuelast = meetingTime.TimeValues.Last();
|
|
|
var data = meetingTime.TimeKey.ToString().Insert(4, "-").Insert(7, "-");
|
|
|
- var key = Convert.ToDateTime(data).AddHours(TimeValuelast.Key);
|
|
|
+ var key = Convert.ToDateTime(data).AddHours(TimeValuelast);
|
|
|
if (key < DateTime.Now)
|
|
|
status = 1;
|
|
|
}
|
|
@@ -695,7 +698,10 @@ namespace GxPress.Api.AppControllers
|
|
|
var timeDictionary = new TimeDictionary();
|
|
|
timeDictionary.TimeKey = item.Date.ToString();
|
|
|
foreach (var date in orderAllList.Where(n => n.Date == item.Date).OrderBy(n => n.Hour).Select(n => n.Hour).Distinct().ToList())
|
|
|
- timeDictionary.TimeValues.Add(new TimeValue { Key = date, Value = item.UserName });
|
|
|
+ {
|
|
|
+ timeDictionary.TimeValues.Add(date);
|
|
|
+ timeDictionary.NewTimeValues.Add(new TimeValue { Key = date, Value = item.UserName });
|
|
|
+ }
|
|
|
orderLists.Add(timeDictionary);
|
|
|
}
|
|
|
#endregion
|