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
1b6fa3c7
authored
Dec 07, 2024
by
lujunyi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
格式化
parent
da37c3ec
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
app/Api/Controllers/PharmacyController.php
+1
-1
app/Models/DiagnosiModel.php
+1
-1
No files found.
app/Api/Controllers/PharmacyController.php
View file @
1b6fa3c7
...
...
@@ -34,7 +34,7 @@ public function PharmacyList(Request $request)
if
(
$limit_test_id
)
{
$limit_ids
=
explode
(
','
,
$limit_test_id
);
}
$query
=
PharmacyModel
::
query
()
->
whereNotIn
(
'id'
,
$limit_ids
);
$query
=
PharmacyModel
::
query
()
->
whereNotIn
(
'id'
,
$limit_ids
);
if
(
$search_input
)
{
$query
->
where
(
'name'
,
'like'
,
"%
{
$search_input
}
%"
);
// ->orWhere('address','like',"%{$search_input}%");
...
...
app/Models/DiagnosiModel.php
View file @
1b6fa3c7
...
...
@@ -13,7 +13,6 @@ class DiagnosiModel extends Model
use
HasDateTimeFormatter
;
use
SoftDeletes
;
const
DIAGNOSI_TYPE_WM
=
0
;
const
DIAGNOSI_TYPE_TCM
=
1
;
...
...
@@ -23,6 +22,7 @@ class DiagnosiModel extends Model
self
::
DIAGNOSI_TYPE_WM
=>
'西医'
,
self
::
DIAGNOSI_TYPE_TCM
=>
'中医'
,
];
protected
$table
=
'diagnosis'
;
public
function
setNameAttribute
(
$value
)
...
...
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