细节优化+搜索条件优化

feat/task1-c-wallet
Devil 2021-02-20 13:48:12 +08:00
parent 0ba0e0c6c2
commit cdcc4bacee
2 changed files with 24 additions and 4 deletions

View File

@ -197,10 +197,29 @@ class SearchService
$temp = explode('-', $v);
if(count($temp) == 2)
{
$where_screening_price[] = [
['min_price', 'EGT', $temp[0]],
['min_price', 'LT', $temp[1]],
];
// 最小金额等于0、最大金额大于0
if(empty($temp[0]) && !empty($temp[1]))
{
$where_screening_price[] = [
['min_price', 'elt', $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]],
];
}
}
}
}

View File

@ -140,6 +140,7 @@ form.am-form .am-form-group-refreshing, .plug-file-upload-view { border-bottom:
margin-left: 0;
margin-top: 0;
}
.am-modal-dialog .am-modal-hd,
.am-modal-dialog .am-modal-bd {
background: #fff;
}