update
This commit is contained in:
parent
67043e2587
commit
dcfd710ef5
@ -107,5 +107,8 @@
|
|||||||
return $this->data($result);
|
return $this->data($result);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function datas(): \think\response\Json
|
||||||
|
{
|
||||||
|
return $this->data(MarketingCustomReturnVisitLogic::datas());
|
||||||
|
}
|
||||||
}
|
}
|
@ -197,4 +197,11 @@
|
|||||||
$data['return_visit_type_text'] = $data->return_visit_type_text;
|
$data['return_visit_type_text'] = $data->return_visit_type_text;
|
||||||
return $data->toArray();
|
return $data->toArray();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static function datas(): array
|
||||||
|
{
|
||||||
|
return MarketingCustomReturnVisit::field(['id', 'code'])->order(['id' => 'desc'])->select()->each(function ($data) {
|
||||||
|
$data['projectinfo'] = 'ID:' . $data['id'] . ' / 编号:' . $data['code'];
|
||||||
|
})->toArray();
|
||||||
|
}
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user