修复错误

This commit is contained in:
mkm 2023-07-20 18:07:53 +08:00
parent 367b201d24
commit c720525023

View File

@ -45,7 +45,7 @@ class ContractController extends BaseApiController
$contract['contract_type_name'] = Db::name('dict_data')->where('id', $contract['contract_type'])->value('name');
$company = Company::where('id', $contract['company_id'])->find();
$company['company_type_name'] = Db::name('dict_data')->where('id', $contract['company_type'])->value('name');
$company['company_type_name'] = Db::name('dict_data')->where('id', $company['company_type'])->value('name');
$company['other_contacts'] = json_decode($company['other_contacts'], true);
$company['qualification'] = $company['qualification']!=null?json_decode($company['qualification'], true):'';
$users = Admin::where('company_id', $company['id'])->field('id,name,account,phone,qualification')->select()->toArray();