Commit 098ccbcd by mushishixian

fix

parent e3deaf5a
...@@ -50,7 +50,12 @@ class SupplierFilter ...@@ -50,7 +50,12 @@ class SupplierFilter
if (!empty($map['status'])) { if (!empty($map['status'])) {
$query->where('status', $map['status']); $query->where('status', $map['status']);
} }
if (isset($map['is_type']) && $map['is_type'] == "0") {
if (!empty($map['is_type'])) {
$query->where('is_type', $map['is_type']);
}
if (isset($map['is_type']) && $map['is_type'] === "0") {
$query->where('is_type', $map['is_type']); $query->where('is_type', $map['is_type']);
} }
if (!empty($map['has_sku'])) { if (!empty($map['has_sku'])) {
......
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 sign in to comment