细节优化+搜索条件优化
parent
0ba0e0c6c2
commit
cdcc4bacee
|
|
@ -196,11 +196,30 @@ class SearchService
|
||||||
{
|
{
|
||||||
$temp = explode('-', $v);
|
$temp = explode('-', $v);
|
||||||
if(count($temp) == 2)
|
if(count($temp) == 2)
|
||||||
|
{
|
||||||
|
// 最小金额等于0、最大金额大于0
|
||||||
|
if(empty($temp[0]) && !empty($temp[1]))
|
||||||
{
|
{
|
||||||
$where_screening_price[] = [
|
$where_screening_price[] = [
|
||||||
['min_price', 'EGT', $temp[0]],
|
['min_price', 'elt', $temp[1]],
|
||||||
['min_price', 'LT', $temp[1]],
|
|
||||||
];
|
];
|
||||||
|
|
||||||
|
// 最小金额大于0、最大金额大于0
|
||||||
|
// 最小金额等于0、最大金额等于0
|
||||||
|
} 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]],
|
||||||
|
];
|
||||||
|
|
||||||
|
// 最小金额大于0、最大金额等于0
|
||||||
|
} elseif(!empty($temp[0]) && empty($temp[1]))
|
||||||
|
{
|
||||||
|
$where_screening_price[] = [
|
||||||
|
['min_price', 'egt', $temp[0]],
|
||||||
|
];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -140,6 +140,7 @@ form.am-form .am-form-group-refreshing, .plug-file-upload-view { border-bottom:
|
||||||
margin-left: 0;
|
margin-left: 0;
|
||||||
margin-top: 0;
|
margin-top: 0;
|
||||||
}
|
}
|
||||||
|
.am-modal-dialog .am-modal-hd,
|
||||||
.am-modal-dialog .am-modal-bd {
|
.am-modal-dialog .am-modal-bd {
|
||||||
background: #fff;
|
background: #fff;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue