|
@@ -35,7 +35,7 @@ class SupplierGoods extends Controller
|
|
|
$company_id = input('get.company_id');
|
|
|
$this->supplier_id = $supplier_id;
|
|
|
$where = [];
|
|
|
- $where[] = ['is_deleted','=',0];
|
|
|
+ $where[] = ['a.is_deleted','=',0];
|
|
|
if($supplier_id)$where[] = ['a.supplier_id','=',$supplier_id];
|
|
|
if($company_id)$where[] = ['a.company_id','=',$company_id];
|
|
|
$query = $this->_query($this->table)->where($where)->like('a.name')->field('a.*,b.title supplier_name ,c.title company_name');
|