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
26fca44f
authored
Dec 01, 2024
by
赵增煜
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
e40362c3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletions
+7
-1
app/Console/Commands/PrescriptionCommand.php
+7
-1
No files found.
app/Console/Commands/PrescriptionCommand.php
View file @
26fca44f
...
...
@@ -59,6 +59,9 @@ public function autoPrescriptionGen()
// 查询对应的医师是手动并且药师为自动
// $pharmacist = PharmacyModel::where('id', $prescription->pharmacy_id)->first();
$doctor
=
DoctorModel
::
where
(
'id'
,
$prescription
->
doctor_id
)
->
first
();
if
(
$doctor
==
null
)
{
continue
;
}
// if ($doctor->is_auto == 0 && $pharmacist->is_auto == 1) {
if
(
$doctor
->
is_auto
==
1
)
{
// 更新处方单状态
...
...
@@ -68,6 +71,9 @@ public function autoPrescriptionGen()
$prescriptionInfo
->
save
();
// 获取患者信息
$patient
=
PatientModel
::
where
(
'id'
,
$prescriptionInfo
->
patient_id
)
->
first
();
if
(
$patient
==
null
)
{
continue
;
}
// 生成审方日志
$dateTime
=
new
DateTime
(
$prescription
->
created_at
);
$dateTime
->
modify
(
'+3 minutes'
);
...
...
@@ -112,7 +118,7 @@ public function autoPrescriptionReview()
$prescriptionInfo
->
save
();
// 获取患者信息
$patient
=
PatientModel
::
where
(
'id'
,
$prescriptionInfo
->
patient_id
)
->
first
();
if
(
$patient
==
null
)
{
}
if
(
$patient
==
null
)
{
continue
;
}
// 生成审方日志
...
...
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