public function get{%field%}Attr($value, $row): string { if ($row['{%originalFieldName%}'] === '' || $row['{%originalFieldName%}'] === null) return ''; $cityNames = \think\facade\Db::name('area')->whereIn('id', $row['{%originalFieldName%}'])->column('name'); return $cityNames ? implode(',', $cityNames) : ''; }