update
This commit is contained in:
parent
48fd13c7b6
commit
af3151a007
@ -74,12 +74,13 @@ class BuildReportDetailLists extends BaseAdminDataLists implements ListsSearchIn
|
||||
->limit($this->limitOffset, $this->limitLength)
|
||||
->order(['id' => 'desc'])
|
||||
->select()->each(function($item){
|
||||
$report = BuildReport::field('plan_id')->where('id',$item['report_id'])->findOrEmpty();
|
||||
$report = BuildReport::field('plan_id,report_code')->where('id',$item['report_id'])->findOrEmpty();
|
||||
$plan = BuildPlan::field('project_id,process_id,zy_code,price')->where('id',$report['plan_id'])->findOrEmpty();
|
||||
$project = Project::field('name')->where('id',$plan['project_id'])->findOrEmpty();
|
||||
$process = BuildProcessSettings::field('division_id,process_step_no,process_step')->where('id',$plan['process_id'])->findOrEmpty();
|
||||
$division = BuildDivision::field('subentry_engineering')->where('id',$process['division_id'])->findOrEmpty();
|
||||
$person = ProjectPersonnel::field('name,idcard,work_type')->where('id',$item['person_id'])->findOrEmpty();
|
||||
$item['report_code'] = $report['report_code'];
|
||||
$item['zy_code'] = $plan['zy_code'];
|
||||
$item['project_name'] = $project['name'];
|
||||
$item['subentry_engineering'] = $division['subentry_engineering'];
|
||||
|
Loading…
x
Reference in New Issue
Block a user