李昊 %!s(int64=4) %!d(string=hai) anos
pai
achega
5e823e9ae4

+ 2 - 2
gx_api/GxPress/Service/GxPress.Service.Implement/Meeting/MeetingService.cs

@@ -66,7 +66,7 @@ namespace GxPress.Service.Implement.Meeting
                 if (orderLists.Any(n => n.TimeKey == item.Date.ToString()))
                     continue;
                 var timeDictionary = new TimeDictionary();
-                timeDictionary.TimeKey = item.ToString();
+                timeDictionary.TimeKey = item.Date.ToString();
                 var timeValues = orderList.Where(n => n.Date == item.Date).OrderBy(n => n.Hour).Select(n => n.Hour).Distinct().ToList();
                 foreach (var timeValue in timeValues)
                     timeDictionary.TimeValues.Add(new TimeValue { Key = timeValue, Value = "" });
@@ -76,7 +76,7 @@ namespace GxPress.Service.Implement.Meeting
                 foreach (var ntd in nearTimeDictionary)
                 {
                     var meetingTime = new MeetingTime();
-                    var data = item.ToString().Insert(4, "-").Insert(7, "-");
+                    var data = item.Date.ToString().Insert(4, "-").Insert(7, "-");
                     var dataTime = Convert.ToDateTime(data);
                     var month = "M";
                     var day = "d";