This commit is contained in:
2023-04-03 17:34:23 +08:00
parent 0b09004a2c
commit 66e5287782
2 changed files with 12 additions and 1 deletions
+11
View File
@@ -122,6 +122,17 @@ class OrderInquiry extends Model
return self::where($params)->count();
}
/**
* 获取单条,排序
* @param array $params
* @param array $fields
* @return object|null
*/
public static function getOrderOne(array $params, array $fields = ['*']): object|null
{
return self::where($params)->orderBy('created_at')->first($fields);
}
/**
* 获取医生某一时间段接诊订单分页数据
* 已结束