#serializeJSON(arguments.payload)# 0", [ { value = BusinessID, cfsqltype = "cf_sql_integer" } ], { datasource = "payfrit" } )> 0 ) AND ( ScheduleStart IS NULL OR ScheduleEnd IS NULL OR ( TIME(:currentTime) >= ScheduleStart AND TIME(:currentTime) <= ScheduleEnd ) ) AND ( ScheduleDays IS NULL OR ScheduleDays = '' OR FIND_IN_SET(:currentDay, ScheduleDays) > 0 ) AND ( MenuID IS NULL OR MenuID = 0 #len(activeMenuIds) ? "OR MenuID IN (#activeMenuIds#)" : ""# ) ORDER BY SortOrder ", { bizId: { value = BusinessID, cfsqltype = "cf_sql_integer" }, orderTypeId: { value = OrderTypeID, cfsqltype = "cf_sql_integer" }, currentTime: { value = currentTime, cfsqltype = "cf_sql_varchar" }, currentDay: { value = currentDayID, cfsqltype = "cf_sql_integer" } }, { datasource = "payfrit" } )> 0)) AND NOT EXISTS (SELECT 1 FROM lt_ItemID_TemplateItemID tl WHERE tl.TemplateItemID = i.ID) AND NOT EXISTS (SELECT 1 FROM lt_ItemID_TemplateItemID tl2 WHERE tl2.TemplateItemID = i.ParentItemID) AND NOT (i.ParentItemID = 0 AND i.CategoryID = 0 AND i.Price = 0) ORDER BY COALESCE(c.SortOrder, 999), i.SortOrder, i.ID ", { bizId: { value = BusinessID, cfsqltype = "cf_sql_integer" } }, { datasource = "payfrit" } )> 0 OR (i.ParentItemID = 0 AND i.IsCollapsible = 0) ) ORDER BY i.ParentItemID, i.SortOrder, i.ID ", [ { value = BusinessID, cfsqltype = "cf_sql_integer" } ], { datasource = "payfrit" } )>