包间餐脚本bug

This commit is contained in:
fengjh5 2024-05-20 08:52:12 +08:00
parent 034eb70046
commit 34f48aa8ff
1 changed files with 2 additions and 1 deletions

View File

@ -2490,7 +2490,8 @@ if($act == 'baojian'){
$dining_hall_id = "305"; $dining_hall_id = "305";
// 获取今天围餐的所有订单 // 获取今天围餐的所有订单
$today = date('Y-m-d'); // $today = date('Y-m-d');
$today = date('Y-m-d', strtotime(date('Y-m-d'). ' +1 day'));
$dateInfo = $db->get_all("select a.*, b.name as meal_type_name from tb_date a,tb_meal_type b where a.dc_type=b.id and a.dc_date='{$today}' and a.dining_hall_id='{$dining_hall_id}' and b.mealtype=6 and b.status=1 order by b.idx desc"); $dateInfo = $db->get_all("select a.*, b.name as meal_type_name from tb_date a,tb_meal_type b where a.dc_type=b.id and a.dc_date='{$today}' and a.dining_hall_id='{$dining_hall_id}' and b.mealtype=6 and b.status=1 order by b.idx desc");
if(empty($dateInfo)){ if(empty($dateInfo)){