|
@@ -925,7 +925,7 @@ class Good extends Base
|
|
|
if ($param['spucode']) $where[] = ['b.spucode', 'like', '%' . $param['spucode'] . '%'];
|
|
|
if ($param['start']) $where[] = ['a.addtime', '>=', date('Y-m-d H:i:s', strtotime($param['start']))];
|
|
|
if ($param['end']) $where[] = ['a.addtime', '<', date('Y-m-d H:i:s', strtotime($param['end'] + 24 * 3600))];
|
|
|
- if ($param['good_type']) $where[] = ['a.good_type', '=', $param['good_type']];
|
|
|
+ if ($param['good_type']!='') $where[] = ['a.good_type', '=', $param['good_type']];
|
|
|
if ($param['supplierNo']) $where[] = ['a.supplierNo', '=', $param['supplierNo']];
|
|
|
if ($param['companyNo']) $where[] = ['a.companyNo', 'like', '%' . $param['companyNo'] . '%'];
|
|
|
if ($param['creater']) $where[] = ['a.creater', 'like', '%' . $param['creater'] . '%'];
|