修改index3 的cp 排序

Change-Id: I44ff0119d98fbfee66439d0a5fe97b3ef4ac90cc
This commit is contained in:
vguanyiwgd 2024-04-03 08:57:30 +08:00
parent 93153b6d02
commit 5b786a5b53
1 changed files with 1 additions and 1 deletions

View File

@ -566,7 +566,7 @@ class Dishes extends REST_Controller
} }
public function index3_get() { public function index3_get() {
$dining_hall_id = intval($this->user->dining_hall_id); $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(); $all = array();
$dining_halls = ''; $dining_halls = '';
$extra_menus = ''; $extra_menus = '';