更新细节

This commit is contained in:
yaooo 2023-12-16 10:11:10 +08:00
parent 63f823700d
commit 93c12a803e
2 changed files with 4 additions and 8 deletions

View File

@ -45,11 +45,7 @@ class ProcurementContractLists extends BaseAdminDataLists implements ListsSearch
public function querySearch(): array
{
$queryWhere = [];
if (!empty($this->params['contract_cate'])) {
$queryWhere['contract_cate'] = $this->params['contract_cate'];
} else {
$queryWhere['contract_cate'] = 2;
}
$queryWhere['contract_cate'] = 1;
if (!empty($this->params['all'])) {
unset($queryWhere['contract_cate']);
}

View File

@ -47,10 +47,10 @@ class SubcontractingContractLists extends BaseAdminDataLists implements ListsSea
public function querySearch(): array
{
$queryWhere = [];
if (!empty($this->params['contract_cate'])) {
$queryWhere['contract_cate'] = $this->params['contract_cate'];
}
$queryWhere['contract_cate'] = 2;
if (!empty($this->params['all'])) {
unset($queryWhere['contract_cate']);
}
return $queryWhere;
}