搜索价格筛选错误修复

feat/task1-c-wallet
Devil 2021-08-03 19:06:30 +08:00
parent 39326cefcc
commit 4a5c86a495
1 changed files with 4 additions and 4 deletions

View File

@ -230,7 +230,7 @@ class SearchService
if(empty($temp[0]) && !empty($temp[1]))
{
$where_screening_price[] = [
['min_price', 'elt', $temp[1]],
['min_price', '<=', $temp[1]],
];
// 最小金额大于0、最大金额大于0
@ -238,15 +238,15 @@ class SearchService
} elseif((!empty($temp[0]) && !empty($temp[1])) || (empty($temp[0]) && empty($temp[1])))
{
$where_screening_price[] = [
['min_price', 'egt', $temp[0]],
['min_price', 'elt', $temp[1]],
['min_price', '>=', $temp[0]],
['min_price', '<=', $temp[1]],
];
// 最小金额大于0、最大金额等于0
} elseif(!empty($temp[0]) && empty($temp[1]))
{
$where_screening_price[] = [
['min_price', 'egt', $temp[0]],
['min_price', '>=', $temp[0]],
];
}
}