瀏覽代碼

see untagged form

ifah
Siti Hajar Ibrahim 4 年之前
父節點
當前提交
849b4547f1
共有 1 個檔案被更改,包括 4 行新增7 行删除
  1. 4
    7
      app/Http/Controllers/Controller.php

+ 4
- 7
app/Http/Controllers/Controller.php 查看文件

@@ -17,17 +17,14 @@ class Controller extends BaseController
{

$result = array();
$untaggedform = Form::where('customer_category', null)->get();
$work_order = WorkOrder::all();

foreach ($untaggedform as $key => $a) {
$work_order = WorkOrder::where('_id', $a->_id)->get();
foreach ($work_order as $key => $a) {
$untaggedform = Form::where('_id',$a->_id)->where('customer_category',null)->get();

if(!empty($work_order->wo)){
dd($work_order);
array_push($result, array(
'wo' => $work_order->wo,
'_id' => $untaggedform->_id,
));
}
}

return json_encode($result);

Loading…
取消
儲存