fixed 12-28
This commit is contained in:
parent
64d608fd9f
commit
3ee35c147d
@ -152,6 +152,8 @@ class CustomLogic extends BaseLogic
|
||||
public static function detail($params): array
|
||||
{
|
||||
$custom = Custom::findOrEmpty($params['id']);
|
||||
$parent_company = $custom::field('name')->where('id',$custom['parent_company'])->findOrEmpty();
|
||||
$custom['parent_company_name'] = $parent_company['name'];
|
||||
$custom->org;
|
||||
$custom->dept;
|
||||
$custom->other_contacts = json_decode($custom->other_contacts, true);
|
||||
|
@ -34,6 +34,11 @@ class CustomFollow extends BaseModel
|
||||
{
|
||||
return empty($value) ? '' : date('Y-m-d H:i:s', $value);
|
||||
}
|
||||
|
||||
public function getAnnexAttr($value)
|
||||
{
|
||||
return empty($value) ? '' : json_decode($value,true);
|
||||
}
|
||||
|
||||
public function getNextFollowDateAttr($value)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user