Commit 483196fd authored by hujun's avatar hujun

成交报告搜索

parent 70a24710
...@@ -227,7 +227,11 @@ class Finance extends Basic ...@@ -227,7 +227,11 @@ class Finance extends Basic
$where_id[] = $v['father_id']; $where_id[] = $v['father_id'];
} }
} }
$where['a.id'] = [ 'in', $where_id ];
if (!empty($where['a.id'])) {
$where_id[] = $where['a.id'];
}
$where['a.id'] = [ 'in', array_unique($where_id) ];
} }
$is_show = 1; $is_show = 1;
} }
...@@ -247,7 +251,11 @@ class Finance extends Basic ...@@ -247,7 +251,11 @@ class Finance extends Basic
$where_id[] = $v['father_id']; $where_id[] = $v['father_id'];
} }
} }
$where['a.id'] = [ 'in', $where_id ];
if (!empty($where['a.id'])) {
$where_id[] = $where['a.id'];
}
$where['a.id'] = [ 'in', array_unique($where_id) ];
} }
$is_show = 1; $is_show = 1;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment