修改医生详情计算
This commit is contained in:
parent
bbd55161df
commit
286beb9afb
@ -127,9 +127,9 @@ class PatientDoctorService extends BaseService
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 好评率-超过5个已结束的订单后展示
|
// 好评率-超过5个已结束的订单后展示
|
||||||
$user_doctor['praise_rate'] = ceil($user_doctor['praise_rate'] * 0.05 * 100) / 100;
|
$user_doctor['praise_rate'] = floor($user_doctor['praise_rate'] * 0.05 * 100) / 100;
|
||||||
// 响应时间-超过5个已结束的订单后展示
|
// 响应时间-超过5个已结束的订单后展示
|
||||||
$user_doctor['avg_response_time'] = ceil($user_doctor['avg_response_time'] * 0.05 * 100) / 100 * 60;
|
$user_doctor['avg_response_time'] = floor($user_doctor['avg_response_time'] * 0.05 * 100) / 100 * 60;
|
||||||
|
|
||||||
// 获取医生订单数
|
// 获取医生订单数
|
||||||
$params = array();
|
$params = array();
|
||||||
@ -300,7 +300,7 @@ class PatientDoctorService extends BaseService
|
|||||||
$result['praise_rate'] = floor($user_doctor['praise_rate'] * 0.05 * 100) / 100;
|
$result['praise_rate'] = floor($user_doctor['praise_rate'] * 0.05 * 100) / 100;
|
||||||
|
|
||||||
// 响应时间-超过5个已结束的订单后展示
|
// 响应时间-超过5个已结束的订单后展示
|
||||||
$result['avg_response_time'] = floor($user_doctor['avg_response_time'] * 0.05 * 100) / 100 * 60;
|
$result['avg_response_time'] = floor($user_doctor['avg_response_time'] /60 * 100) / 100;
|
||||||
|
|
||||||
$params = array();
|
$params = array();
|
||||||
$params['doctor_id'] = $user_doctor['doctor_id'];
|
$params['doctor_id'] = $user_doctor['doctor_id'];
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user