update
This commit is contained in:
parent
ea2ad715b6
commit
b9f55f007a
@ -152,11 +152,12 @@ class SupervisionWitnessSamplingLogic extends BaseLogic
|
||||
{
|
||||
$data = SupervisionWitnessSampling::withoutField('update_time,delete_time')->findOrEmpty($params['id']);
|
||||
$project = SupervisionProject::field('project_name')->where('id',$data['project_id'])->findOrEmpty();
|
||||
$material_entry = SupervisionMaterialEntry::field('company_id,enter_time')->where('id',$data['material_entry_id'])->findOrEmpty();
|
||||
$material_entry = SupervisionMaterialEntry::field('theme,company_id,enter_time')->where('id',$data['material_entry_id'])->findOrEmpty();
|
||||
$company = SupervisionParticipatingUnits::field('unit_name')->where('id',$material_entry['company_id'])->findOrEmpty();
|
||||
$create_user = Admin::field('name')->where('id',$data['create_user'])->findOrEmpty();
|
||||
$data['project_name'] = $project['project_name'];
|
||||
$data['company_name'] = $company['unit_name'];
|
||||
$data['theme'] = $material_entry['theme'];
|
||||
$data['enter_time'] = $material_entry['enter_time'];
|
||||
$data['create_user_name'] = $create_user['name'];
|
||||
return $data->toArray();
|
||||
|
Loading…
x
Reference in New Issue
Block a user