Commit 1a28510f by lujunyi

style

parent ab5ead49
......@@ -19,7 +19,7 @@ public function diagnosisList(Request $request)
{
$search_input = $request->input('search_input');
$type = $request->input('type', 0);
# $query = DiagnosiModel::query()->where('type', $type);
// $query = DiagnosiModel::query()->where('type', $type);
$query = DiagnosiModel::query();
if ($search_input) {
$query->where('name', 'like', "%{$search_input}%")
......
......@@ -271,13 +271,13 @@ public function create(Request $request)
$prescription->pharmacy_name = $pharmacy->name;
// 分派药师,先搜索是否存在默认药师,如果不存在则随机抽取一个
$pharmacist = PharmacistModel::where('status', PharmacistModel::IS_STATUS_TRUE)
# ->whereNotNull('signed_pic')
// ->whereNotNull('signed_pic')
->where('pharmacy_id', $pharmacy_id)
->where('is_default', PharmacistModel::IS_DEFAULT_TRUE)
->first();
if (! $pharmacist) {
$pharmacist = PharmacistModel::where('status', PharmacistModel::IS_STATUS_TRUE)
# ->whereNotNull('signed_pic')
// ->whereNotNull('signed_pic')
->where('pharmacy_id', $pharmacy_id)
->inRandomOrder()
->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