From 5b786a5b53e4a7ec80f0812a384926781f19d621 Mon Sep 17 00:00:00 2001 From: vguanyiwgd Date: Wed, 3 Apr 2024 08:57:30 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9index3=20=E7=9A=84cp=20?= =?UTF-8?q?=E6=8E=92=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I44ff0119d98fbfee66439d0a5fe97b3ef4ac90cc --- backstage/application/api/controllers/api/Dishes.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backstage/application/api/controllers/api/Dishes.php b/backstage/application/api/controllers/api/Dishes.php index c9cb803..8b5ac38 100644 --- a/backstage/application/api/controllers/api/Dishes.php +++ b/backstage/application/api/controllers/api/Dishes.php @@ -566,7 +566,7 @@ class Dishes extends REST_Controller } public function index3_get() { $dining_hall_id = intval($this->user->dining_hall_id); - $data = $this->Common_model->sql_get_all("select a.*,b.name as meal_name from tb_date a, tb_meal_type b where a.dc_type=b.id and a.dining_hall_id = '{$dining_hall_id}' and dc_date >= '".date("Y-m-d")."' order by dc_date,dc_type limit 50"); + $data = $this->Common_model->sql_get_all("select a.*,b.name as meal_name from tb_date a, tb_meal_type b where a.dc_type=b.id and a.dining_hall_id = '{$dining_hall_id}' and dc_date >= '".date("Y-m-d")."' order by dc_date,b.idx desc limit 50"); $all = array(); $dining_halls = ''; $extra_menus = '';