|
@@ -1675,7 +1675,12 @@ class WholeController extends Curd
|
|
|
|
|
|
// 打小票
|
|
|
if (!empty($premises)){
|
|
|
- $restaurant = SysDept::where('dept_super_id',$premises->dept_id)->where('dept_category','餐厅')->first();
|
|
|
+ if($premises->dept_category != '餐厅'){
|
|
|
+ $restaurant = SysDept::where('dept_super_id',$premises->dept_id)->where('dept_category','餐厅')->first();
|
|
|
+ }else{
|
|
|
+ $restaurant = $premises;
|
|
|
+ }
|
|
|
+
|
|
|
if (!empty($restaurant->dept_extend_json)){
|
|
|
$deptExtendJson = json_decode($restaurant->dept_extend_json,true);
|
|
|
if (isset($deptExtendJson['printer'])){
|