Commit 1a31bd2c by 赵增煜

增加签名照片不为空潘墩

parent c46ac54c
...@@ -271,11 +271,13 @@ public function create(Request $request) ...@@ -271,11 +271,13 @@ public function create(Request $request)
$prescription->pharmacy_name = $pharmacy->name; $prescription->pharmacy_name = $pharmacy->name;
// 分派药师,先搜索是否存在默认药师,如果不存在则随机抽取一个 // 分派药师,先搜索是否存在默认药师,如果不存在则随机抽取一个
$pharmacist = PharmacistModel::where('status', PharmacistModel::IS_STATUS_TRUE) $pharmacist = PharmacistModel::where('status', PharmacistModel::IS_STATUS_TRUE)
->whereNotNull('signed_pic')
->where('pharmacy_id', $pharmacy_id) ->where('pharmacy_id', $pharmacy_id)
->where('is_default', PharmacistModel::IS_DEFAULT_TRUE) ->where('is_default', PharmacistModel::IS_DEFAULT_TRUE)
->first(); ->first();
if (! $pharmacist) { if (! $pharmacist) {
$pharmacist = PharmacistModel::where('status', PharmacistModel::IS_STATUS_TRUE) $pharmacist = PharmacistModel::where('status', PharmacistModel::IS_STATUS_TRUE)
->whereNotNull('signed_pic')
->where('pharmacy_id', $pharmacy_id) ->where('pharmacy_id', $pharmacy_id)
->inRandomOrder() ->inRandomOrder()
->first(); ->first();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment