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
6c44404a
authored
Nov 23, 2024
by
赵增煜
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
自动脚本
parent
2d130f52
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
3 deletions
+2
-3
app/Api/Controllers/PrescriptionController.php
+1
-1
app/Console/Commands/PrescriptionCommand.php
+1
-2
No files found.
app/Api/Controllers/PrescriptionController.php
View file @
6c44404a
...
...
@@ -202,7 +202,7 @@ public function create(Request $request)
Log
::
info
(
'医师开方统计:'
.
json_encode
(
$prescriptionCounts
));
if
(
count
(
$prescriptionCounts
)
>
0
)
{
foreach
(
$doctorIds
as
$key
=>
$doctorId
)
{
foreach
(
$doctorIds
as
$key
=>
$doctorId
)
{
if
(
isset
(
$prescriptionCounts
[
$doctorId
]))
{
// 判断是否达到上限
if
(
intval
(
$prescriptionCounts
[
$doctorId
])
>=
intval
(
$prescription_limit
))
{
...
...
app/Console/Commands/PrescriptionCommand.php
View file @
6c44404a
...
...
@@ -33,8 +33,7 @@ public function handle()
{
$this
->
info
(
'开始自动审开方...'
);
// 如果处方单是审方状态,同时对应的药店开启自动审方
$prescriptions
=
PrescriptionModel
::
where
(
'status'
,
1
)
->
where
(
'status'
,
PrescriptionModel
::
PRESCRIPTION_STATUS_REVIEWING
)
$prescriptions
=
PrescriptionModel
::
where
(
'status'
,
PrescriptionModel
::
PRESCRIPTION_STATUS_REVIEWING
)
->
get
();
if
(
$prescriptions
->
count
()
>
0
)
{
...
...
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