时间及打包处理
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user