更新细节
This commit is contained in:
parent
c27b1adbf9
commit
63f823700d
@ -47,8 +47,12 @@ class ProcurementContractLists extends BaseAdminDataLists implements ListsSearch
|
||||
$queryWhere = [];
|
||||
if (!empty($this->params['contract_cate'])) {
|
||||
$queryWhere['contract_cate'] = $this->params['contract_cate'];
|
||||
} else {
|
||||
$queryWhere['contract_cate'] = 2;
|
||||
}
|
||||
if (!empty($this->params['all'])) {
|
||||
unset($queryWhere['contract_cate']);
|
||||
}
|
||||
$queryWhere['contract_cate'] = 1;
|
||||
return $queryWhere;
|
||||
}
|
||||
|
||||
|
@ -32,7 +32,7 @@ class SubcontractingContractNegotiation extends BaseModel
|
||||
|
||||
public function contract()
|
||||
{
|
||||
return $this->belongsTo(\app\common\model\contract\SubcontractingContract::class, 'subcontracting_contract_id');
|
||||
return $this->belongsTo(\app\common\model\contract\ProcurementContract::class, 'subcontracting_contract_id');
|
||||
}
|
||||
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user