update
Change-Id: I1b57c30843443fa0998ec094d55bd265a981b1a7
This commit is contained in:
parent
a6a6f1e94c
commit
2c41398dba
|
@ -2513,7 +2513,7 @@ if($act == 'weican'){
|
||||||
// 然后添加餐标菜式
|
// 然后添加餐标菜式
|
||||||
// 判断是否已经有餐标菜式
|
// 判断是否已经有餐标菜式
|
||||||
$has_meal_label = $db->get_one("select * from tb_date_dish a, tb_dish b where a.dish_id=b.id and b.dish_type='{$meal_label_type}' and a.date_id='{$date_id}' and b.enabled=1");
|
$has_meal_label = $db->get_one("select * from tb_date_dish a, tb_dish b where a.dish_id=b.id and b.dish_type='{$meal_label_type}' and a.date_id='{$date_id}' and b.enabled=1");
|
||||||
if(!empty($has_meal_label)){
|
if(empty($has_meal_label)){
|
||||||
// 当前菜谱没有餐标菜式,添加
|
// 当前菜谱没有餐标菜式,添加
|
||||||
$meal_label_list = $db->get_all("select * from tb_dish where enabled=1 and dish_type='{$meal_label_type}' and dining_hall_id='{$dining_hall_id}' order by id asc");
|
$meal_label_list = $db->get_all("select * from tb_dish where enabled=1 and dish_type='{$meal_label_type}' and dining_hall_id='{$dining_hall_id}' order by id asc");
|
||||||
foreach ($meal_label_list as $mk => $mv){
|
foreach ($meal_label_list as $mk => $mv){
|
||||||
|
|
Loading…
Reference in New Issue