时间及打包处理

This commit is contained in:
yan.y
2024-04-28 17:38:17 +08:00
parent 4555360bbb
commit abe0a27140
3 changed files with 11 additions and 8 deletions
+2 -2
View File
@@ -48,8 +48,8 @@ func GetStrDays(day int, minute int, reserveMap map[string]models.ReserveTimeFil
//且不存在过滤时间中
_, existsDay := reserveMap[nextHour.Format("2006-01-02")]
_, existsHour := reserveMap[nextHour.Format("15")]
_, existOrderTime := orderTimeMap[nextHour.Format("2006-01-02 15:04:00")]
orderNum, existOrderNum := orderNumMap[nextHour.Format("2006-01-02 15:04:00")]
_, existOrderTime := orderTimeMap[nextHour.Format("2006-01-02 15:04")]
orderNum, existOrderNum := orderNumMap[nextHour.Format("2006-01-02 15:04")]
if (nextHour.Hour() >= workStart && nextHour.Hour() < workEnd) && (!existsDay && !existsHour) && !existOrderTime {
key := nextHour.Format("2006-01-02")
if _, ok := dayHoursMap[key]; ok {