fixed 12-28

This commit is contained in:
weiz 2023-12-28 15:57:58 +08:00
parent 64d608fd9f
commit 3ee35c147d
2 changed files with 7 additions and 0 deletions

View File

@ -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);

View File

@ -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)
{