修改index3 的cp 排序
Change-Id: I44ff0119d98fbfee66439d0a5fe97b3ef4ac90cc
This commit is contained in:
parent
93153b6d02
commit
5b786a5b53
|
@ -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 = '';
|
||||
|
|
Loading…
Reference in New Issue