更新
This commit is contained in:
parent
250ca31496
commit
c83e9a1674
@ -244,7 +244,11 @@ class CompanyLogic extends BaseLogic
|
||||
}
|
||||
$data['area_manager_name'] = Db::name('admin')->where('id', $data['area_manager'])->value('name');
|
||||
$data['responsible_area'] = explode(',', $data['responsible_area']);
|
||||
$data['contract'] = Contract::where(['party_b' => $data['id']])->with(['party_a_info', 'contractType'])->find();
|
||||
$where[]=['party_b','=', $data['id']];
|
||||
if(isset($params['contract_type'])){
|
||||
$wehre[]=['contract_type','=',$params['contract_type']];
|
||||
}
|
||||
$data['contract'] = Contract::where($wehre)->with(['party_a_info', 'contractType'])->find();
|
||||
|
||||
}
|
||||
return $data;
|
||||
|
Loading…
x
Reference in New Issue
Block a user