From 09a57a68b7beb4b325028299687512457c3565b1 Mon Sep 17 00:00:00 2001 From: vguanyiwgd Date: Tue, 7 May 2024 09:43:02 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=87=AA=E5=8A=A8=E8=AE=A2?= =?UTF-8?q?=E9=A4=90=20=20=E5=85=81=E8=AE=B8is=5Ffree=3D1=20=E4=B9=9F?= =?UTF-8?q?=E5=8F=AF=E4=BB=A5=E8=87=AA=E5=8A=A8=E8=AE=A2=E9=A4=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Id483dd9bd6e11460c48ca4a0573ce7d3115c2510 --- backstage/application/api/controllers/api/User.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backstage/application/api/controllers/api/User.php b/backstage/application/api/controllers/api/User.php index 2ada22e..255ee56 100644 --- a/backstage/application/api/controllers/api/User.php +++ b/backstage/application/api/controllers/api/User.php @@ -2219,7 +2219,7 @@ class User extends REST_Controller $cutUsername = cutName($userInfo['username']); // 获取明天需要订的date_id列表 - $dc_date_list = $this->db->query("select a.*, c.name dc_type_name from tb_date a, tb_dining_hall b, tb_meal_type c where a.dining_hall_id=b.id and a.dc_type=c.id and a.dc_date='{$tomorrow}' and a.is_free=0 and b.company_id='{$company_id}' and b.id='{$userInfo['dining_hall_id']}'")->result_array(); + $dc_date_list = $this->db->query("select a.*, c.name dc_type_name from tb_date a, tb_dining_hall b, tb_meal_type c where a.dining_hall_id=b.id and a.dc_type=c.id and a.dc_date='{$tomorrow}' and b.company_id='{$company_id}' and b.id='{$userInfo['dining_hall_id']}'")->result_array(); if(empty($dc_date_list)){ // 明天没有菜谱安排 return array(