修改获取处方列表,新增返回字段,新增 获取患者最后一条问诊订单id接口

This commit is contained in:
2023-08-31 17:01:25 +08:00
parent add6987538
commit 79d532c44f
6 changed files with 72 additions and 2 deletions
+13
View File
@@ -520,4 +520,17 @@ class OrderInquiry extends Model
->latest()
->first($fields);
}
/**
* 获取最后一条订单
* @param array $params
* @param array $fields
* @return object|null
*/
public static function getInquiryLastOne(array $params,array $fields = ["*"]): object|null
{
return self::where($params)
->latest()
->first($fields);
}
}