This commit is contained in:
wucongxing 2023-04-03 17:36:31 +08:00
parent 66e5287782
commit b8bdf25d36

View File

@ -130,7 +130,7 @@ class OrderInquiry extends Model
*/
public static function getOrderOne(array $params, array $fields = ['*']): object|null
{
return self::where($params)->orderBy('created_at')->first($fields);
return self::where($params)->orderBy('created_at','desc')->first($fields);
}
/**