Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tiantan-gate
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wangxinghua
tiantan-gate
Commits
cd7a42e7
Commit
cd7a42e7
authored
Jul 03, 2020
by
wangxinghua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
检查,手术,出院 日期调整
parent
f84bb188
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
7 deletions
+19
-7
Ewm.php
TTYYGate/application/common/model/Ewm.php
+1
-1
Oracle.php
TTYYGate/application/common/model/Oracle.php
+17
-5
.env_ttyy_gate
TTYYGateEnv/.env_ttyy_gate
+1
-1
天坛住院部闸机_探视系统_流程介绍.doc
天坛住院部闸机_探视系统_流程介绍.doc
+0
-0
No files found.
TTYYGate/application/common/model/Ewm.php
View file @
cd7a42e7
...
...
@@ -184,7 +184,7 @@ EOT;
//id为2超级权限
$authority_id
=
2
;
}
else
if
(
!
empty
(
$patientinfo
[
'OUTDATE'
])
&&
$patientinfo
[
'OUTDATE'
]
>
date
(
'Y-m-d'
,
strtotime
(
'-2 day'
)))
//出院判断2天有效
else
if
(
$patientinfo
[
'YNOUT'
]
==
1
)
//出院
{
$authority_id
=
8
;
}
...
...
TTYYGate/application/common/model/Oracle.php
View file @
cd7a42e7
...
...
@@ -49,11 +49,13 @@ class Oracle extends Model
$sqls
.=
'#'
;
$sqls
.=
$db_config_oracle_zz
->
getLastSql
();
$today
=
date
(
'Y-m-d'
);
$jcday
=
date
(
'Y-m-d'
,
strtotime
(
'-2 day'
));
$ssday
=
date
(
'Y-m-d'
,
strtotime
(
'-2 day'
));
foreach
(
$ipm_row
as
$ipk
=>
$ipv
)
{
//手术
if
(
$ipv
[
'USETIME_YMD'
]
>=
$ssday
)
$ssday
=
array
(
date
(
'Y-m-d'
,
strtotime
(
$ipv
[
'USETIME_YMD'
])
-
86400
),
$ipv
[
'USETIME_YMD'
],
);
if
(
in_array
(
$today
,
$ssday
))
{
if
(
in_array
(
$ipv
[
'ITEMCODE'
],
$items
)
||
strstr
(
$ipv
[
'ITEMNAME'
],
'造影'
)
||
strstr
(
$ipv
[
'ITEMNAME'
],
'介入治疗'
))
{
...
...
@@ -66,13 +68,23 @@ class Oracle extends Model
$row
[
'VISIT_SPECIAL'
][
'YNSTAY'
]
=
1
;
}
//出院
$cyday
=
array
(
$ipv
[
'USETIME_YMD'
],
date
(
'Y-m-d'
,
strtotime
(
$ipv
[
'USETIME_YMD'
])
+
86400
),
);
if
(
$ipv
[
'ITEMNAME'
]
==
'出院通知'
)
{
$row
[
'YNOUT'
]
=
1
;
$row
[
'OUTDATE'
]
=
$ipv
[
'USETIME_YMD'
];
if
(
in_array
(
$today
,
$cyday
))
$row
[
'YNOUT'
]
=
1
;
}
//检查
if
(
$ipv
[
'YN_JC'
]
==
1
&&
$ipv
[
'USETIME_YMD'
]
>=
$jcday
)
$jcday
=
array
(
$ipv
[
'USETIME_YMD'
],
date
(
'Y-m-d'
,
strtotime
(
$ipv
[
'USETIME_YMD'
])
+
86400
),
date
(
'Y-m-d'
,
strtotime
(
$ipv
[
'USETIME_YMD'
])
+
172800
),
);
if
(
$ipv
[
'YN_JC'
]
==
1
&&
in_array
(
$today
,
$jcday
))
{
$row
[
'YN_JC'
]
=
1
;
}
...
...
TTYYGateEnv/.env_ttyy_gate
View file @
cd7a42e7
...
...
@@ -6,7 +6,7 @@ r_inout_devids = 0001,0002,0003,0004,0005,0006
hostname = 127.0.0.1
database = gatedb
username = root
password =
168168
password =
root
hostport = 3306
[socket]
server = tcp://127.0.0.1:8000
天坛住院部闸机_探视系统_流程介绍.doc
View file @
cd7a42e7
No preview for this file type
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