新增获取医生个人中心数据
This commit is contained in:
@@ -106,12 +106,14 @@ class OrderInquiry extends Model
|
||||
/**
|
||||
* 获取医生某天预计收益
|
||||
* @param array $params
|
||||
* @param array $reception_time 接诊时间区间
|
||||
* @return int|mixed|string
|
||||
*/
|
||||
public static function getDoctorOneDayEstimateIncome(array $params): mixed
|
||||
public static function getDoctorOneDayEstimateIncome(array $params,array $reception_time): mixed
|
||||
{
|
||||
return self::where($params)
|
||||
->whereIn('inquiry_status',[4,5,6])
|
||||
->whereBetween('reception_time',$reception_time)
|
||||
->sum("amount_total");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user