|
|
@@ -73,6 +73,8 @@ class LowPriceGoods extends Controller
|
|
|
$product_brand = request('product_brand', '');
|
|
|
$collection_time_start_time = request('collection_time_start_time', '');
|
|
|
$collection_time_end_time = request('collection_time_end_time', '');
|
|
|
+ $online_posting_min_price = request('online_posting_min_price', '');
|
|
|
+ $online_posting_max_price = request('online_posting_max_price', '');
|
|
|
// 时间条件
|
|
|
if ($collection_time_start_time) $map[] = ['collection_time', '>=', strtotime($collection_time_start_time)];
|
|
|
if ($collection_time_end_time) $map[] = ['collection_time', '<=', strtotime($collection_time_end_time)];
|
|
|
@@ -88,6 +90,8 @@ class LowPriceGoods extends Controller
|
|
|
if ($online_posting_cunt) $map[] = ['online_posting_count', '=', $online_posting_cunt];
|
|
|
if ($continuous_listing_count) $map[] = ['continuous_listing_count', '=', $continuous_listing_count];
|
|
|
if ($product_brand) $map[] = ['product_brand', 'like', "%$product_brand%"];
|
|
|
+ if ($online_posting_min_price) $map[] = ['online_posting_price', '>=', $online_posting_min_price];
|
|
|
+ if ($online_posting_max_price) $map[] = ['online_posting_price', '<=', $online_posting_max_price];
|
|
|
|
|
|
|
|
|
$low_price_goods_where = [];
|
|
|
@@ -270,6 +274,8 @@ class LowPriceGoods extends Controller
|
|
|
$message_data['product_brand'] = request('product_brand', '');
|
|
|
$message_data['collection_time_start_time'] = request('collection_time_start_time', '');
|
|
|
$message_data['collection_time_end_time'] = request('collection_time_end_time', '');
|
|
|
+ $message_data['online_posting_min_price'] = request('online_posting_min_price', '');
|
|
|
+ $message_data['online_posting_max_price'] = request('online_posting_max_price', '');
|
|
|
|
|
|
$low_price_goods_where = [];
|
|
|
// 权限判断
|
|
|
@@ -304,6 +310,8 @@ class LowPriceGoods extends Controller
|
|
|
$shipment_province_ids = $message_data['shipment_province_ids'] ?? '';
|
|
|
$shipment_city_ids = $message_data['shipment_city_ids'] ?? '';
|
|
|
$product_brand = $message_data['product_brand'] ?? '';
|
|
|
+ $online_posting_min_price = $message_data['online_posting_min_price'] ?? '';
|
|
|
+ $online_posting_max_price = $message_data['online_posting_max_price'] ?? '';
|
|
|
|
|
|
$collection_time_start_time = $message_data['collection_time_start_time'] ?? '';
|
|
|
$collection_time_end_time = $message_data['collection_time_end_time'] ?? '';
|
|
|
@@ -318,6 +326,8 @@ class LowPriceGoods extends Controller
|
|
|
if ($anonymous_store_name) $map[] = ['anonymous_store_name', 'like', "%$anonymous_store_name%"];
|
|
|
if ($category_name) $map[] = ['category_name', 'like', "%$category_name%"];
|
|
|
if ($product_brand) $map[] = ['product_brand', 'like', "%$product_brand%"];
|
|
|
+ if ($online_posting_min_price) $map[] = ['online_posting_price', '>=', $online_posting_min_price];
|
|
|
+ if ($online_posting_max_price) $map[] = ['online_posting_price', '<=', $online_posting_max_price];
|
|
|
|
|
|
|
|
|
$admin_company_id = $message_data['admin_company_id'];
|