更新
This commit is contained in:
@@ -78,6 +78,22 @@ class Diagnosis extends BaseModel
|
||||
return !empty($data['past_history']) ? explode(',', $data['past_history']) : [];
|
||||
}
|
||||
|
||||
/**
|
||||
* @notes 口腔感觉数组读取
|
||||
*/
|
||||
public function getAppetiteAttr($value, $data)
|
||||
{
|
||||
return !empty($value) ? explode(',', $value) : [];
|
||||
}
|
||||
|
||||
/**
|
||||
* @notes 口腔感觉数组写入
|
||||
*/
|
||||
public function setAppetiteAttr($value)
|
||||
{
|
||||
return is_array($value) ? implode(',', $value) : $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* @notes BMI 计算(身高cm,体重kg)
|
||||
* @param $value
|
||||
|
||||
Reference in New Issue
Block a user