更新
This commit is contained in:
@@ -60,6 +60,16 @@ class AdminLogic extends BaseLogic
|
||||
'create_time' => time(),
|
||||
'disable' => $params['disable'],
|
||||
'multipoint_login' => $params['multipoint_login'],
|
||||
// 新增字段
|
||||
'gender' => $params['gender'] ?? 1,
|
||||
'age' => $params['age'] ?? null,
|
||||
'phone' => $params['phone'] ?? null,
|
||||
'title' => $params['title'] ?? null,
|
||||
'department' => $params['department'] ?? null,
|
||||
'specialty' => $params['specialty'] ?? null,
|
||||
'education' => $params['education'] ?? null,
|
||||
'experience' => $params['experience'] ?? null,
|
||||
'honors' => $params['honors'] ?? null,
|
||||
]);
|
||||
|
||||
// 角色
|
||||
@@ -99,7 +109,17 @@ class AdminLogic extends BaseLogic
|
||||
'name' => $params['name'],
|
||||
'account' => $params['account'],
|
||||
'disable' => $params['disable'],
|
||||
'multipoint_login' => $params['multipoint_login']
|
||||
'multipoint_login' => $params['multipoint_login'],
|
||||
// 新增字段
|
||||
'gender' => $params['gender'] ?? 1,
|
||||
'age' => $params['age'] ?? null,
|
||||
'phone' => $params['phone'] ?? null,
|
||||
'title' => $params['title'] ?? null,
|
||||
'department' => $params['department'] ?? null,
|
||||
'specialty' => $params['specialty'] ?? null,
|
||||
'education' => $params['education'] ?? null,
|
||||
'experience' => $params['experience'] ?? null,
|
||||
'honors' => $params['honors'] ?? null,
|
||||
];
|
||||
|
||||
// 头像
|
||||
@@ -232,6 +252,8 @@ class AdminLogic extends BaseLogic
|
||||
$admin = Admin::field([
|
||||
'id', 'account', 'name', 'disable', 'root',
|
||||
'multipoint_login', 'avatar',
|
||||
'gender', 'age', 'phone', 'title', 'department',
|
||||
'specialty', 'education', 'experience', 'honors'
|
||||
])->findOrEmpty($params['id'])->toArray();
|
||||
|
||||
if ($action == 'detail') {
|
||||
|
||||
@@ -290,9 +290,9 @@ class AppointmentLogic extends BaseLogic
|
||||
public static function detail(array $params)
|
||||
{
|
||||
$appointment = Appointment::alias('a')
|
||||
->leftJoin('la_user u', 'a.patient_id = u.id')
|
||||
->leftJoin('la_admin ad', 'a.doctor_id = ad.id')
|
||||
->field('a.*, u.nickname as patient_name, u.mobile as patient_phone, ad.name as doctor_name')
|
||||
->leftJoin('zyt_tcm_diagnosis u', 'a.patient_id = u.id')
|
||||
->leftJoin('zyt_admin ad', 'a.doctor_id = ad.id')
|
||||
->field('a.*, u.patient_name as patient_name, u.phone as patient_phone, ad.name as doctor_name')
|
||||
->where('a.id', $params['id'])
|
||||
->findOrEmpty()
|
||||
->toArray();
|
||||
|
||||
Reference in New Issue
Block a user