Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
赵增煜
/
tzt-admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
1a28510f
authored
Dec 09, 2024
by
lujunyi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
style
parent
ab5ead49
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
app/Api/Controllers/DiagnosisController.php
+1
-1
app/Api/Controllers/PrescriptionController.php
+2
-2
No files found.
app/Api/Controllers/DiagnosisController.php
View file @
1a28510f
...
@@ -19,7 +19,7 @@ public function diagnosisList(Request $request)
...
@@ -19,7 +19,7 @@ public function diagnosisList(Request $request)
{
{
$search_input
=
$request
->
input
(
'search_input'
);
$search_input
=
$request
->
input
(
'search_input'
);
$type
=
$request
->
input
(
'type'
,
0
);
$type
=
$request
->
input
(
'type'
,
0
);
#
$query = DiagnosiModel::query()->where('type', $type);
//
$query = DiagnosiModel::query()->where('type', $type);
$query
=
DiagnosiModel
::
query
();
$query
=
DiagnosiModel
::
query
();
if
(
$search_input
)
{
if
(
$search_input
)
{
$query
->
where
(
'name'
,
'like'
,
"%
{
$search_input
}
%"
)
$query
->
where
(
'name'
,
'like'
,
"%
{
$search_input
}
%"
)
...
...
app/Api/Controllers/PrescriptionController.php
View file @
1a28510f
...
@@ -271,13 +271,13 @@ public function create(Request $request)
...
@@ -271,13 +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')
//
->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')
//
->whereNotNull('signed_pic')
->
where
(
'pharmacy_id'
,
$pharmacy_id
)
->
where
(
'pharmacy_id'
,
$pharmacy_id
)
->
inRandomOrder
()
->
inRandomOrder
()
->
first
();
->
first
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment