update
This commit is contained in:
parent
d81747d7c2
commit
ddc0e16883
@ -21,6 +21,10 @@ use app\common\logic\BaseLogic;
|
||||
use app\common\model\auth\Admin;
|
||||
use app\common\model\cost_project\CostProjectPerson;
|
||||
use app\common\model\DataReception;
|
||||
use app\common\model\dept\Dept;
|
||||
use app\common\model\dept\Orgs;
|
||||
use app\common\model\GeoCity;
|
||||
use app\common\model\GeoProvince;
|
||||
use app\common\model\project_process_management\ApplyWithSeal;
|
||||
use app\common\model\project_process_management\JianliProjectProgressReport;
|
||||
use app\common\model\project_process_management\ProjectChangeVisa;
|
||||
@ -241,6 +245,16 @@ class CostProjectLogic extends BaseLogic
|
||||
{
|
||||
$res= CostProject::with(['contract'])->findOrEmpty($params['id']);
|
||||
$res['person_text'] = $res->person_text;
|
||||
$res['types_text'] = $res->types_text;
|
||||
$res['industry_nature_text'] = $res['contract']->industry_nature_text;
|
||||
$province = GeoProvince::field('province_name')->where('province_code',$res['province'])->findOrEmpty();
|
||||
$city = GeoCity::field('city_name')->where('city_code',$res['city'])->findOrEmpty();
|
||||
$org = Orgs::field('name')->where('id',$res['org_id'])->findOrEmpty();
|
||||
$dept = Dept::field('name')->where('id',$res['depar'])->findOrEmpty();
|
||||
$res['province_name'] = $province['province_name'];
|
||||
$res['city_name'] = $city['city_name'];
|
||||
$res['org_name'] = $org['name'];
|
||||
$res['dept_name'] = $dept['name'];
|
||||
return $res->toArray();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user