我的账户数据修改-获取我的账户数据
This commit is contained in:
@@ -115,9 +115,10 @@ class DoctorAccountDay extends Model
|
||||
*/
|
||||
public static function getDoctorMonth(array $params,array $fields = ['*']): \Hyperf\Collection\Collection
|
||||
{
|
||||
return self::select(['month',Db::raw('SUM(total_amount) AS `total_amount`')])
|
||||
return self::select(['year','month',Db::raw('SUM(total_amount) AS `total_amount`')])
|
||||
->where($params)
|
||||
->groupBy(['month'])
|
||||
->groupBy(['year','month'])
|
||||
->orderBy('year')
|
||||
->orderBy('month')
|
||||
->get($fields);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user