Commit bc080820 by 杨树贤

云芯筛选问题

parent 1d651642
...@@ -365,9 +365,11 @@ class SupplierFilter ...@@ -365,9 +365,11 @@ class SupplierFilter
$query->where('stockup_type', 'NOT LIKE', '%5%')->where('sku_num', '>', 0); $query->where('stockup_type', 'NOT LIKE', '%5%')->where('sku_num', '>', 0);
break; break;
case "not_yunxin_expired": case "not_yunxin_expired":
case "not_yunxin_and_has_no_sku":
$query->where('stockup_type', 'NOT LIKE', '%5%')->where('sku_num', 0); $query->where('stockup_type', 'NOT LIKE', '%5%')->where('sku_num', 0);
break; break;
case "not_yunxin_and_has_no_sku":
$query->where('stockup_type', 'NOT LIKE', '%5%')->where('sku_num', 0)->where('uploaded_sku',1);
break;
case "yunxin": case "yunxin":
$query->where('stockup_type', 'LIKE', '%5%'); $query->where('stockup_type', 'LIKE', '%5%');
break; break;
...@@ -375,9 +377,11 @@ class SupplierFilter ...@@ -375,9 +377,11 @@ class SupplierFilter
$query->where('stockup_type', 'LIKE', '%5%')->where('sku_num', '>', 0); $query->where('stockup_type', 'LIKE', '%5%')->where('sku_num', '>', 0);
break; break;
case "yunxin_expired": case "yunxin_expired":
case "yunxin_and_has_no_sku":
$query->where('stockup_type', 'LIKE', '%5%')->where('sku_num', 0); $query->where('stockup_type', 'LIKE', '%5%')->where('sku_num', 0);
break; break;
case "yunxin_and_has_no_sku":
$query->where('stockup_type', 'LIKE', '%5%')->where('sku_num', 0)->where('uploaded_sku',1);
break;
case "yunxin_expired_at_days": case "yunxin_expired_at_days":
$query->where('stockup_type', 'LIKE', '%5%')->where('sku_expired_in_days', '!=', 0); $query->where('stockup_type', 'LIKE', '%5%')->where('sku_expired_in_days', '!=', 0);
break; break;
......
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