You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
klhis/WEB-INF/conf/sysds_his_zysf.xml

4360 lines
179 KiB

<?xml version="1.0" encoding="UTF-8"?>
<datasource>
<!-- 1 表示 sql语句dao 2表示存储过程dao 默认为sql语句dao -->
<!-- where JGID=? and yzmx='' and EXEPKEY=' -->
<dao id="execYzmxDao" log="true" type="1">
<sql> select
PKEY,ZDZBPKEY,YZX,YZMX,YZDJ,YZSL,TFSL,YZZFY,YZZKFY,HZYBZF,HZZFZF,YZSJ,CJR,CJRQ,JGID,CFH,SQDTFJE,EXEPKEY,ISHC,HCDJPKEY,JSZT,YZSJZFY,LOCKFLAG,YZDW,HZPKEY,JZPKEY
from HIS_SFZD_YZMXB where 1=2
</sql>
<tables>
<table name="HIS_SFZD_YZMXB" insert="true" update="true"
delete="true">
<primary>EXEPKEY</primary>
<primary>PKEY</primary>
<primary>YZX</primary>
<primary>YZMX</primary>
<primary>JGID</primary>
</table>
</tables>
<fields>
<f name="PKEY" type="12" table="HIS_SFZD_YZMXB" />
<f name="ZDZBPKEY" type="12" table="HIS_SFZD_YZMXB" />
<f name="YZX" type="12" table="HIS_SFZD_YZMXB" />
<f name="YZMX" type="12" table="HIS_SFZD_YZMXB" />
<f name="YZDJ" type="12" table="HIS_SFZD_YZMXB" />
<f name="YZSL" type="12" table="HIS_SFZD_YZMXB" />
<f name="TFSL" type="12" table="HIS_SFZD_YZMXB" />
<f name="YZZFY" type="12" table="HIS_SFZD_YZMXB" />
<f name="YZZKFY" type="12" table="HIS_SFZD_YZMXB" />
<f name="HZYBZF" type="12" table="HIS_SFZD_YZMXB" />
<f name="HZZFZF" type="12" table="HIS_SFZD_YZMXB" />
<f name="YZSJ" type="93" table="HIS_SFZD_YZMXB" />
<f name="CJR" type="12" table="HIS_SFZD_YZMXB" />
<f name="CJRQ" type="93" table="HIS_SFZD_YZMXB" />
<f name="JGID" type="12" table="HIS_SFZD_YZMXB" />
<f name="CFH" type="12" table="HIS_SFZD_YZMXB" />
<f name="SQDTFJE" type="12" table="HIS_SFZD_YZMXB" />
<f name="EXEPKEY" type="12" table="HIS_SFZD_YZMXB" />
<f name="ISHC" type="12" table="HIS_SFZD_YZMXB" />
<f name="HCDJPKEY" type="12" table="HIS_SFZD_YZMXB" />
<f name="JSZT" type="12" table="HIS_SFZD_YZMXB" />
<f name="YZSJZFY" type="12" table="HIS_SFZD_YZMXB" />
<f name="LOCKFLAG" type="-5" table="HIS_SFZD_YZMXB" />
<f name="YZDW" type="12" table="HIS_SFZD_YZMXB" />
<f name="HZPKEY" type="12" table="HIS_SFZD_YZMXB" />
<f name="JZPKEY" type="12" table="HIS_SFZD_YZMXB" />
</fields>
</dao>
<!--JGID=? and yzmx='' and EXEPKEY='' -->
<dao id="execSfxmxDao" log="true" type="1">
<sql>
select
PKEY,ZDZBPKEY,YZX,YZMX,SFX,SFXDJ,SFXSL,SFXZKL,SFXZFY,SFXZKFY,HZYBZF,HZZFZF,JFRQ,CJR,CJRQ,JGID,FYDL,FYZL,EXEPKEY,ISHC,HCDJPKEY,JSZT,SFXSJZFY,LOCKFLAG,SCZT,MDTRT_ID,SETL_ID,KLJSEND,SFXDW,HZPKEY,JZPKEY
from HIS_SFZD_SFXMXB where 1=2
</sql>
<tables>
<table name="HIS_SFZD_SFXMXB" insert="true" update="true"
delete="true">
<primary>PKEY</primary>
<primary>YZX</primary>
<primary>EXEPKEY</primary>
<primary>YZMX</primary>
<primary>JGID</primary>
</table>
</tables>
<fields>
<f name="PKEY" type="12" table="HIS_SFZD_SFXMXB" />
<f name="ZDZBPKEY" type="12" table="HIS_SFZD_SFXMXB" />
<f name="YZX" type="12" table="HIS_SFZD_SFXMXB" />
<f name="YZMX" type="12" table="HIS_SFZD_SFXMXB" />
<f name="SFX" type="12" table="HIS_SFZD_SFXMXB" />
<f name="SFXDJ" type="12" table="HIS_SFZD_SFXMXB" />
<f name="SFXSL" type="12" table="HIS_SFZD_SFXMXB" />
<f name="SFXZKL" type="12" table="HIS_SFZD_SFXMXB" />
<f name="SFXZFY" type="12" table="HIS_SFZD_SFXMXB" />
<f name="SFXZKFY" type="12" table="HIS_SFZD_SFXMXB" />
<f name="HZYBZF" type="12" table="HIS_SFZD_SFXMXB" />
<f name="HZZFZF" type="12" table="HIS_SFZD_SFXMXB" />
<f name="JFRQ" type="93" table="HIS_SFZD_SFXMXB" />
<f name="CJR" type="12" table="HIS_SFZD_SFXMXB" />
<f name="CJRQ" type="93" table="HIS_SFZD_SFXMXB" />
<f name="JGID" type="12" table="HIS_SFZD_SFXMXB" />
<f name="FYDL" type="12" table="HIS_SFZD_SFXMXB" />
<f name="FYZL" type="12" table="HIS_SFZD_SFXMXB" />
<f name="EXEPKEY" type="12" table="HIS_SFZD_SFXMXB" />
<f name="ISHC" type="12" table="HIS_SFZD_SFXMXB" />
<f name="HCDJPKEY" type="12" table="HIS_SFZD_SFXMXB" />
<f name="JSZT" type="12" table="HIS_SFZD_SFXMXB" />
<f name="SFXSJZFY" type="12" table="HIS_SFZD_SFXMXB" />
<f name="LOCKFLAG" type="-5" table="HIS_SFZD_SFXMXB" />
<f name="SCZT" type="12" table="HIS_SFZD_SFXMXB" />
<f name="MDTRT_ID" type="12" table="HIS_SFZD_SFXMXB" />
<f name="SETL_ID" type="12" table="HIS_SFZD_SFXMXB" />
<f name="KLJSEND" type="12" table="HIS_SFZD_SFXMXB" />
<f name="SFXDW" type="12" table="HIS_SFZD_SFXMXB" />
<f name="HZPKEY" type="12" table="HIS_SFZD_SFXMXB" />
<f name="JZPKEY" type="12" table="HIS_SFZD_SFXMXB" />
</fields>
</dao>
<!--收费项 -->
<dao id="zyyzsfxByYzbmdao" type="1" memo="通过单个医嘱项编码获取到对应的收费项编码dao">
<sql>select
A.JGID,A.BM,A.MC,A.JBDW,A.FYDL,A.FYZL,A.HSZFL,A.KJZFL,A.MZZFL,A.ZYZFL,A.BASYFL,A.KCFL,A.RKDW,A.ZHXS,A.MZFYDW,A.ZYFYDW,A.JG,A.JBJG,A.SFYJ,A.SFXMSM,A.BZ,A.ZT,B.YZX_BM,B.SL
from HIS_SFX A left join HIS_YZX_SFX B on A.JGID=B.JGID AND
A.BM=B.SFX_BM LEFT JOIN HIS_YZX C ON B.JGID=C.JGID AND
B.YZX_BM=C.BM
where A.JGID=? and C.BM =?
</sql>
<tables>
<table name="HIS_SFX" insert="true" update="true" delete="true">
<primary>JGID</primary>
<primary>BM</primary>
</table>
</tables>
<fields>
<f name="JGID" type="12" table="HIS_SFX" />
<f name="BM" type="12" table="HIS_SFX" />
<f name="MC" type="12" table="HIS_SFX" />
<f name="JBDW" type="12" table="HIS_SFX" />
<f name="FYDL" type="12" table="HIS_SFX" />
<f name="FYZL" type="12" table="HIS_SFX" />
<f name="HSZFL" type="12" table="HIS_SFX" />
<f name="KJZFL" type="12" table="HIS_SFX" />
<f name="MZZFL" type="12" table="HIS_SFX" />
<f name="ZYZFL" type="12" table="HIS_SFX" />
<f name="BASYFL" type="12" table="HIS_SFX" />
<f name="KCFL" type="12" table="HIS_SFX" />
<f name="RKDW" type="12" table="HIS_SFX" />
<f name="ZHXS" type="8" table="HIS_SFX" />
<f name="MZFYDW" type="12" table="HIS_SFX" />
<f name="ZYFYDW" type="12" table="HIS_SFX" />
<f name="JG" type="12" table="HIS_SFX" />
<f name="JBJG" type="12" table="HIS_SFX" />
<f name="SFYJ" type="12" table="HIS_SFX" />
<f name="SFXMSM" type="12" table="HIS_SFX" />
<f name="BZ" type="12" table="HIS_SFX" />
<f name="ZT" type="12" table="HIS_SFX" />
<f name="YZX_BM" type="12" />
<f name="SL" type="12" />
</fields>
<parameter>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="yjzxToZxMxDao" log="true" type="1"
meom="医技执行dao,用于提交医嘱执行明细的状态">
<sql>
select
a.PKEY,a.JZPKEY,a.HZPKEY,a.ZYNO,a.YZMX,a.YZXPKEY,a.ZXFLAG,a.ZXR,a.ZXTIME,a.ZXRKS,a.ZXRWARD,a.PRINTFLAG,a.PRINTMAN,a.PRINTTIME,a.BBCJFLAG,a.BBCJMAN,a.BBCJTIME,a.BBTM,a.QUERYCODE,a.SFFLAG,a.ZXSL,a.ZXDW,a.ZXJE,a.YZBEGINSJ,a.YZZXBEGINSJ,a.YZTZSJ,a.YZMS,a.JZBZ,a.ZDZBPKEY,a.CXR,a.CXSJ,a.TZR,a.TZSJ,a.CJR,a.CJRQ,a.XGR,a.XGRQ,a.JGID,a.CFH,b.YZMC,a.ISACTION,d.xm,d.xb,c.JZNL,c.jzlx,c.jzzt,b.YZZT,b.YZXZYS,b.YZXZSJ,b.YZBEGINZXSJ,b.YZZXKS,c.ZYBAH,c.JZKH,b.YZJE,b.SQDTFJE,c.jjks,c.bed
from HIS_YZ_EXEC a left join HIS_YZ_MXB b on a.YZMX=b.pkey and
a.JGID=b.JGID left join HIS_JZ_BASEINFO c on
a.jzpkey=c.pkey and
a.JGID=c.JGID left join HIS_HZINFO d on
a.hzpkey=d.pkey and
a.JGID=d.JGID where a.JGID=? and
b.YZLX='5' and b.SQDTYPE !='007' and
a.ZXFLAG=1 and (c.JZZT='J' or
c.JZZT='Z') and (((c.JZLX='Z' or
(c.JZLX='J' and c.SFLG='1')) and
(b.YZZT='2' or b.YZZT='3' or
b.YZZT='4' or b.YZZT='5' or
b.YZZT='41')) or (c.JZLX !='Z' and
b.YZSFZT=1)) order by c.JZLX,c.zyno,b.YZXZSJ
</sql>
<tables>
<table name="HIS_YZ_EXEC" insert="false" update="true"
delete="false">
<primary>PKEY</primary>
<primary>JZPKEY</primary>
<primary>SFFLAG</primary>
<primary>HZPKEY</primary>
<primary>ZXFLAG</primary>
<primary>ISACTION</primary>
</table>
</tables>
<fields>
<f name="PKEY" type="12" table="HIS_YZ_EXEC" />
<f name="JZPKEY" type="12" table="HIS_YZ_EXEC" />
<f name="HZPKEY" type="12" table="HIS_YZ_EXEC" />
<f name="ZYNO" type="12" table="HIS_YZ_EXEC" />
<f name="YZMX" type="12" table="HIS_YZ_EXEC" />
<f name="YZXPKEY" type="12" table="HIS_YZ_EXEC" />
<f name="ZXFLAG" type="12" table="HIS_YZ_EXEC" />
<f name="ZXR" type="12" table="HIS_YZ_EXEC" />
<f name="ZXTIME" type="93" table="HIS_YZ_EXEC" />
<f name="ZXRKS" type="12" table="HIS_YZ_EXEC" />
<f name="ZXRWARD" type="12" table="HIS_YZ_EXEC" />
<f name="PRINTFLAG" type="12" table="HIS_YZ_EXEC" />
<f name="PRINTMAN" type="12" table="HIS_YZ_EXEC" />
<f name="PRINTTIME" type="93" table="HIS_YZ_EXEC" />
<f name="BBCJFLAG" type="12" table="HIS_YZ_EXEC" />
<f name="BBCJMAN" type="12" table="HIS_YZ_EXEC" />
<f name="BBCJTIME" type="93" table="HIS_YZ_EXEC" />
<f name="BBTM" type="12" table="HIS_YZ_EXEC" />
<f name="QUERYCODE" type="12" table="HIS_YZ_EXEC" />
<f name="SFFLAG" type="12" table="HIS_YZ_EXEC" />
<f name="ZXSL" type="8" table="HIS_YZ_EXEC" />
<f name="ZXDW" type="12" table="HIS_YZ_EXEC" />
<f name="ZXJE" type="8" table="HIS_YZ_EXEC" />
<f name="YZBEGINSJ" type="93" table="HIS_YZ_EXEC" />
<f name="YZZXBEGINSJ" type="93" table="HIS_YZ_EXEC" />
<f name="YZTZSJ" type="93" table="HIS_YZ_EXEC" />
<f name="YZMS" type="12" table="HIS_YZ_EXEC" />
<f name="JZBZ" type="12" table="HIS_YZ_EXEC" />
<f name="ZDZBPKEY" type="12" table="HIS_YZ_EXEC" />
<f name="CXR" type="12" table="HIS_YZ_EXEC" />
<f name="CXSJ" type="93" table="HIS_YZ_EXEC" />
<f name="TZR" type="12" table="HIS_YZ_EXEC" />
<f name="TZSJ" type="93" table="HIS_YZ_EXEC" />
<f name="CJR" type="12" table="HIS_YZ_EXEC" />
<f name="CJRQ" type="93" table="HIS_YZ_EXEC" />
<f name="XGR" type="12" table="HIS_YZ_EXEC" />
<f name="XGRQ" type="93" table="HIS_YZ_EXEC" />
<f name="JGID" type="12" table="HIS_YZ_EXEC" />
<f name="CFH" type="12" table="HIS_YZ_EXEC" />
<f name="YZMC" type="12" table="HIS_YZ_EXEC" />
<f name="ISACTION" type="12" table="HIS_YZ_EXEC" />
<f name="XM" type="12" />
<f name="XB" type="12" />
<f name="JZNL" type="12" />
<f name="JZLX" type="12" />
<f name="JZZT" type="12" />
<f name="YZZT" type="12" />
<f name="YZXZYS" type="12" />
<f name="YZXZSJ" type="93" />
<f name="YZBEGINZXSJ" type="93" />
<f name="YZZXKS" type="12" />
<f name="ZYBAH" type="12" />
<f name="JZKH" type="12" />
<f name="YZJE" type="12" />
<f name="SQDTFJE" type="12" />
<f name="JJKS" type="12" />
<f name="bed" type="12" />
</fields>
<parameter>
<p>12</p>
</parameter>
</dao>
<dao id="cancelexecYzmxDao" log="true" type="1" memo="取消医技执行关联账单医嘱项dao">
<sql> select
PKEY,ZDZBPKEY,YZX,YZMX,YZDJ,YZSL,TFSL,YZZFY,YZZKFY,HZYBZF,HZZFZF,YZSJ,CJR,CJRQ,JGID,CFH,SQDTFJE,EXEPKEY,ISHC,HCDJPKEY,JSZT,YZSJZFY,LOCKFLAG,YZDW,HZPKEY,JZPKEY
from HIS_SFZD_YZMXB where JGID=? and EXEPKEY=?
</sql>
<tables>
<table name="HIS_SFZD_YZMXB" insert="true" update="true"
delete="true">
<primary>EXEPKEY</primary>
<primary>PKEY</primary>
<primary>YZX</primary>
<primary>YZMX</primary>
<primary>JGID</primary>
</table>
</tables>
<fields>
<f name="PKEY" type="12" table="HIS_SFZD_YZMXB" />
<f name="ZDZBPKEY" type="12" table="HIS_SFZD_YZMXB" />
<f name="YZX" type="12" table="HIS_SFZD_YZMXB" />
<f name="YZMX" type="12" table="HIS_SFZD_YZMXB" />
<f name="YZDJ" type="12" table="HIS_SFZD_YZMXB" />
<f name="YZSL" type="12" table="HIS_SFZD_YZMXB" />
<f name="TFSL" type="12" table="HIS_SFZD_YZMXB" />
<f name="YZZFY" type="12" table="HIS_SFZD_YZMXB" />
<f name="YZZKFY" type="12" table="HIS_SFZD_YZMXB" />
<f name="HZYBZF" type="12" table="HIS_SFZD_YZMXB" />
<f name="HZZFZF" type="12" table="HIS_SFZD_YZMXB" />
<f name="YZSJ" type="93" table="HIS_SFZD_YZMXB" />
<f name="CJR" type="12" table="HIS_SFZD_YZMXB" />
<f name="CJRQ" type="93" table="HIS_SFZD_YZMXB" />
<f name="JGID" type="12" table="HIS_SFZD_YZMXB" />
<f name="CFH" type="12" table="HIS_SFZD_YZMXB" />
<f name="SQDTFJE" type="12" table="HIS_SFZD_YZMXB" />
<f name="EXEPKEY" type="12" table="HIS_SFZD_YZMXB" />
<f name="ISHC" type="12" table="HIS_SFZD_YZMXB" />
<f name="HCDJPKEY" type="12" table="HIS_SFZD_YZMXB" />
<f name="JSZT" type="12" table="HIS_SFZD_YZMXB" />
<f name="YZSJZFY" type="12" table="HIS_SFZD_YZMXB" />
<f name="LOCKFLAG" type="-5" table="HIS_SFZD_YZMXB" />
<f name="YZDW" type="12" table="HIS_SFZD_YZMXB" />
<f name="HZPKEY" type="12" table="HIS_SFZD_YZMXB" />
<f name="JZPKEY" type="12" table="HIS_SFZD_YZMXB" />
</fields>
<parameter>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="cancelexecSfxmxDao" log="true" type="1"
memo="撤销医技执行的账单收费项明细dao">
<sql>
select
PKEY,ZDZBPKEY,YZX,YZMX,SFX,SFXDJ,SFXSL,SFXZKL,SFXZFY,SFXZKFY,HZYBZF,HZZFZF,JFRQ,CJR,CJRQ,JGID,FYDL,FYZL,EXEPKEY,ISHC,HCDJPKEY,JSZT,SFXSJZFY,LOCKFLAG,SCZT,MDTRT_ID,SETL_ID,KLJSEND,SFXDW,HZPKEY,JZPKEY
from HIS_SFZD_SFXMXB where JGID=? and EXEPKEY=?
</sql>
<tables>
<table name="HIS_SFZD_SFXMXB" insert="true" update="true"
delete="true">
<primary>PKEY</primary>
<primary>YZX</primary>
<primary>EXEPKEY</primary>
<primary>YZMX</primary>
<primary>JGID</primary>
</table>
</tables>
<fields>
<f name="PKEY" type="12" table="HIS_SFZD_SFXMXB" />
<f name="ZDZBPKEY" type="12" table="HIS_SFZD_SFXMXB" />
<f name="YZX" type="12" table="HIS_SFZD_SFXMXB" />
<f name="YZMX" type="12" table="HIS_SFZD_SFXMXB" />
<f name="SFX" type="12" table="HIS_SFZD_SFXMXB" />
<f name="SFXDJ" type="12" table="HIS_SFZD_SFXMXB" />
<f name="SFXSL" type="12" table="HIS_SFZD_SFXMXB" />
<f name="SFXZKL" type="12" table="HIS_SFZD_SFXMXB" />
<f name="SFXZFY" type="12" table="HIS_SFZD_SFXMXB" />
<f name="SFXZKFY" type="12" table="HIS_SFZD_SFXMXB" />
<f name="HZYBZF" type="12" table="HIS_SFZD_SFXMXB" />
<f name="HZZFZF" type="12" table="HIS_SFZD_SFXMXB" />
<f name="JFRQ" type="93" table="HIS_SFZD_SFXMXB" />
<f name="CJR" type="12" table="HIS_SFZD_SFXMXB" />
<f name="CJRQ" type="93" table="HIS_SFZD_SFXMXB" />
<f name="JGID" type="12" table="HIS_SFZD_SFXMXB" />
<f name="FYDL" type="12" table="HIS_SFZD_SFXMXB" />
<f name="FYZL" type="12" table="HIS_SFZD_SFXMXB" />
<f name="EXEPKEY" type="12" table="HIS_SFZD_SFXMXB" />
<f name="ISHC" type="12" table="HIS_SFZD_SFXMXB" />
<f name="HCDJPKEY" type="12" table="HIS_SFZD_SFXMXB" />
<f name="JSZT" type="12" table="HIS_SFZD_SFXMXB" />
<f name="SFXSJZFY" type="12" table="HIS_SFZD_SFXMXB" />
<f name="LOCKFLAG" type="-5" table="HIS_SFZD_SFXMXB" />
<f name="SCZT" type="12" table="HIS_SFZD_SFXMXB" />
<f name="MDTRT_ID" type="12" table="HIS_SFZD_SFXMXB" />
<f name="SETL_ID" type="12" table="HIS_SFZD_SFXMXB" />
<f name="KLJSEND" type="12" table="HIS_SFZD_SFXMXB" />
<f name="SFXDW" type="12" table="HIS_SFZD_SFXMXB" />
<f name="HZPKEY" type="12" table="HIS_SFZD_SFXMXB" />
<f name="JZPKEY" type="12" table="HIS_SFZD_SFXMXB" />
</fields>
<parameter>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="getYzExeMxCountDao" log="true" type="1"
memo="用于撤销和作废时判断当前医嘱项是否有有效执行记录,停止医嘱执行项目是等同于作废了当前执行项,不会产生费用dao">
<sql>select count(*) num from HIS_YZ_EXEC where JGID=? and
jzpkey=? and
yzmx=? and (ZXFLAG=1)
</sql>
<fields>
<f name="NUM" type="4" />
</fields>
<parameter>
<p>12</p>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="zywzxjcjyCountDao" log="true" type="1"
memo="用于返回患者住院没有执行的检验或者检查数量">
<sql>select count(*) num from(select a.ISACTION from HIS_YZ_MXB b left
join HIS_YZ_EXEC a on a.YZMX=b.pkey and a.JGID=b.JGID where
b.JGID=?
and b.YZLX='5' and b.jzpkey=? and b.hzpkey=? and
b.SQDTYPE=? and
(b.YZZT='2' or b.YZZT='3' or b.YZZT='4' or
b.YZZT='41') and a.ZXFLAG=1
and a.isaction=0)
</sql>
<fields>
<f name="NUM" type="4" />
</fields>
<parameter>
<p>12</p>
<p>12</p>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="zywzxjcjyMxDao" log="true" type="1"
memo="用于返回患者住院没有执行的检验或者检查数量">
<sql>select a.yzmc,a.pkey execpkey from HIS_YZ_MXB b left join
HIS_YZ_EXEC a on a.YZMX=b.pkey and a.JGID=b.JGID where
b.JGID=? and
b.YZLX='5' and b.jzpkey=? and b.hzpkey=? and
b.SQDTYPE=? and
(b.YZZT='2' or b.YZZT='3' or b.YZZT='4' or
b.YZZT='41') and a.ZXFLAG=1
and a.isaction=0
</sql>
<fields>
<f name="YZMC" type="12" />
<f name="EXECPKEY" type="12" />
</fields>
<parameter>
<p>12</p>
<p>12</p>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="zywtzczCountDao" log="true" type="1"
memo="用于返回患者住院未停止长嘱数量">
<sql>select count(pkey) num from HIS_YZ_MXB a where JGID=? and
jzpkey=? and hzpkey=? and yzcl='1' and (YZZT='2' or YZZT='3' or
YZZT='4' or YZZT='41')
</sql>
<fields>
<f name="NUM" type="4" />
</fields>
<parameter>
<p>12</p>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="zywlyshCountDao" log="true" type="1"
memo="用于返回患者住院未领药审核数量">
<sql>select sum(a.yzsl*b.YZJZZHXS) yzsl from HIS_YFFY_PYB a left join
HIS_YZ_MXB b on a.YZMX=b.PKEY and a.JGID=b.JGID left join
HIS_YZ_EXEC
d on a.DFYPKEY=d.pkey and a.JGID=d.JGID where
a.TYPE='Z' and a.JGID=?
and a.JZPKEY =? and a.hzpkey=? and
a.SFLYSH=0 and d.ZXFLAG=1
</sql>
<fields>
<f name="YZSL" type="4" />
</fields>
<parameter>
<p>12</p>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="zyyswfyCountDao" log="true" type="1"
memo="用于返回患者住院已审未发药数量">
<sql>select sum(a.yzsl*b.YZJZZHXS) yzsl from HIS_YFFY_PYB a left join
HIS_YZ_MXB b on a.YZMX=b.PKEY and a.JGID=b.JGID left join
HIS_YZ_EXEC
d on a.DFYPKEY=d.pkey and a.JGID=d.JGID where
a.TYPE='Z' and a.JGID=?
and a.JZPKEY =? and a.hzpkey=? and
a.SFLYSH=1 and a.FYZT=0 and
d.ZXFLAG=1
</sql>
<fields>
<f name="YZSL" type="4" />
</fields>
<parameter>
<p>12</p>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="zywclyzCountDao" log="true" type="1" memo="用于返回患者住院未处理数量">
<sql>select count(pkey) num from HIS_YZ_MXB where JGID=? and
JZPKEY=?
and HZPKEY=? and (YZLX='0' or YZLX='5' or YZLX='3') and
YZSHZT=1 and
yzzt='1'
</sql>
<fields>
<f name="NUM" type="4" />
</fields>
<parameter>
<p>12</p>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="zytzhwclyzCountDao" log="true" type="1"
memo="用于返回患者住院停止后未处理数量">
<sql>select count(pkey) num from HIS_YZ_MXB where JGID=? and
JZPKEY=?
and HZPKEY=? and (YZLX='0' or YZLX='5' or YZLX='3') and
yzzt='4'
</sql>
<fields>
<f name="NUM" type="4" />
</fields>
<parameter>
<p>12</p>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="zyCyJzinfoSetupDao" log="true" type="1"
memo="用于出院以及在院病情设置患者就诊信息的dao">
<sql>select
PKEY,HZPKEY,GHPKEY,JZLX,JZZT,JZZB,HZFB,JZJS,ISYB,ISZZ,YYLX,ISLG,ISGSSJJ,HZYBLX,JJKS,JJRQ,JJYS,FBRQ,ZYNUM,WARD,ROOM,BED,KZRQ,JSRQ,THRY,HDYY,HDRQ,MZNUM,CJR,CJRQ,JGID,JZNO,MZNO,ZYNO,JZKH,CARDPKEY,JZNL,ISJZ,ZYLX,ZYHZLY,ZYYYRQ,CYRQ,CYYS,ZYNOOLD,SCZYRQ,ISGL,ISSJ,HZLX,GRLX,QTGRLX,CWFJLX,YSLX,MQJZINFO,ZKRQ,RYTJ,RYBQ,RYJZINFO,RYYS,RYQK,JZZL,JYYJ,ZYBZ,RYZD,RYZDMS,ZYBAH,RYNL,RYXSENLD,RYXSENLH,RYXSENLS,ZYZH,JZKLX,CRFS,OTHERCRFS,MAINBLYS,MAINBLXS,MOTHERJZPKEY,ZKDATE,RQDATE,CYKS,CYWARD,CYBED,HZZYZT,ISZZJS,ZZJSSJ,ZZJSR,ISYLJS,YLJSR,YLJSSJ,ISZZCWJS,CWJSR,CWJSSJ,ZDZBPKEY,CYBQ,CYQK,ISDEAD,DEADRQ,ISZK,ZYYLDYPKEY,ZYYLDYZZ,ZYYLDYZRYS,ZYBQ,RYKS,ZYTS,ZCKS,LOCKFLAG,LYFS,SYLB,YZS,SYTC,TES,WYBZ,ZCBZ,SYSSLB,BFZBZ,JHSYFWZH,RJSS,SYSSRQ
from HIS_JZ_BASEINFO where JGID=? and pkey=? and hzpkey=?
</sql>
<tables>
<table name="HIS_JZ_BASEINFO" insert="true" update="true"
delete="true">
<primary>ISYLJS</primary>
<primary>PKEY</primary>
<primary>HZPKEY</primary>
<primary>ISZZCWJS</primary>
</table>
</tables>
<fields>
<f name="PKEY" type="12" table="HIS_JZ_BASEINFO" />
<f name="HZPKEY" type="12" table="HIS_JZ_BASEINFO" />
<f name="GHPKEY" type="12" table="HIS_JZ_BASEINFO" />
<f name="JZLX" type="12" table="HIS_JZ_BASEINFO" />
<f name="JZZT" type="12" table="HIS_JZ_BASEINFO" />
<f name="JZZB" type="12" table="HIS_JZ_BASEINFO" />
<f name="HZFB" type="12" table="HIS_JZ_BASEINFO" />
<f name="JZJS" type="12" table="HIS_JZ_BASEINFO" />
<f name="ISYB" type="12" table="HIS_JZ_BASEINFO" />
<f name="ISZZ" type="12" table="HIS_JZ_BASEINFO" />
<f name="YYLX" type="12" table="HIS_JZ_BASEINFO" />
<f name="ISLG" type="12" table="HIS_JZ_BASEINFO" />
<f name="ISGSSJJ" type="12" table="HIS_JZ_BASEINFO" />
<f name="HZYBLX" type="12" table="HIS_JZ_BASEINFO" />
<f name="JJKS" type="12" table="HIS_JZ_BASEINFO" />
<f name="JJRQ" type="93" table="HIS_JZ_BASEINFO" />
<f name="JJYS" type="12" table="HIS_JZ_BASEINFO" />
<f name="FBRQ" type="93" table="HIS_JZ_BASEINFO" />
<f name="ZYNUM" type="8" table="HIS_JZ_BASEINFO" />
<f name="WARD" type="12" table="HIS_JZ_BASEINFO" />
<f name="ROOM" type="12" table="HIS_JZ_BASEINFO" />
<f name="BED" type="12" table="HIS_JZ_BASEINFO" />
<f name="KZRQ" type="93" table="HIS_JZ_BASEINFO" />
<f name="JSRQ" type="93" table="HIS_JZ_BASEINFO" />
<f name="THRY" type="12" table="HIS_JZ_BASEINFO" />
<f name="HDYY" type="12" table="HIS_JZ_BASEINFO" />
<f name="HDRQ" type="93" table="HIS_JZ_BASEINFO" />
<f name="MZNUM" type="8" table="HIS_JZ_BASEINFO" />
<f name="CJR" type="12" table="HIS_JZ_BASEINFO" />
<f name="CJRQ" type="93" table="HIS_JZ_BASEINFO" />
<f name="JGID" type="12" table="HIS_JZ_BASEINFO" />
<f name="JZNO" type="12" table="HIS_JZ_BASEINFO" />
<f name="MZNO" type="12" table="HIS_JZ_BASEINFO" />
<f name="ZYNO" type="12" table="HIS_JZ_BASEINFO" />
<f name="JZKH" type="12" table="HIS_JZ_BASEINFO" />
<f name="CARDPKEY" type="12" table="HIS_JZ_BASEINFO" />
<f name="JZNL" type="12" table="HIS_JZ_BASEINFO" />
<f name="ISJZ" type="12" table="HIS_JZ_BASEINFO" />
<f name="ZYLX" type="12" table="HIS_JZ_BASEINFO" />
<f name="ZYHZLY" type="12" table="HIS_JZ_BASEINFO" />
<f name="ZYYYRQ" type="93" table="HIS_JZ_BASEINFO" />
<f name="CYRQ" type="93" table="HIS_JZ_BASEINFO" />
<f name="CYYS" type="12" table="HIS_JZ_BASEINFO" />
<f name="ZYNOOLD" type="12" table="HIS_JZ_BASEINFO" />
<f name="SCZYRQ" type="93" table="HIS_JZ_BASEINFO" />
<f name="ISGL" type="12" table="HIS_JZ_BASEINFO" />
<f name="ISSJ" type="12" table="HIS_JZ_BASEINFO" />
<f name="HZLX" type="12" table="HIS_JZ_BASEINFO" />
<f name="GRLX" type="12" table="HIS_JZ_BASEINFO" />
<f name="QTGRLX" type="12" table="HIS_JZ_BASEINFO" />
<f name="CWFJLX" type="12" table="HIS_JZ_BASEINFO" />
<f name="YSLX" type="12" table="HIS_JZ_BASEINFO" />
<f name="MQJZINFO" type="12" table="HIS_JZ_BASEINFO" />
<f name="ZKRQ" type="93" table="HIS_JZ_BASEINFO" />
<f name="RYTJ" type="12" table="HIS_JZ_BASEINFO" />
<f name="RYBQ" type="12" table="HIS_JZ_BASEINFO" />
<f name="RYJZINFO" type="12" table="HIS_JZ_BASEINFO" />
<f name="RYYS" type="12" table="HIS_JZ_BASEINFO" />
<f name="RYQK" type="12" table="HIS_JZ_BASEINFO" />
<f name="JZZL" type="12" table="HIS_JZ_BASEINFO" />
<f name="JYYJ" type="-5" table="HIS_JZ_BASEINFO" />
<f name="ZYBZ" type="12" table="HIS_JZ_BASEINFO" />
<f name="RYZD" type="12" table="HIS_JZ_BASEINFO" />
<f name="RYZDMS" type="12" table="HIS_JZ_BASEINFO" />
<f name="ZYBAH" type="12" table="HIS_JZ_BASEINFO" />
<f name="RYNL" type="12" table="HIS_JZ_BASEINFO" />
<f name="RYXSENLD" type="-5" table="HIS_JZ_BASEINFO" />
<f name="RYXSENLH" type="-5" table="HIS_JZ_BASEINFO" />
<f name="RYXSENLS" type="-5" table="HIS_JZ_BASEINFO" />
<f name="ZYZH" type="12" table="HIS_JZ_BASEINFO" />
<f name="JZKLX" type="12" table="HIS_JZ_BASEINFO" />
<f name="CRFS" type="12" table="HIS_JZ_BASEINFO" />
<f name="OTHERCRFS" type="12" table="HIS_JZ_BASEINFO" />
<f name="MAINBLYS" type="12" table="HIS_JZ_BASEINFO" />
<f name="MAINBLXS" type="12" table="HIS_JZ_BASEINFO" />
<f name="MOTHERJZPKEY" type="12" table="HIS_JZ_BASEINFO" />
<f name="ZKDATE" type="93" table="HIS_JZ_BASEINFO" />
<f name="RQDATE" type="93" table="HIS_JZ_BASEINFO" />
<f name="CYKS" type="12" table="HIS_JZ_BASEINFO" />
<f name="CYWARD" type="12" table="HIS_JZ_BASEINFO" />
<f name="CYBED" type="12" table="HIS_JZ_BASEINFO" />
<f name="HZZYZT" type="12" table="HIS_JZ_BASEINFO" />
<f name="ISZZJS" type="12" table="HIS_JZ_BASEINFO" />
<f name="ZZJSSJ" type="93" table="HIS_JZ_BASEINFO" />
<f name="ZZJSR" type="12" table="HIS_JZ_BASEINFO" />
<f name="ISYLJS" type="12" table="HIS_JZ_BASEINFO" />
<f name="YLJSR" type="12" table="HIS_JZ_BASEINFO" />
<f name="YLJSSJ" type="93" table="HIS_JZ_BASEINFO" />
<f name="ISZZCWJS" type="12" table="HIS_JZ_BASEINFO" />
<f name="CWJSR" type="12" table="HIS_JZ_BASEINFO" />
<f name="CWJSSJ" type="93" table="HIS_JZ_BASEINFO" />
<f name="ZDZBPKEY" type="12" table="HIS_JZ_BASEINFO" />
<f name="CYBQ" type="12" table="HIS_JZ_BASEINFO" />
<f name="CYQK" type="12" table="HIS_JZ_BASEINFO" />
<f name="ISDEAD" type="12" table="HIS_JZ_BASEINFO" />
<f name="DEADRQ" type="93" table="HIS_JZ_BASEINFO" />
<f name="ISZK" type="12" table="HIS_JZ_BASEINFO" />
<f name="ZYYLDYPKEY" type="12" table="HIS_JZ_BASEINFO" />
<f name="ZYYLDYZZ" type="12" table="HIS_JZ_BASEINFO" />
<f name="ZYYLDYZRYS" type="12" table="HIS_JZ_BASEINFO" />
<f name="ZYBQ" type="12" table="HIS_JZ_BASEINFO" />
<f name="RYKS" type="12" table="HIS_JZ_BASEINFO" />
<f name="ZYTS" type="-5" table="HIS_JZ_BASEINFO" />
<f name="ZCKS" type="12" table="HIS_JZ_BASEINFO" />
<f name="LOCKFLAG" type="-5" table="HIS_JZ_BASEINFO" />
<f name="LYFS" type="12" table="HIS_JZ_BASEINFO" />
<f name="SYLB" type="12" table="HIS_JZ_BASEINFO" />
<f name="YZS" type="12" table="HIS_JZ_BASEINFO" />
<f name="SYTC" type="12" table="HIS_JZ_BASEINFO" />
<f name="TES" type="12" table="HIS_JZ_BASEINFO" />
<f name="WYBZ" type="12" table="HIS_JZ_BASEINFO" />
<f name="ZCBZ" type="12" table="HIS_JZ_BASEINFO" />
<f name="SYSSLB" type="12" table="HIS_JZ_BASEINFO" />
<f name="BFZBZ" type="12" table="HIS_JZ_BASEINFO" />
<f name="JHSYFWZH" type="12" table="HIS_JZ_BASEINFO" />
<f name="RJSS" type="12" table="HIS_JZ_BASEINFO" />
<f name="SYSSRQ" type="93" table="HIS_JZ_BASEINFO" />
</fields>
<parameter>
<p>12</p>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="patientInHosByGzyzDao" log="true" type="1"
memo="用于关注医嘱处理的在院患者dao">
<sql>
select
a.PKEY,a.HZPKEY,a.GHPKEY,a.JZLX,a.JZZT,a.JZZB,a.HZFB,a.JZJS,a.ISYB,a.ISZZ,a.YYLX,a.ISLG,a.ISGSSJJ,a.HZYBLX,a.JJKS,a.JJRQ,a.JJYS,a.FBRQ,a.ZYNUM,a.WARD,a.ROOM,a.BED,a.KZRQ,a.JSRQ,a.THRY,a.HDYY,a.HDRQ,a.MZNUM,a.CJR,a.CJRQ,a.JGID,a.JZNO,a.MZNO,a.ZYNO,a.JZKH,a.CARDPKEY,a.JZNL,a.ISJZ,a.ZYLX,a.ZYHZLY,a.ZYYYRQ,a.CYRQ,a.CYYS,a.ZYNOOLD,a.SCZYRQ,a.ISGL,a.ISSJ,a.HZLX,a.GRLX,a.QTGRLX,a.CWFJLX,a.YSLX,a.MQJZINFO,a.ZKRQ,a.RYTJ,a.RYBQ,a.RYJZINFO,a.RYYS,a.RYQK,a.JZZL,a.JYYJ,a.ZYBZ,a.RYZD,a.RYZDMS,a.ZYBAH,a.RYNL,a.RYXSENLD,a.RYXSENLH,a.RYXSENLS,a.ZYZH,a.JZKLX,a.CRFS,a.OTHERCRFS,a.MAINBLYS,a.MAINBLXS,a.MOTHERJZPKEY,a.ZKDATE,a.RQDATE,a.CYKS,a.CYWARD,a.CYBED,b.xm,b.xb,b.nl,a.HZZYZT,a.ISZZJS,a.ZZJSSJ,a.ZZJSR,a.ISYLJS,a.YLJSR,a.YLJSSJ,a.ISZZCWJS,a.CWJSR,a.CWJSSJ,a.ZDZBPKEY,a.SFLSTD
from HIS_JZ_BASEINFO a left join HIS_HZINFO b on
a.JGID=b.JGID and
a.hzpkey=b.pkey left join HIS_BQCW c on
a.bed=c.pkey and a.JGID=c.JGID
left join HIS_BQ d on
a.ward=d.pkey and a.JGID=d.JGID where a.JGID=?
and
(a.JZLX='Z' or (a.JZLX='J' and a.SFLG='1')) and a.JZZT='Z' #ward#
#yljs# order by d.xh,c.bm
</sql>
<tables>
<table name="HIS_JZ_BASEINFO" insert="true" update="true"
delete="true">
<primary>PKEY</primary>
<primary>HZPKEY</primary>
<primary>JGID</primary>
</table>
</tables>
<fields>
<f name="PKEY" type="12" table="HIS_JZ_BASEINFO" />
<f name="HZPKEY" type="12" table="HIS_JZ_BASEINFO" />
<f name="GHPKEY" type="12" table="HIS_JZ_BASEINFO" />
<f name="JZLX" type="12" table="HIS_JZ_BASEINFO" />
<f name="JZZT" type="12" table="HIS_JZ_BASEINFO" />
<f name="JZZB" type="12" table="HIS_JZ_BASEINFO" />
<f name="HZFB" type="12" table="HIS_JZ_BASEINFO" />
<f name="JZJS" type="12" table="HIS_JZ_BASEINFO" />
<f name="ISYB" type="12" table="HIS_JZ_BASEINFO" />
<f name="ISZZ" type="12" table="HIS_JZ_BASEINFO" />
<f name="YYLX" type="12" table="HIS_JZ_BASEINFO" />
<f name="ISLG" type="12" table="HIS_JZ_BASEINFO" />
<f name="ISGSSJJ" type="12" table="HIS_JZ_BASEINFO" />
<f name="HZYBLX" type="12" table="HIS_JZ_BASEINFO" />
<f name="JJKS" type="12" table="HIS_JZ_BASEINFO" />
<f name="JJRQ" type="93" table="HIS_JZ_BASEINFO" />
<f name="JJYS" type="12" table="HIS_JZ_BASEINFO" />
<f name="FBRQ" type="93" table="HIS_JZ_BASEINFO" />
<f name="ZYNUM" type="8" table="HIS_JZ_BASEINFO" />
<f name="WARD" type="12" table="HIS_JZ_BASEINFO" />
<f name="ROOM" type="12" table="HIS_JZ_BASEINFO" />
<f name="BED" type="12" table="HIS_JZ_BASEINFO" />
<f name="KZRQ" type="93" table="HIS_JZ_BASEINFO" />
<f name="JSRQ" type="93" table="HIS_JZ_BASEINFO" />
<f name="THRY" type="12" table="HIS_JZ_BASEINFO" />
<f name="HDYY" type="12" table="HIS_JZ_BASEINFO" />
<f name="HDRQ" type="93" table="HIS_JZ_BASEINFO" />
<f name="MZNUM" type="8" table="HIS_JZ_BASEINFO" />
<f name="CJR" type="12" table="HIS_JZ_BASEINFO" />
<f name="CJRQ" type="93" table="HIS_JZ_BASEINFO" />
<f name="JGID" type="12" table="HIS_JZ_BASEINFO" />
<f name="JZNO" type="12" table="HIS_JZ_BASEINFO" />
<f name="MZNO" type="12" table="HIS_JZ_BASEINFO" />
<f name="ZYNO" type="12" table="HIS_JZ_BASEINFO" />
<f name="JZKH" type="12" table="HIS_JZ_BASEINFO" />
<f name="CARDPKEY" type="12" table="HIS_JZ_BASEINFO" />
<f name="JZNL" type="12" table="HIS_JZ_BASEINFO" />
<f name="ISJZ" type="12" table="HIS_JZ_BASEINFO" />
<f name="ZYLX" type="12" table="HIS_JZ_BASEINFO" />
<f name="ZYHZLY" type="12" table="HIS_JZ_BASEINFO" />
<f name="ZYYYRQ" type="93" table="HIS_JZ_BASEINFO" />
<f name="CYRQ" type="93" table="HIS_JZ_BASEINFO" />
<f name="CYYS" type="12" table="HIS_JZ_BASEINFO" />
<f name="ZYNOOLD" type="12" table="HIS_JZ_BASEINFO" />
<f name="SCZYRQ" type="93" table="HIS_JZ_BASEINFO" />
<f name="ISGL" type="12" table="HIS_JZ_BASEINFO" />
<f name="ISSJ" type="12" table="HIS_JZ_BASEINFO" />
<f name="HZLX" type="12" table="HIS_JZ_BASEINFO" />
<f name="GRLX" type="12" table="HIS_JZ_BASEINFO" />
<f name="QTGRLX" type="12" table="HIS_JZ_BASEINFO" />
<f name="CWFJLX" type="12" table="HIS_JZ_BASEINFO" />
<f name="YSLX" type="12" table="HIS_JZ_BASEINFO" />
<f name="MQJZINFO" type="12" table="HIS_JZ_BASEINFO" />
<f name="ZKRQ" type="93" table="HIS_JZ_BASEINFO" />
<f name="RYTJ" type="12" table="HIS_JZ_BASEINFO" />
<f name="RYBQ" type="12" table="HIS_JZ_BASEINFO" />
<f name="RYJZINFO" type="12" table="HIS_JZ_BASEINFO" />
<f name="RYYS" type="12" table="HIS_JZ_BASEINFO" />
<f name="RYQK" type="12" table="HIS_JZ_BASEINFO" />
<f name="JZZL" type="12" table="HIS_JZ_BASEINFO" />
<f name="JYYJ" type="-5" table="HIS_JZ_BASEINFO" />
<f name="ZYBZ" type="12" table="HIS_JZ_BASEINFO" />
<f name="RYZD" type="12" table="HIS_JZ_BASEINFO" />
<f name="RYZDMS" type="12" table="HIS_JZ_BASEINFO" />
<f name="ZYBAH" type="12" table="HIS_JZ_BASEINFO" />
<f name="RYNL" type="12" table="HIS_JZ_BASEINFO" />
<f name="RYXSENLD" type="-5" table="HIS_JZ_BASEINFO" />
<f name="RYXSENLH" type="-5" table="HIS_JZ_BASEINFO" />
<f name="RYXSENLS" type="-5" table="HIS_JZ_BASEINFO" />
<f name="ZYZH" type="12" table="HIS_JZ_BASEINFO" />
<f name="JZKLX" type="12" table="HIS_JZ_BASEINFO" />
<f name="CRFS" type="12" table="HIS_JZ_BASEINFO" />
<f name="OTHERCRFS" type="12" table="HIS_JZ_BASEINFO" />
<f name="MAINBLYS" type="12" table="HIS_JZ_BASEINFO" />
<f name="MAINBLXS" type="12" table="HIS_JZ_BASEINFO" />
<f name="MOTHERJZPKEY" type="12" table="HIS_JZ_BASEINFO" />
<f name="ZKDATE" type="93" table="HIS_JZ_BASEINFO" />
<f name="RQDATE" type="93" table="HIS_JZ_BASEINFO" />
<f name="CYKS" type="12" table="HIS_JZ_BASEINFO" />
<f name="CYWARD" type="12" table="HIS_JZ_BASEINFO" />
<f name="CYBED" type="12" table="HIS_JZ_BASEINFO" />
<f name="xm" type="12" />
<f name="xb" type="12" />
<f name="nl" type="12" />
<f name="HZZYZT" type="12" table="HIS_JZ_BASEINFO" />
<f name="ISZZJS" type="12" table="HIS_JZ_BASEINFO" />
<f name="ZZJSSJ" type="93" table="HIS_JZ_BASEINFO" />
<f name="ZZJSR" type="12" table="HIS_JZ_BASEINFO" />
<f name="ISYLJS" type="12" table="HIS_JZ_BASEINFO" />
<f name="YLJSR" type="12" table="HIS_JZ_BASEINFO" />
<f name="YLJSSJ" type="93" table="HIS_JZ_BASEINFO" />
<f name="ISZZCWJS" type="12" table="HIS_JZ_BASEINFO" />
<f name="CWJSR" type="12" table="HIS_JZ_BASEINFO" />
<f name="CWJSSJ" type="93" table="HIS_JZ_BASEINFO" />
<f name="ZDZBPKEY" type="12" table="HIS_JZ_BASEINFO" />
<f name="SFLSTD" type="12" table="HIS_JZ_BASEINFO" />
</fields>
<parameter>
<p>12</p>
</parameter>
</dao>
<dao id="gzyzwzxjcMxDao" log="true" type="1"
memo="返回关注医嘱未检查医嘱明细dao">
<sql>select b.pkey,a.ISACTION from HIS_YZ_MXB b left join HIS_YZ_EXEC
a on a.YZMX=b.pkey and a.JGID=b.JGID where b.JGID=?
and b.YZLX='5' and
b.jzpkey=? and b.hzpkey=? and (b.YZZT='2' or
b.YZZT='3' or b.YZZT='4'
or b.YZZT='41') and nvl(a.isaction,0)=0
</sql>
<fields>
<f name="PKEY" type="12" />
<f name="ISACTION" type="12" />
</fields>
<parameter>
<p>12</p>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="zywtzczMxDao" log="true" type="1" memo="用于返回患者住院未停止长嘱数量明细">
<sql>select a.yzmc,a.pkey yzmx from HIS_YZ_MXB a where JGID=? and
jzpkey=? and hzpkey=? and yzcl='1' and (YZZT='2' or YZZT='3' or
YZZT='4' or YZZT='41')
</sql>
<fields>
<f name="YZMC" type="12" />
<f name="YZMX" type="12" />
</fields>
<parameter>
<p>12</p>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="zywlyshMxDao" log="true" type="1" memo="用于返回患者住院未领药审核数量明细">
<sql>select b.yzmc,d.pkey execpkey,b.pkey from HIS_YFFY_PYB a left
join HIS_YZ_MXB b on a.YZMX=b.PKEY and a.JGID=b.JGID left
join
HIS_YZ_EXEC d on a.DFYPKEY=d.pkey and a.JGID=d.JGID
where a.TYPE='Z'
and a.JGID=? and a.JZPKEY =? and a.hzpkey=? and
a.SFLYSH=0 and
d.ZXFLAG=1
</sql>
<fields>
<f name="yzmc" type="12" />
<f name="execpkey" type="12" />
<f name="pkey" type="12" />
</fields>
<parameter>
<p>12</p>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="zyyswfyMxDao" log="true" type="1" memo="用于返回患者住院已审未发药数量明细">
<sql>select b.yzmc,d.pkey execpkey,b.pkey from HIS_YFFY_PYB a left
join HIS_YZ_MXB b on a.YZMX=b.PKEY and a.JGID=b.JGID left
join
HIS_YZ_EXEC d on a.DFYPKEY=d.pkey and a.JGID=d.JGID
where a.TYPE='Z'
and a.JGID=? and a.JZPKEY =? and a.hzpkey=? and
a.SFLYSH=1 and
a.FYZT=0 and d.ZXFLAG=1
</sql>
<fields>
<f name="yzmc" type="12" />
<f name="execpkey" type="12" />
<f name="pkey" type="12" />
</fields>
<parameter>
<p>12</p>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="zyWtyMxDao" log="true" type="1" memo="用于返回患者住院未退药数量数量明细">
<sql>select '' SELECTFLAG,'' DTYSL,a.yzmc,a.pkey execpkey,a.yzmx
pkey,(select sum(YZSL) YZSL from HIS_YFFY_ZYFYMXB where
PYBPKEY=e.pkey and yzmx=e.yzmx and JGID=e.JGID) YZSL
,(select
sum(TYSL) TYSL from HIS_YFFY_ZYFYMXB where PYBPKEY=e.pkey
and
yzmx=e.yzmx and JGID=e.JGID) TYSL
from HIS_YZ_EXEC a left join
HIS_YFFY_PYB e on a.pkey=e.DFYPKEY and
a.JGID=e.JGID left join
HIS_YZ_MXB f on a.YZMX=f.pkey and
a.JGID=f.JGID left join
HIS_YFFY_ZYTYSQB g on
a.pkey=g.exepkey and a.JGID=g.JGID left join
HIS_JZ_BASEINFO h on a.jzpkey=h.pkey and a.JGID=h.JGID left
join
HIS_HZINFO i on a.hzpkey=i.pkey and a.JGID=i.JGID
where a.JGID=? and
a.jzpkey=? and a.hzpkey=? and (a.ZXFLAG=2 or
a.ZXFLAG=3) and e.FYZT=1
and h.JZLX='Z' and h.JZZT='Z' and h.ISZZCWJS
!= '1'
</sql>
<fields>
<f name="SELECTFLAG" type="12" />
<f name="DTYSL" type="12" />
<f name="yzmc" type="12" />
<f name="execpkey" type="12" />
<f name="pkey" type="12" />
</fields>
<parameter>
<p>12</p>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="zywclyzMxDao" log="true" type="1" memo="用于返回患者住院未处理数量明细">
<sql>select yzmc,pkey from HIS_YZ_MXB where JGID=? and JZPKEY=?
and
HZPKEY=? and (YZLX='0' or YZLX='5' or YZLX='3') and YZSHZT=1 and
yzzt='1'
</sql>
<fields>
<f name="yzmc" type="12" />
<f name="pkey" type="12" />
</fields>
<parameter>
<p>12</p>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="zytzhwclyzMxDao" log="true" type="1"
memo="用于返回患者住院停止后未处理数量明细">
<sql>select yzmc,pkey from HIS_YZ_MXB where JGID=? and JZPKEY=?
and
HZPKEY=? and (YZLX='0' or YZLX='5' or YZLX='3') and yzzt='4'
</sql>
<fields>
<f name="yzmc" type="12" />
<f name="pkey" type="12" />
</fields>
<parameter>
<p>12</p>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="zyhzCyAndZhManageDao" log="true" type="1"
memo="住院患者出院或者召回界面dao">
<sql>
select
a.PKEY,a.HZPKEY,a.GHPKEY,a.JZLX,a.JZZT,a.JZZB,a.HZFB,a.JZJS,a.ISYB,a.ISZZ,a.YYLX,a.ISLG,a.ISGSSJJ,a.HZYBLX,a.JJKS,a.JJRQ,a.JJYS,a.FBRQ,a.ZYNUM,a.WARD,a.ROOM,a.BED,a.KZRQ,a.JSRQ,a.THRY,a.HDYY,a.HDRQ,a.MZNUM,a.CJR,a.CJRQ,a.JGID,a.JZNO,a.MZNO,a.ZYNO,a.JZKH,a.CARDPKEY,a.JZNL,a.ISJZ,a.ZYLX,a.ZYHZLY,a.ZYYYRQ,a.CYRQ,a.CYYS,a.ZYNOOLD,a.SCZYRQ,a.ISGL,a.ISSJ,a.HZLX,a.GRLX,a.QTGRLX,a.CWFJLX,a.YSLX,a.MQJZINFO,a.ZKRQ,a.RYTJ,a.RYBQ,a.RYJZINFO,a.RYYS,a.RYQK,a.JZZL,a.JYYJ,a.ZYBZ,a.RYZD,a.RYZDMS,a.ZYBAH,a.RYNL,a.RYXSENLD,a.RYXSENLH,a.RYXSENLS,a.ZYZH,a.JZKLX,a.CRFS,a.OTHERCRFS,a.MAINBLYS,a.MAINBLXS,a.MOTHERJZPKEY,a.ZKDATE,a.RQDATE,b.xm,b.xb,b.GZDW,b.XZDZ,a.CYKS,a.CYWARD,a.CYBED,a.HZZYZT,a.ISZZJS,a.ZZJSSJ,a.ZZJSR,a.ISYLJS,a.YLJSR,a.YLJSSJ,a.ISZZCWJS,a.CWJSR,a.CWJSSJ,a.ZDZBPKEY,a.CYBQ,a.CYQK,a.ISDEAD,a.DEADRQ
from HIS_JZ_BASEINFO a left join HIS_HZINFO b on
a.JGID=b.JGID and
a.HZPKEY=b.pkey where a.JGID=? and
a.hzpkey=? and a.pkey=? and
(a.JZLX='Z' or (a.JZLX='J' AND
a.SFLG='1')) and a.JZZT=? order by
a.JJRQ desc
</sql>
<tables>
<table name="HIS_JZ_BASEINFO" insert="true" update="true"
delete="true">
<primary>PKEY</primary>
<primary>HZPKEY</primary>
<primary>JZZT</primary>
<primary>HZZYZT</primary>
<primary>ISZZJS</primary>
<primary>JGID</primary>
</table>
</tables>
<fields>
<f name="PKEY" type="12" table="HIS_JZ_BASEINFO" />
<f name="HZPKEY" type="12" table="HIS_JZ_BASEINFO" />
<f name="GHPKEY" type="12" table="HIS_JZ_BASEINFO" />
<f name="JZLX" type="12" table="HIS_JZ_BASEINFO" />
<f name="JZZT" type="12" table="HIS_JZ_BASEINFO" />
<f name="JZZB" type="12" table="HIS_JZ_BASEINFO" />
<f name="HZFB" type="12" table="HIS_JZ_BASEINFO" />
<f name="JZJS" type="12" table="HIS_JZ_BASEINFO" />
<f name="ISYB" type="12" table="HIS_JZ_BASEINFO" />
<f name="ISZZ" type="12" table="HIS_JZ_BASEINFO" />
<f name="YYLX" type="12" table="HIS_JZ_BASEINFO" />
<f name="ISLG" type="12" table="HIS_JZ_BASEINFO" />
<f name="ISGSSJJ" type="12" table="HIS_JZ_BASEINFO" />
<f name="HZYBLX" type="12" table="HIS_JZ_BASEINFO" />
<f name="JJKS" type="12" table="HIS_JZ_BASEINFO" />
<f name="JJRQ" type="93" table="HIS_JZ_BASEINFO" />
<f name="JJYS" type="12" table="HIS_JZ_BASEINFO" />
<f name="FBRQ" type="93" table="HIS_JZ_BASEINFO" />
<f name="ZYNUM" type="8" table="HIS_JZ_BASEINFO" />
<f name="WARD" type="12" table="HIS_JZ_BASEINFO" />
<f name="ROOM" type="12" table="HIS_JZ_BASEINFO" />
<f name="BED" type="12" table="HIS_JZ_BASEINFO" />
<f name="KZRQ" type="93" table="HIS_JZ_BASEINFO" />
<f name="JSRQ" type="93" table="HIS_JZ_BASEINFO" />
<f name="THRY" type="12" table="HIS_JZ_BASEINFO" />
<f name="HDYY" type="12" table="HIS_JZ_BASEINFO" />
<f name="HDRQ" type="93" table="HIS_JZ_BASEINFO" />
<f name="MZNUM" type="8" table="HIS_JZ_BASEINFO" />
<f name="CJR" type="12" table="HIS_JZ_BASEINFO" />
<f name="CJRQ" type="93" table="HIS_JZ_BASEINFO" />
<f name="JGID" type="12" table="HIS_JZ_BASEINFO" />
<f name="JZNO" type="12" table="HIS_JZ_BASEINFO" />
<f name="MZNO" type="12" table="HIS_JZ_BASEINFO" />
<f name="ZYNO" type="12" table="HIS_JZ_BASEINFO" />
<f name="JZKH" type="12" table="HIS_JZ_BASEINFO" />
<f name="CARDPKEY" type="12" table="HIS_JZ_BASEINFO" />
<f name="JZNL" type="12" table="HIS_JZ_BASEINFO" />
<f name="ISJZ" type="12" table="HIS_JZ_BASEINFO" />
<f name="ZYLX" type="12" table="HIS_JZ_BASEINFO" />
<f name="ZYHZLY" type="12" table="HIS_JZ_BASEINFO" />
<f name="ZYYYRQ" type="93" table="HIS_JZ_BASEINFO" />
<f name="CYRQ" type="93" table="HIS_JZ_BASEINFO" />
<f name="CYYS" type="12" table="HIS_JZ_BASEINFO" />
<f name="ZYNOOLD" type="12" table="HIS_JZ_BASEINFO" />
<f name="SCZYRQ" type="93" table="HIS_JZ_BASEINFO" />
<f name="ISGL" type="12" table="HIS_JZ_BASEINFO" />
<f name="ISSJ" type="12" table="HIS_JZ_BASEINFO" />
<f name="HZLX" type="12" table="HIS_JZ_BASEINFO" />
<f name="GRLX" type="12" table="HIS_JZ_BASEINFO" />
<f name="QTGRLX" type="12" table="HIS_JZ_BASEINFO" />
<f name="CWFJLX" type="12" table="HIS_JZ_BASEINFO" />
<f name="YSLX" type="12" table="HIS_JZ_BASEINFO" />
<f name="MQJZINFO" type="12" table="HIS_JZ_BASEINFO" />
<f name="ZKRQ" type="93" table="HIS_JZ_BASEINFO" />
<f name="RYTJ" type="12" table="HIS_JZ_BASEINFO" />
<f name="RYBQ" type="12" table="HIS_JZ_BASEINFO" />
<f name="RYJZINFO" type="12" table="HIS_JZ_BASEINFO" />
<f name="RYYS" type="12" table="HIS_JZ_BASEINFO" />
<f name="RYQK" type="12" table="HIS_JZ_BASEINFO" />
<f name="JZZL" type="12" table="HIS_JZ_BASEINFO" />
<f name="JYYJ" type="-5" table="HIS_JZ_BASEINFO" />
<f name="ZYBZ" type="12" table="HIS_JZ_BASEINFO" />
<f name="RYZD" type="12" table="HIS_JZ_BASEINFO" />
<f name="RYZDMS" type="12" table="HIS_JZ_BASEINFO" />
<f name="ZYBAH" type="12" table="HIS_JZ_BASEINFO" />
<f name="RYNL" type="12" table="HIS_JZ_BASEINFO" />
<f name="RYXSENLD" type="-5" table="HIS_JZ_BASEINFO" />
<f name="RYXSENLH" type="-5" table="HIS_JZ_BASEINFO" />
<f name="RYXSENLS" type="-5" table="HIS_JZ_BASEINFO" />
<f name="ZYZH" type="12" table="HIS_JZ_BASEINFO" />
<f name="JZKLX" type="12" table="HIS_JZ_BASEINFO" />
<f name="CRFS" type="12" table="HIS_JZ_BASEINFO" />
<f name="OTHERCRFS" type="12" table="HIS_JZ_BASEINFO" />
<f name="MAINBLYS" type="12" table="HIS_JZ_BASEINFO" />
<f name="MAINBLXS" type="12" table="HIS_JZ_BASEINFO" />
<f name="MOTHERJZPKEY" type="12" table="HIS_JZ_BASEINFO" />
<f name="ZKDATE" type="93" table="HIS_JZ_BASEINFO" />
<f name="RQDATE" type="93" table="HIS_JZ_BASEINFO" />
<f name="XM" type="12" />
<f name="xb" type="12" />
<f name="GZDW" type="12" />
<f name="XZDZ" type="12" />
<f name="CYKS" type="12" table="HIS_JZ_BASEINFO" />
<f name="CYWARD" type="12" table="HIS_JZ_BASEINFO" />
<f name="CYBED" type="12" table="HIS_JZ_BASEINFO" />
<f name="HZZYZT" type="12" table="HIS_JZ_BASEINFO" />
<f name="ISZZJS" type="12" table="HIS_JZ_BASEINFO" />
<f name="ZZJSSJ" type="93" table="HIS_JZ_BASEINFO" />
<f name="ZZJSR" type="12" table="HIS_JZ_BASEINFO" />
<f name="ISYLJS" type="12" table="HIS_JZ_BASEINFO" />
<f name="YLJSR" type="12" table="HIS_JZ_BASEINFO" />
<f name="YLJSSJ" type="93" table="HIS_JZ_BASEINFO" />
<f name="ISZZCWJS" type="12" table="HIS_JZ_BASEINFO" />
<f name="CWJSR" type="12" table="HIS_JZ_BASEINFO" />
<f name="CWJSSJ" type="93" table="HIS_JZ_BASEINFO" />
<f name="ZDZBPKEY" type="12" table="HIS_JZ_BASEINFO" />
<f name="CYBQ" type="12" table="HIS_JZ_BASEINFO" />
<f name="CYQK" type="12" table="HIS_JZ_BASEINFO" />
<f name="ISDEAD" type="12" table="HIS_JZ_BASEINFO" />
<f name="DEADRQ" type="93" table="HIS_JZ_BASEINFO" />
</fields>
<parameter>
<p>12</p>
<p>12</p>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="zyhzzdinfoDao" log="true" type="1" memo="住院患者账单信息主表dao">
<sql>
select
a.PKEY,a.HZPKEY,a.GHPKEY,a.JZLX,a.JZZT,a.JZZB,a.HZFB,a.JZJS,a.ISYB,a.ISZZ,a.YYLX,a.ISLG,a.ISGSSJJ,a.HZYBLX,a.JJKS,a.JJRQ,a.JJYS,a.FBRQ,a.ZYNUM,a.WARD,a.ROOM,a.BED,a.KZRQ,a.JSRQ,a.THRY,a.HDYY,a.HDRQ,a.MZNUM,a.CJR,a.CJRQ,a.JGID,a.JZNO,a.MZNO,a.ZYNO,a.JZKH,a.CARDPKEY,a.JZNL,a.ISJZ,a.ZYLX,a.ZYHZLY,a.ZYYYRQ,a.CYRQ,a.CYYS,a.ZYNOOLD,a.SCZYRQ,a.ISGL,a.ISSJ,a.HZLX,a.GRLX,a.QTGRLX,a.CWFJLX,a.YSLX,a.MQJZINFO,a.ZKRQ,a.RYTJ,a.RYBQ,a.RYJZINFO,a.RYYS,a.RYQK,a.JZZL,a.JYYJ,a.ZYBZ,a.RYZD,a.RYZDMS,a.ZYBAH,a.RYNL,a.RYXSENLD,a.RYXSENLH,a.RYXSENLS,a.ZYZH,a.JZKLX,a.CRFS,a.OTHERCRFS,a.MAINBLYS,a.MAINBLXS,a.MOTHERJZPKEY,a.ZKDATE,a.RQDATE,a.CYKS,a.CYWARD,a.CYBED,a.HZZYZT,a.ISZZJS,a.ZZJSSJ,a.ZZJSR,a.ISYLJS,a.YLJSR,a.YLJSSJ,a.ISZZCWJS,a.CWJSR,a.CWJSSJ,a.ZDZBPKEY,a.CYBQ,a.CYQK,a.ISDEAD,a.DEADRQ,a.ISZK
,a.LYFS,a.SYLB,a.YZS,a.SYTC,a.TES,a.WYBZ,a.ZCBZ,a.SYSSLB,a.BFZBZ,a.JHSYFWZH,a.RJSS,a.SYSSRQ,a.RYKS,a.RYBED,b.xm,b.xb,b.SFZH,b.ZJHM,b.LXR,b.LXRDH,b.CSRQ,b.MZ
,c.PKEY
zdpkey,c.jzpkey,c.ZDJFLX,c.JFYBLX,c.HZRYLX,c.HZINTIME,c.HZOUTTIME,c.KSSJ,c.JSSJ,c.JFZJE,c.JFZKE,c.JFZKLX,c.JFJZE,c.HZPAYSELF,c.HZZFE,c.HZZFEORIGN,c.JFLX,c.ISHC,c.HCDJPKEY,c.JSZT,c.SFZXTFHSF,c.TFHSFZDPKEY,c.JZZDPKEY,d.PKEY
fppkey,d.GLZDBPKEY,d.SJPKEY,d.CLOSEPKEY,d.JZRQ,d.CHFPHM,d.CHPKEY,d.FPHM,d.PJLX,d.SFRY,d.SFRQ,d.SFZT,d.FPLX,d.FPDRYY,d.YBLX,d.YBZFJE,d.SFJE,d.YBJSB,d.CHYY,d.SFDZP,d.SFDYFP,d.SFJZDY,d.PJZT,d.TFHSF,d.SFKS,d.JJZF,d.GRZH,d.YYBC,d.GRPAY,f.ZJE
yjzje,d.SYJE,d.YSSFJE,d.TCZF,d.DBBX,d.YLJZ,d.GWYBZ,d.QYBC,c.ZTJS,c.ZTJSCFZZD,
r.JJX_BQ_NAMES,
(SELECT COUNT(1) FROM HIS_SC_HIE_MED_REC z WHERE a.PKEY=z.JZPKEY AND a.JGID=z.JGID ) ZDZT ,
nvl(mr.DATA_DEFICIENT_FEE,0) DATA_DEFICIENT_FEE
from HIS_JZ_BASEINFO a
left join HIS_HZINFO b on a.hzpkey = b.pkey and a.JGID=b.JGID
left join HIS_SFZD_ZB c on a.pkey = c.jzpkey and a.JGID=c.JGID
left join HIS_MZJS_MZFPZB d on c.pkey=d.GLZDBPKEY and c.JGID=d.JGID
left join HIS_ZY_YJMANAGE f on a.pkey=f.jzpkey and f.YJTYPE='01' and a.JGID=f.JGID and f.YJTYPE='01'
left join HIS_HIE_RYBQ r on a.JGID=r.JGID and a.PKEY=r.JZPKEY and r.HJD_FLAG='1'
left join HIS_SC_HIE_MED_REC mr on a.JGID=mr.JGID and a.PKEY=mr.JZPKEY
where a.JGID=? and
a.hzpkey=? and a.pkey=? and a.JZLX='Z' and (c.isHC is null or
c.ISHC=0) order by c.CJRQ desc
</sql>
<tables>
<table name="HIS_JZ_BASEINFO" insert="false" update="true"
delete="false">
<primary>PKEY</primary>
<primary>HZPKEY</primary>
</table>
<table name="HIS_MZJS_MZFPZB" insert="false" update="true"
delete="false">
<primary>SFZT</primary>
<primary>FPPKEY</primary>
<primary>HZPKEY</primary>
<primary>JZPKEY</primary>
<primary>GLZDBPKEY</primary>
</table>
<table name="HIS_SFZD_ZB" insert="false" update="true"
delete="false">
<primary>ZDPKEY</primary>
<primary>HZPKEY</primary>
<primary>ISHC</primary>
<primary>JZPKEY</primary>
<primary>JSZT</primary>
</table>
</tables>
<fields>
<f name="PKEY" type="12" table="HIS_JZ_BASEINFO" />
<f name="HZPKEY" type="12"
table="HIS_JZ_BASEINFO,HIS_MZJS_MZFPZB,HIS_SFZD_ZB" />
<f name="GHPKEY" type="12" table="HIS_JZ_BASEINFO" />
<f name="JZLX" type="12" table="HIS_JZ_BASEINFO" />
<f name="JZZT" type="12" table="HIS_JZ_BASEINFO,HIS_MZJS_MZFPZB" />
<f name="JZZB" type="12" table="HIS_JZ_BASEINFO" />
<f name="HZFB" type="12" table="HIS_JZ_BASEINFO" />
<f name="JZJS" type="12" table="HIS_JZ_BASEINFO" />
<f name="ISYB" type="12" table="HIS_JZ_BASEINFO" />
<f name="ISZZ" type="12" table="HIS_JZ_BASEINFO" />
<f name="YYLX" type="12" table="HIS_JZ_BASEINFO" />
<f name="ISLG" type="12" table="HIS_JZ_BASEINFO" />
<f name="ISGSSJJ" type="12" table="HIS_JZ_BASEINFO" />
<f name="HZYBLX" type="12" table="HIS_JZ_BASEINFO" />
<f name="JJKS" type="12" table="HIS_JZ_BASEINFO" />
<f name="JJRQ" type="93" table="HIS_JZ_BASEINFO" />
<f name="JJYS" type="12" table="HIS_JZ_BASEINFO" />
<f name="FBRQ" type="93" table="HIS_JZ_BASEINFO" />
<f name="ZYNUM" type="8" table="HIS_JZ_BASEINFO" />
<f name="WARD" type="12" table="HIS_JZ_BASEINFO" />
<f name="ROOM" type="12" table="HIS_JZ_BASEINFO" />
<f name="BED" type="12" table="HIS_JZ_BASEINFO" />
<f name="KZRQ" type="93" table="HIS_JZ_BASEINFO" />
<f name="JSRQ" type="93" table="HIS_JZ_BASEINFO" />
<f name="THRY" type="12" table="HIS_JZ_BASEINFO" />
<f name="HDYY" type="12" table="HIS_JZ_BASEINFO" />
<f name="HDRQ" type="93" table="HIS_JZ_BASEINFO" />
<f name="MZNUM" type="8" table="HIS_JZ_BASEINFO" />
<f name="CJR" type="12"
table="HIS_JZ_BASEINFO,HIS_MZJS_MZFPZB,HIS_SFZD_ZB" />
<f name="CJRQ" type="93"
table="HIS_JZ_BASEINFO,HIS_MZJS_MZFPZB,HIS_SFZD_ZB" />
<f name="JGID" type="12"
table="HIS_JZ_BASEINFO,HIS_MZJS_MZFPZB,HIS_SFZD_ZB" />
<f name="JZNO" type="12" table="HIS_JZ_BASEINFO" />
<f name="MZNO" type="12" table="HIS_JZ_BASEINFO" />
<f name="ZYNO" type="12" table="HIS_JZ_BASEINFO" />
<f name="JZKH" type="12" table="HIS_JZ_BASEINFO" />
<f name="CARDPKEY" type="12" table="HIS_JZ_BASEINFO" />
<f name="JZNL" type="12" table="HIS_JZ_BASEINFO" />
<f name="ISJZ" type="12" table="HIS_JZ_BASEINFO" />
<f name="ZYLX" type="12" table="HIS_JZ_BASEINFO" />
<f name="ZYHZLY" type="12" table="HIS_JZ_BASEINFO" />
<f name="ZYYYRQ" type="93" table="HIS_JZ_BASEINFO" />
<f name="CYRQ" type="93" table="HIS_JZ_BASEINFO" />
<f name="CYYS" type="12" table="HIS_JZ_BASEINFO" />
<f name="ZYNOOLD" type="12" table="HIS_JZ_BASEINFO" />
<f name="SCZYRQ" type="93" table="HIS_JZ_BASEINFO" />
<f name="ISGL" type="12" table="HIS_JZ_BASEINFO" />
<f name="ISSJ" type="12" table="HIS_JZ_BASEINFO" />
<f name="HZLX" type="12" table="HIS_JZ_BASEINFO" />
<f name="GRLX" type="12" table="HIS_JZ_BASEINFO" />
<f name="QTGRLX" type="12" table="HIS_JZ_BASEINFO" />
<f name="CWFJLX" type="12" table="HIS_JZ_BASEINFO" />
<f name="YSLX" type="12" table="HIS_JZ_BASEINFO" />
<f name="MQJZINFO" type="12" table="HIS_JZ_BASEINFO" />
<f name="ZKRQ" type="93" table="HIS_JZ_BASEINFO" />
<f name="RYTJ" type="12" table="HIS_JZ_BASEINFO" />
<f name="RYBQ" type="12" table="HIS_JZ_BASEINFO" />
<f name="RYJZINFO" type="12" table="HIS_JZ_BASEINFO" />
<f name="RYYS" type="12" table="HIS_JZ_BASEINFO" />
<f name="RYQK" type="12" table="HIS_JZ_BASEINFO" />
<f name="JZZL" type="12" table="HIS_JZ_BASEINFO" />
<f name="JYYJ" type="-5" table="HIS_JZ_BASEINFO" />
<f name="ZYBZ" type="12" table="HIS_JZ_BASEINFO" />
<f name="RYZD" type="12" table="HIS_JZ_BASEINFO" />
<f name="RYZDMS" type="12" table="HIS_JZ_BASEINFO" />
<f name="ZYBAH" type="12" table="HIS_JZ_BASEINFO" />
<f name="RYNL" type="12" table="HIS_JZ_BASEINFO" />
<f name="RYXSENLD" type="-5" table="HIS_JZ_BASEINFO" />
<f name="RYXSENLH" type="-5" table="HIS_JZ_BASEINFO" />
<f name="RYXSENLS" type="-5" table="HIS_JZ_BASEINFO" />
<f name="ZYZH" type="12" table="HIS_JZ_BASEINFO" />
<f name="JZKLX" type="12" table="HIS_JZ_BASEINFO" />
<f name="CRFS" type="12" table="HIS_JZ_BASEINFO" />
<f name="OTHERCRFS" type="12" table="HIS_JZ_BASEINFO" />
<f name="MAINBLYS" type="12" table="HIS_JZ_BASEINFO" />
<f name="MAINBLXS" type="12" table="HIS_JZ_BASEINFO" />
<f name="MOTHERJZPKEY" type="12" table="HIS_JZ_BASEINFO" />
<f name="ZKDATE" type="93" table="HIS_JZ_BASEINFO" />
<f name="RQDATE" type="93" table="HIS_JZ_BASEINFO" />
<f name="CYKS" type="12" table="HIS_JZ_BASEINFO" />
<f name="CYWARD" type="12" table="HIS_JZ_BASEINFO" />
<f name="CYBED" type="12" table="HIS_JZ_BASEINFO" />
<f name="HZZYZT" type="12" table="HIS_JZ_BASEINFO" />
<f name="ISZZJS" type="12" table="HIS_JZ_BASEINFO" />
<f name="ZZJSSJ" type="93" table="HIS_JZ_BASEINFO" />
<f name="ZZJSR" type="12" table="HIS_JZ_BASEINFO" />
<f name="ISYLJS" type="12" table="HIS_JZ_BASEINFO" />
<f name="YLJSR" type="12" table="HIS_JZ_BASEINFO" />
<f name="YLJSSJ" type="93" table="HIS_JZ_BASEINFO" />
<f name="ISZZCWJS" type="12" table="HIS_JZ_BASEINFO" />
<f name="CWJSR" type="12" table="HIS_JZ_BASEINFO" />
<f name="CWJSSJ" type="93" table="HIS_JZ_BASEINFO" />
<f name="ZDZBPKEY" type="12" table="HIS_JZ_BASEINFO" />
<f name="CYBQ" type="12" table="HIS_JZ_BASEINFO" />
<f name="CYQK" type="12" table="HIS_JZ_BASEINFO" />
<f name="ISDEAD" type="12" table="HIS_JZ_BASEINFO" />
<f name="DEADRQ" type="93" table="HIS_JZ_BASEINFO" />
<f name="ISZK" type="12" table="HIS_JZ_BASEINFO" />
<f name="LYFS" type="12" table="HIS_JZ_BASEINFO" />
<f name="SYLB" type="12" table="HIS_JZ_BASEINFO" />
<f name="YZS" type="12" table="HIS_JZ_BASEINFO" />
<f name="SYTC" type="12" table="HIS_JZ_BASEINFO" />
<f name="TES" type="12" table="HIS_JZ_BASEINFO" />
<f name="WYBZ" type="12" table="HIS_JZ_BASEINFO" />
<f name="ZCBZ" type="12" table="HIS_JZ_BASEINFO" />
<f name="SYSSLB" type="12" table="HIS_JZ_BASEINFO" />
<f name="BFZBZ" type="12" table="HIS_JZ_BASEINFO" />
<f name="JHSYFWZH" type="12" table="HIS_JZ_BASEINFO" />
<f name="RJSS" type="12" table="HIS_JZ_BASEINFO" />
<f name="SYSSRQ" type="93" table="HIS_JZ_BASEINFO" />
<f name="RYKS" type="12" table="HIS_JZ_BASEINFO" />
<f name="RYBED" type="12" table="HIS_JZ_BASEINFO" />
<f name="XM" type="12" />
<f name="XB" type="12" />
<f name="SFZH" type="12" />
<f name="ZJHM" type="12" />
<f name="LXR" type="12" />
<f name="LXRDH" type="12" />
<f name="CSRQ" type="93" />
<f name="MZ" type="12" />
<f name="ZDPKEY" schemaname="PKEY" type="12" table="HIS_SFZD_ZB" />
<f name="JZPKEY" type="12" table="HIS_MZJS_MZFPZB,HIS_SFZD_ZB" />
<f name="ZDJFLX" type="12" table="HIS_SFZD_ZB" />
<f name="JFYBLX" type="12" table="HIS_SFZD_ZB" />
<f name="HZRYLX" type="12" table="HIS_SFZD_ZB" />
<f name="HZINTIME" type="93" table="HIS_SFZD_ZB" />
<f name="HZOUTTIME" type="93" table="HIS_SFZD_ZB" />
<f name="KSSJ" type="93" table="HIS_SFZD_ZB" />
<f name="JSSJ" type="93" table="HIS_SFZD_ZB" />
<f name="JFZJE" type="12" table="HIS_SFZD_ZB" />
<f name="JFZKE" type="12" table="HIS_SFZD_ZB" />
<f name="JFZKLX" type="12" table="HIS_SFZD_ZB" />
<f name="JFJZE" type="12" table="HIS_SFZD_ZB" />
<f name="HZPAYSELF" type="12" table="HIS_SFZD_ZB" />
<f name="HZZFE" type="12" table="HIS_SFZD_ZB" />
<f name="HZZFEORIGN" type="12" table="HIS_SFZD_ZB" />
<f name="JFLX" type="12" table="HIS_SFZD_ZB" />
<f name="ISHC" type="12" table="HIS_SFZD_ZB" />
<f name="HCDJPKEY" type="12" table="HIS_SFZD_ZB" />
<f name="JSZT" type="12" table="HIS_SFZD_ZB" />
<f name="SFZXTFHSF" type="12" table="HIS_SFZD_ZB" />
<f name="TFHSFZDPKEY" type="12" table="HIS_SFZD_ZB" />
<f name="JZZDPKEY" type="12" table="HIS_SFZD_ZB" />
<f name="FPPKEY" schemaname="PKEY" type="12"
table="HIS_MZJS_MZFPZB" />
<f name="GLZDBPKEY" type="12" table="HIS_MZJS_MZFPZB" />
<f name="SJPKEY" type="12" table="HIS_MZJS_MZFPZB" />
<f name="CLOSEPKEY" type="12" table="HIS_MZJS_MZFPZB" />
<f name="JZRQ" type="93" table="HIS_MZJS_MZFPZB" />
<f name="CHFPHM" type="12" table="HIS_MZJS_MZFPZB" />
<f name="CHPKEY" type="12" table="HIS_MZJS_MZFPZB" />
<f name="FPHM" type="12" table="HIS_MZJS_MZFPZB" />
<f name="PJLX" type="12" table="HIS_MZJS_MZFPZB" />
<f name="SFRY" type="12" table="HIS_MZJS_MZFPZB" />
<f name="SFRQ" type="93" table="HIS_MZJS_MZFPZB" />
<f name="SFZT" type="12" table="HIS_MZJS_MZFPZB" />
<f name="FPLX" type="12" table="HIS_MZJS_MZFPZB" />
<f name="FPDRYY" type="12" table="HIS_MZJS_MZFPZB" />
<f name="YBLX" type="12" table="HIS_MZJS_MZFPZB" />
<f name="YBZFJE" type="12" table="HIS_MZJS_MZFPZB" />
<f name="SFJE" type="12" table="HIS_MZJS_MZFPZB" />
<f name="YBJSB" type="12" table="HIS_MZJS_MZFPZB" />
<f name="CHYY" type="12" table="HIS_MZJS_MZFPZB" />
<f name="SFDZP" type="12" table="HIS_MZJS_MZFPZB" />
<f name="SFDYFP" type="12" table="HIS_MZJS_MZFPZB" />
<f name="SFJZDY" type="12" table="HIS_MZJS_MZFPZB" />
<f name="PJZT" type="12" table="HIS_MZJS_MZFPZB" />
<f name="TFHSF" type="12" table="HIS_MZJS_MZFPZB" />
<f name="SFKS" type="12" table="HIS_MZJS_MZFPZB" />
<f name="JJZF" type="12" table="HIS_MZJS_MZFPZB" />
<f name="GRZH" type="12" table="HIS_MZJS_MZFPZB" />
<f name="YYBC" type="12" table="HIS_MZJS_MZFPZB" />
<f name="GRPAY" type="12" table="HIS_MZJS_MZFPZB" />
<f name="YJZJE" type="12" />
<f name="SYJE" type="12" table="HIS_MZJS_MZFPZB" />
<f name="YSSFJE" type="12" table="HIS_MZJS_MZFPZB" />
<f name="TCZF" type="12" table="HIS_MZJS_MZFPZB" />
<f name="DBBX" type="12" table="HIS_MZJS_MZFPZB" />
<f name="YLJZ" type="12" table="HIS_MZJS_MZFPZB" />
<f name="GWYBZ" type="12" table="HIS_MZJS_MZFPZB" />
<f name="QYBC" type="12" table="HIS_MZJS_MZFPZB" />
<f name="ZTJS" type="12" table="HIS_SFZD_ZB" />
<f name="ZTJSCFZZD" type="12" table="HIS_SFZD_ZB" />
<f name="JJX_BQ_NAMES" type="12" />
<f name="ZDZT" type="12" />
<f name="DATA_DEFICIENT_FEE" type="4" />
</fields>
<parameter>
<p>12</p>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="zyhzyjjkmxDao" log="true" type="1" memo="住院患者押金交款台账dao">
<sql>select
PKEY,SJH,SJPKEY,HZPKEY,JZPKEY,ZYNO,YJJE,YJSTATE,ZFFS,YJTYPE,SKR,SKRQ,JKR,JKRQ,ISJK,JSR,JSRQ,ZJRQ,ISZJ,HXR,HXRQ,ISHX,CJRQ,XGR,XGRQ,JGID
from HIS_ZY_YJMX where JGID=? and hzpkey=? and jzpkey=? and YJTYPE=?
order by SKRQ desc</sql>
<tables>
<table name="HIS_ZY_YJMX" insert="true" update="true"
delete="true">
<primary>PKEY</primary>
<primary>ISZJ</primary>
<primary>HZPKEY</primary>
<primary>ISHX</primary>
<primary>JZPKEY</primary>
<primary>YJJE</primary>
<primary>JGID</primary>
<primary>ISJK</primary>
</table>
</tables>
<fields>
<f name="PKEY" type="12" table="HIS_ZY_YJMX" />
<f name="SJH" type="12" table="HIS_ZY_YJMX" />
<f name="SJPKEY" type="12" table="HIS_ZY_YJMX" />
<f name="HZPKEY" type="12" table="HIS_ZY_YJMX" />
<f name="JZPKEY" type="12" table="HIS_ZY_YJMX" />
<f name="ZYNO" type="12" table="HIS_ZY_YJMX" />
<f name="YJJE" type="8" table="HIS_ZY_YJMX" />
<f name="YJSTATE" type="12" table="HIS_ZY_YJMX" />
<f name="ZFFS" type="12" table="HIS_ZY_YJMX" />
<f name="YJTYPE" type="12" table="HIS_ZY_YJMX" />
<f name="SKR" type="12" table="HIS_ZY_YJMX" />
<f name="SKRQ" type="93" table="HIS_ZY_YJMX" />
<f name="JKR" type="12" table="HIS_ZY_YJMX" />
<f name="JKRQ" type="93" table="HIS_ZY_YJMX" />
<f name="ISJK" type="12" table="HIS_ZY_YJMX" />
<f name="JSR" type="12" table="HIS_ZY_YJMX" />
<f name="JSRQ" type="93" table="HIS_ZY_YJMX" />
<f name="ZJRQ" type="93" table="HIS_ZY_YJMX" />
<f name="ISZJ" type="12" table="HIS_ZY_YJMX" />
<f name="HXR" type="12" table="HIS_ZY_YJMX" />
<f name="HXRQ" type="93" table="HIS_ZY_YJMX" />
<f name="ISHX" type="12" table="HIS_ZY_YJMX" />
<f name="CJRQ" type="93" table="HIS_ZY_YJMX" />
<f name="XGR" type="12" table="HIS_ZY_YJMX" />
<f name="XGRQ" type="93" table="HIS_ZY_YJMX" />
<f name="JGID" type="12" table="HIS_ZY_YJMX" />
</fields>
<parameter>
<p>12</p>
<p>12</p>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="zyhzzdzfmxDao" log="true" type="1" memo="住院患者账单支付明细dao">
<sql>select
PKEY,MZFPPKEY,ZFXH,ZFLX,ZFZPM,ZFBANK,PJZT,JZPKEY,CJR,CJRQ,JGID,ZFJE,LOCKFLAG
from HIS_MZJS_MZFPZFFSB where JGID=? and MZFPPKEY=? order by
pkey
</sql>
<tables>
<table name="HIS_MZJS_MZFPZFFSB" insert="true" update="true"
delete="true">
<primary>PKEY</primary>
<primary>MZFPPKEY</primary>
<primary>ZFLX</primary>
<primary>JGID</primary>
</table>
</tables>
<fields>
<f name="PKEY" type="12" table="HIS_MZJS_MZFPZFFSB" />
<f name="MZFPPKEY" type="12" table="HIS_MZJS_MZFPZFFSB" />
<f name="ZFXH" type="12" table="HIS_MZJS_MZFPZFFSB" />
<f name="ZFLX" type="12" table="HIS_MZJS_MZFPZFFSB" />
<f name="ZFZPM" type="12" table="HIS_MZJS_MZFPZFFSB" />
<f name="ZFBANK" type="12" table="HIS_MZJS_MZFPZFFSB" />
<f name="PJZT" type="12" table="HIS_MZJS_MZFPZFFSB" />
<f name="JZPKEY" type="12" table="HIS_MZJS_MZFPZFFSB" />
<f name="CJR" type="12" table="HIS_MZJS_MZFPZFFSB" />
<f name="CJRQ" type="93" table="HIS_MZJS_MZFPZFFSB" />
<f name="JGID" type="12" table="HIS_MZJS_MZFPZFFSB" />
<f name="ZFJE" type="12" table="HIS_MZJS_MZFPZFFSB" />
<f name="LOCKFLAG" type="-5" table="HIS_MZJS_MZFPZFFSB" />
</fields>
<parameter>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="zyhzfyzyflDao" log="true" type="1"
memo="住院患者账单费用按住院子分类的费用分类dao">
<sql>
select b.ZYZFL,sum(a.SFXZFY) sfxzfy from HIS_SFZD_SFXMXB a left
join
HIS_SFX b on a.SFX=b.bm and a.JGID=b.JGID where
a.JGID=? and
a.ZDZBPKEY=? group by b.ZYZFL
</sql>
<fields>
<f name="ZYZFL" type="12" />
<f name="SFXZFY" type="8" />
</fields>
<parameter>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="zyhzfindforLeaveHosDao" log="true" type="1"
memo="住院结算的患者查询dao">
<sql>
select
a.PKEY,a.HZPKEY,a.GHPKEY,a.JZLX,a.JZZT,a.JZZB,a.HZFB,a.JZJS,a.ISYB,a.ISZZ,a.YYLX,a.ISLG,a.ISGSSJJ,a.HZYBLX,a.JJKS,a.JJRQ,a.JJYS,a.FBRQ,a.ZYNUM,a.WARD,a.ROOM,a.BED,a.KZRQ,a.JSRQ,a.THRY,a.HDYY,a.HDRQ,a.MZNUM,a.CJR,a.CJRQ,a.JGID,a.JZNO,a.MZNO,a.ZYNO,a.JZKH,a.CARDPKEY,a.JZNL,a.ISJZ,a.ZYLX,a.ZYHZLY,a.ZYYYRQ,a.CYRQ,a.CYYS,a.ZYNOOLD,a.SCZYRQ,a.ISGL,a.ISSJ,a.HZLX,a.GRLX,a.QTGRLX,a.CWFJLX,a.YSLX,a.MQJZINFO,a.ZKRQ,a.RYTJ,a.RYBQ,a.RYJZINFO,a.RYYS,a.RYQK,a.JZZL,a.JYYJ,a.ZYBZ,a.RYZD,a.RYZDMS,a.ZYBAH,a.RYNL,a.RYXSENLD,a.RYXSENLH,a.RYXSENLS,a.ZYZH,a.JZKLX,a.CRFS,a.OTHERCRFS,a.MAINBLYS,a.MAINBLXS,a.MOTHERJZPKEY,a.ZKDATE,a.RQDATE,a.CYKS,a.CYWARD,a.CYBED,b.xm,b.xb,b.nl,a.HZZYZT,a.ISZZJS,a.ZZJSSJ,a.ZZJSR,a.ISYLJS,a.YLJSR,a.YLJSSJ,a.ISZZCWJS,a.CWJSR,a.CWJSSJ,a.ZDZBPKEY,a.SFLSTD
from HIS_JZ_BASEINFO a left join HIS_HZINFO b on
a.JGID=b.JGID and
a.hzpkey=b.pkey left join HIS_BQCW c on
a.bed=c.pkey and a.JGID=c.JGID
left join HIS_BQ d on
a.ward=d.pkey and a.JGID=d.JGID where a.JGID=?
#tj#
order by d.xh,c.bm,b.zyno,a.zynum desc
</sql>
<tables>
<table name="HIS_JZ_BASEINFO" insert="true" update="true"
delete="true">
<primary>PKEY</primary>
<primary>HZPKEY</primary>
<primary>JGID</primary>
</table>
</tables>
<fields>
<f name="PKEY" type="12" table="HIS_JZ_BASEINFO" />
<f name="HZPKEY" type="12" table="HIS_JZ_BASEINFO" />
<f name="GHPKEY" type="12" table="HIS_JZ_BASEINFO" />
<f name="JZLX" type="12" table="HIS_JZ_BASEINFO" />
<f name="JZZT" type="12" table="HIS_JZ_BASEINFO" />
<f name="JZZB" type="12" table="HIS_JZ_BASEINFO" />
<f name="HZFB" type="12" table="HIS_JZ_BASEINFO" />
<f name="JZJS" type="12" table="HIS_JZ_BASEINFO" />
<f name="ISYB" type="12" table="HIS_JZ_BASEINFO" />
<f name="ISZZ" type="12" table="HIS_JZ_BASEINFO" />
<f name="YYLX" type="12" table="HIS_JZ_BASEINFO" />
<f name="ISLG" type="12" table="HIS_JZ_BASEINFO" />
<f name="ISGSSJJ" type="12" table="HIS_JZ_BASEINFO" />
<f name="HZYBLX" type="12" table="HIS_JZ_BASEINFO" />
<f name="JJKS" type="12" table="HIS_JZ_BASEINFO" />
<f name="JJRQ" type="93" table="HIS_JZ_BASEINFO" />
<f name="JJYS" type="12" table="HIS_JZ_BASEINFO" />
<f name="FBRQ" type="93" table="HIS_JZ_BASEINFO" />
<f name="ZYNUM" type="8" table="HIS_JZ_BASEINFO" />
<f name="WARD" type="12" table="HIS_JZ_BASEINFO" />
<f name="ROOM" type="12" table="HIS_JZ_BASEINFO" />
<f name="BED" type="12" table="HIS_JZ_BASEINFO" />
<f name="KZRQ" type="93" table="HIS_JZ_BASEINFO" />
<f name="JSRQ" type="93" table="HIS_JZ_BASEINFO" />
<f name="THRY" type="12" table="HIS_JZ_BASEINFO" />
<f name="HDYY" type="12" table="HIS_JZ_BASEINFO" />
<f name="HDRQ" type="93" table="HIS_JZ_BASEINFO" />
<f name="MZNUM" type="8" table="HIS_JZ_BASEINFO" />
<f name="CJR" type="12" table="HIS_JZ_BASEINFO" />
<f name="CJRQ" type="93" table="HIS_JZ_BASEINFO" />
<f name="JGID" type="12" table="HIS_JZ_BASEINFO" />
<f name="JZNO" type="12" table="HIS_JZ_BASEINFO" />
<f name="MZNO" type="12" table="HIS_JZ_BASEINFO" />
<f name="ZYNO" type="12" table="HIS_JZ_BASEINFO" />
<f name="JZKH" type="12" table="HIS_JZ_BASEINFO" />
<f name="CARDPKEY" type="12" table="HIS_JZ_BASEINFO" />
<f name="JZNL" type="12" table="HIS_JZ_BASEINFO" />
<f name="ISJZ" type="12" table="HIS_JZ_BASEINFO" />
<f name="ZYLX" type="12" table="HIS_JZ_BASEINFO" />
<f name="ZYHZLY" type="12" table="HIS_JZ_BASEINFO" />
<f name="ZYYYRQ" type="93" table="HIS_JZ_BASEINFO" />
<f name="CYRQ" type="93" table="HIS_JZ_BASEINFO" />
<f name="CYYS" type="12" table="HIS_JZ_BASEINFO" />
<f name="ZYNOOLD" type="12" table="HIS_JZ_BASEINFO" />
<f name="SCZYRQ" type="93" table="HIS_JZ_BASEINFO" />
<f name="ISGL" type="12" table="HIS_JZ_BASEINFO" />
<f name="ISSJ" type="12" table="HIS_JZ_BASEINFO" />
<f name="HZLX" type="12" table="HIS_JZ_BASEINFO" />
<f name="GRLX" type="12" table="HIS_JZ_BASEINFO" />
<f name="QTGRLX" type="12" table="HIS_JZ_BASEINFO" />
<f name="CWFJLX" type="12" table="HIS_JZ_BASEINFO" />
<f name="YSLX" type="12" table="HIS_JZ_BASEINFO" />
<f name="MQJZINFO" type="12" table="HIS_JZ_BASEINFO" />
<f name="ZKRQ" type="93" table="HIS_JZ_BASEINFO" />
<f name="RYTJ" type="12" table="HIS_JZ_BASEINFO" />
<f name="RYBQ" type="12" table="HIS_JZ_BASEINFO" />
<f name="RYJZINFO" type="12" table="HIS_JZ_BASEINFO" />
<f name="RYYS" type="12" table="HIS_JZ_BASEINFO" />
<f name="RYQK" type="12" table="HIS_JZ_BASEINFO" />
<f name="JZZL" type="12" table="HIS_JZ_BASEINFO" />
<f name="JYYJ" type="-5" table="HIS_JZ_BASEINFO" />
<f name="ZYBZ" type="12" table="HIS_JZ_BASEINFO" />
<f name="RYZD" type="12" table="HIS_JZ_BASEINFO" />
<f name="RYZDMS" type="12" table="HIS_JZ_BASEINFO" />
<f name="ZYBAH" type="12" table="HIS_JZ_BASEINFO" />
<f name="RYNL" type="12" table="HIS_JZ_BASEINFO" />
<f name="RYXSENLD" type="-5" table="HIS_JZ_BASEINFO" />
<f name="RYXSENLH" type="-5" table="HIS_JZ_BASEINFO" />
<f name="RYXSENLS" type="-5" table="HIS_JZ_BASEINFO" />
<f name="ZYZH" type="12" table="HIS_JZ_BASEINFO" />
<f name="JZKLX" type="12" table="HIS_JZ_BASEINFO" />
<f name="CRFS" type="12" table="HIS_JZ_BASEINFO" />
<f name="OTHERCRFS" type="12" table="HIS_JZ_BASEINFO" />
<f name="MAINBLYS" type="12" table="HIS_JZ_BASEINFO" />
<f name="MAINBLXS" type="12" table="HIS_JZ_BASEINFO" />
<f name="MOTHERJZPKEY" type="12" table="HIS_JZ_BASEINFO" />
<f name="ZKDATE" type="93" table="HIS_JZ_BASEINFO" />
<f name="RQDATE" type="93" table="HIS_JZ_BASEINFO" />
<f name="CYKS" type="12" table="HIS_JZ_BASEINFO" />
<f name="CYWARD" type="12" table="HIS_JZ_BASEINFO" />
<f name="CYBED" type="12" table="HIS_JZ_BASEINFO" />
<f name="xm" type="12" />
<f name="xb" type="12" />
<f name="nl" type="12" />
<f name="HZZYZT" type="12" table="HIS_JZ_BASEINFO" />
<f name="ISZZJS" type="12" table="HIS_JZ_BASEINFO" />
<f name="ZZJSSJ" type="93" table="HIS_JZ_BASEINFO" />
<f name="ZZJSR" type="12" table="HIS_JZ_BASEINFO" />
<f name="ISYLJS" type="12" table="HIS_JZ_BASEINFO" />
<f name="YLJSR" type="12" table="HIS_JZ_BASEINFO" />
<f name="YLJSSJ" type="93" table="HIS_JZ_BASEINFO" />
<f name="ISZZCWJS" type="12" table="HIS_JZ_BASEINFO" />
<f name="CWJSR" type="12" table="HIS_JZ_BASEINFO" />
<f name="CWJSSJ" type="93" table="HIS_JZ_BASEINFO" />
<f name="ZDZBPKEY" type="12" table="HIS_JZ_BASEINFO" />
<f name="SFLSTD" type="12" table="HIS_JZ_BASEINFO" />
</fields>
<parameter>
<p>12</p>
</parameter>
</dao>
<dao id="zyhzsfxfyhjDao" log="true" type="1" memo="住院患者收费项费用合计dao">
<sql>
select b.ZYZFL,b.BM,b.MC,a.SFXDJ,sum(a.SFXSL)
SFXSL,sum(a.SFXZFY) SFXZFY,c.ZXDW,e.gg,a.fydl,f.CHRGITM_LV,b.YBBM,b.YBMC
from HIS_SFZD_SFXMXB a left join HIS_SFX b on a.sfx=b.bm and
a.JGID=b.JGID left join HIS_YZ_EXEC c on a.EXEPKEY=c.pkey
and
a.JGID=c.JGID left join HIS_YZ_MXB d on a.yzmx=d.pkey
and
a.JGID=d.JGID left join HIS_YPXX e on d.yzxpkey=e.bm
left join
HIS_YB_ML f on b.ybpkey=f.rid where a.JGID=? and
c.hzpkey=? and
c.jzpkey=? group by
b.ZYZFL,b.BM,b.MC,a.SFXDJ,c.ZXDW,e.gg,a.fydl,f.CHRGITM_LV,b.YBBM,b.YBMC
order by b.ZYZFL,b.BM
</sql>
<fields>
<f name="ZYZFL" type="12" />
<f name="BM" type="12" />
<f name="MC" type="12" />
<f name="SFXDJ" type="12" />
<f name="SFXSL" type="4" />
<f name="SFXZFY" type="12" />
<f name="ZXDW" type="12" />
<f name="GG" type="12" />
<f name="FYDL" type="12" />
<f name="CHRGITM_LV" type="12" />
<f name="YBBM" type="12" />
<f name="YBMC" type="12" />
</fields>
<parameter>
<p>12</p>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="zyhzsfxfyhjShowDao" log="true" type="1"
memo="住院患者收费项费用合计显示用dao">
<sql>
select '' ZYZFL,'' BM,'' MC,'' SFXDJ,'' SFXSL,'' SFXZFY,''
ZXDW,'' GG,''
FYDL,'' CHRGITM_LV,'' YBBM,'' YBMC from dual where 1=2
</sql>
<fields>
<f name="ZYZFL" type="12" />
<f name="BM" type="12" />
<f name="MC" type="12" />
<f name="SFXDJ" type="12" />
<f name="SFXSL" type="12" />
<f name="SFXZFY" type="12" />
<f name="ZXDW" type="12" />
<f name="GG" type="12" />
<f name="FYDL" type="12" />
<f name="CHRGITM_LV" type="12" />
<f name="YBBM" type="12" />
<f name="YBMC" type="12" />
</fields>
</dao>
<dao id="zyhzsfxmxDao" log="true" type="1" memo="住院患者收费项明细dao">
<sql>
select ''
sel,PKEY,ZDZBPKEY,YZX,YZMX,SFX,SFXDJ,SFXSL,SFXZKL,SFXZFY,SFXZKFY,HZYBZF,HZZFZF,JFRQ,CJR,CJRQ,JGID,FYDL,FYZL,EXEPKEY,ISHC,HCDJPKEY,JSZT,ZYZFL,BM,MC,ZXFLAG,yzdw,gg,yzmc,zxdw,LOCKFLAG
from
(
select
a.PKEY,a.ZDZBPKEY,a.YZX,a.YZMX,a.SFX,a.SFXDJ,a.SFXSL,a.SFXZKL,a.SFXZFY,a.SFXZKFY,a.HZYBZF,a.HZZFZF,a.JFRQ,a.CJR,a.CJRQ,a.JGID,a.FYDL,a.FYZL,a.EXEPKEY,a.ISHC,a.HCDJPKEY,a.JSZT,b.ZYZFL,b.BM,b.MC,c.ZXFLAG,d.yzdw,e.gg,d.yzmc,c.zxdw,a.LOCKFLAG
from HIS_SFZD_SFXMXB a left join HIS_SFX b on a.sfx=b.bm and
a.JGID=b.JGID left join HIS_YZ_EXEC c on a.EXEPKEY=c.pkey
and
a.JGID=c.JGID left join HIS_YZ_MXB d on a.yzmx=d.pkey
and
a.JGID=d.JGID left join HIS_YPXX e on d.yzxpkey=e.bm
where (b.gllx is
null or b.gllx != 'W') and a.JGID=? and
c.hzpkey=? and c.jzpkey=?
union all
select
a.PKEY,a.ZDZBPKEY,a.YZX,a.YZMX,a.SFX,a.SFXDJ,a.SFXSL,a.SFXZKL,a.SFXZFY,a.SFXZKFY,a.HZYBZF,a.HZZFZF,a.JFRQ,a.CJR,a.CJRQ,a.JGID,a.FYDL,a.FYZL,a.EXEPKEY,a.ISHC,a.HCDJPKEY,a.JSZT,b.ZYZFL,b.BM,b.MC,c.ZXFLAG,d.yzdw,e.wzgg
gg,d.yzmc,c.zxdw,a.LOCKFLAG from HIS_SFZD_SFXMXB a left join HIS_SFX
b on a.sfx=b.bm and a.JGID=b.JGID left join HIS_YZ_EXEC c
on
a.EXEPKEY=c.pkey and a.JGID=c.JGID left join HIS_YZ_MXB
d on
a.yzmx=d.pkey and a.JGID=d.JGID left join HIS_MMS_WZZD
e on
b.glbm=e.wzbm and b.JGID=e.JGID where b.gllx = 'W' and
a.JGID=? and
c.hzpkey=? and c.jzpkey=?
)order by JFRQ,yzx,bm
</sql>
<tables>
<table name="HIS_SFZD_SFXMXB" insert="true" update="true"
delete="true">
<primary>PKEY</primary>
<primary>ZDZBPKEY</primary>
<primary>JGID</primary>
</table>
</tables>
<fields>
<f name="SEL" type="1" />
<f name="PKEY" type="12" table="HIS_SFZD_SFXMXB" />
<f name="ZDZBPKEY" type="12" table="HIS_SFZD_SFXMXB" />
<f name="YZX" type="12" table="HIS_SFZD_SFXMXB" />
<f name="YZMX" type="12" table="HIS_SFZD_SFXMXB" />
<f name="SFX" type="12" table="HIS_SFZD_SFXMXB" />
<f name="SFXDJ" type="12" table="HIS_SFZD_SFXMXB" />
<f name="SFXSL" type="12" table="HIS_SFZD_SFXMXB" />
<f name="SFXZKL" type="12" table="HIS_SFZD_SFXMXB" />
<f name="SFXZFY" type="12" table="HIS_SFZD_SFXMXB" />
<f name="SFXZKFY" type="12" table="HIS_SFZD_SFXMXB" />
<f name="HZYBZF" type="12" table="HIS_SFZD_SFXMXB" />
<f name="HZZFZF" type="12" table="HIS_SFZD_SFXMXB" />
<f name="JFRQ" type="93" table="HIS_SFZD_SFXMXB" />
<f name="CJR" type="12" table="HIS_SFZD_SFXMXB" />
<f name="CJRQ" type="93" table="HIS_SFZD_SFXMXB" />
<f name="JGID" type="12" table="HIS_SFZD_SFXMXB" />
<f name="FYDL" type="12" table="HIS_SFZD_SFXMXB" />
<f name="FYZL" type="12" table="HIS_SFZD_SFXMXB" />
<f name="EXEPKEY" type="12" table="HIS_SFZD_SFXMXB" />
<f name="ISHC" type="12" table="HIS_SFZD_SFXMXB" />
<f name="HCDJPKEY" type="12" table="HIS_SFZD_SFXMXB" />
<f name="JSZT" type="12" table="HIS_SFZD_SFXMXB" />
<f name="ZYZFL" type="12" />
<f name="BM" type="12" />
<f name="MC" type="12" />
<f name="ZXFLAG" type="12" />
<f name="YZDW" type="12" />
<f name="GG" type="12" />
<f name="YZMC" type="12" />
<f name="ZXDW" type="12" />
<f name="LOCKFLAG" type="-5" table="HIS_SFZD_SFXMXB" />
</fields>
<parameter>
<p>12</p>
<p>12</p>
<p>12</p>
<p>12</p>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="zyhzsfxmxByJfrqDao" log="true" type="1"
memo="住院患者收费项明细通过计费日期查询dao">
<sql><![CDATA[
select '' sel,to_char(jfrq,'YYYY-MM-DD') jfrqstr,PKEY,ZDZBPKEY,YZX,YZMX,SFX,SFXDJ,SFXSL,SFXZKL,SFXZFY,SFXZKFY,HZYBZF,HZZFZF,JFRQ,CJR,CJRQ,JGID,FYDL,FYZL,EXEPKEY,ISHC,HCDJPKEY,JSZT,ZYZFL,BM,MC,ZXFLAG,yzdw,gg,yzmc,zxdw from
(
select a.PKEY,a.ZDZBPKEY,a.YZX,a.YZMX,a.SFX,a.SFXDJ,a.SFXSL,a.SFXZKL,a.SFXZFY,a.SFXZKFY,a.HZYBZF,a.HZZFZF,a.JFRQ,a.CJR,a.CJRQ,a.JGID,a.FYDL,a.FYZL,a.EXEPKEY,a.ISHC,a.HCDJPKEY,a.JSZT,b.ZYZFL,b.BM,b.MC,c.ZXFLAG,d.yzdw,e.gg,d.yzmc,c.zxdw from HIS_SFZD_SFXMXB a left join HIS_SFX b on a.sfx=b.bm and a.JGID=b.JGID left join HIS_YZ_EXEC c on a.EXEPKEY=c.pkey and a.JGID=c.JGID left join HIS_YZ_MXB d on a.yzmx=d.pkey and a.JGID=d.JGID left join HIS_YPXX e on d.yzxpkey=e.bm where (b.gllx is null or b.gllx != 'W') and a.JGID=? and ((c.hzpkey=? and c.jzpkey=? ) or (a.hzpkey=? and a.jzpkey=?)) #select#
union all
select a.PKEY,a.ZDZBPKEY,a.YZX,a.YZMX,a.SFX,a.SFXDJ,a.SFXSL,a.SFXZKL,a.SFXZFY,a.SFXZKFY,a.HZYBZF,a.HZZFZF,a.JFRQ,a.CJR,a.CJRQ,a.JGID,a.FYDL,a.FYZL,a.EXEPKEY,a.ISHC,a.HCDJPKEY,a.JSZT,b.ZYZFL,b.BM,b.MC,c.ZXFLAG,d.yzdw,e.wzgg gg,d.yzmc,c.zxdw from HIS_SFZD_SFXMXB a left join HIS_SFX b on a.sfx=b.bm and a.JGID=b.JGID left join HIS_YZ_EXEC c on a.EXEPKEY=c.pkey and a.JGID=c.JGID left join HIS_YZ_MXB d on a.yzmx=d.pkey and a.JGID=d.JGID left join HIS_MMS_WZZD e on b.glbm=e.wzbm and b.JGID=e.JGID where b.gllx = 'W' and a.JGID=? and ((c.hzpkey=? and c.jzpkey=? ) or (a.hzpkey=? and a.jzpkey=?)) #select#
)order by JFRQ,yzx,bm
]]></sql>
<fields>
<f name="sel" type="12" />
<f name="jfrqstr" type="12" />
<f name="PKEY" type="12" />
<f name="ZDZBPKEY" type="12" />
<f name="YZX" type="12" />
<f name="YZMX" type="12" />
<f name="SFX" type="12" />
<f name="SFXDJ" type="12" />
<f name="SFXSL" type="12" />
<f name="SFXZKL" type="12" />
<f name="SFXZFY" type="12" />
<f name="SFXZKFY" type="12" />
<f name="HZYBZF" type="12" />
<f name="HZZFZF" type="12" />
<f name="JFRQ" type="93" />
<f name="CJR" type="12" />
<f name="CJRQ" type="93" />
<f name="JGID" type="12" />
<f name="FYDL" type="12" />
<f name="FYZL" type="12" />
<f name="EXEPKEY" type="12" />
<f name="ISHC" type="12" />
<f name="HCDJPKEY" type="12" />
<f name="JSZT" type="12" />
<f name="ZYZFL" type="12" />
<f name="BM" type="12" />
<f name="MC" type="12" />
<f name="ZXFLAG" type="12" />
<f name="YZDW" type="12" />
<f name="GG" type="12" />
<f name="YZMC" type="12" />
<f name="ZXDW" type="12" />
</fields>
<parameter>
<p>12</p>
<p>12</p>
<p>12</p>
<p>12</p>
<p>12</p>
<p>12</p>
<p>12</p>
<p>12</p>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="zyhzjzbaseInfoDao" log="true" type="1"
memo="住院结算患者的基础信息dao">
<sql>
select
a.PKEY,a.HZPKEY,a.GHPKEY,a.JZLX,a.JZZT,a.JZZB,a.HZFB,a.JZJS,a.ISYB,a.ISZZ,a.YYLX,a.ISLG,a.ISGSSJJ,a.HZYBLX,a.JJKS,a.JJRQ,a.JJYS,a.FBRQ,a.ZYNUM,a.WARD,a.ROOM,a.BED,a.KZRQ,a.JSRQ,a.THRY,a.HDYY,a.HDRQ,a.MZNUM,a.CJR,a.CJRQ,a.JGID,a.JZNO,a.MZNO,a.ZYNO,a.JZKH,a.CARDPKEY,a.JZNL,a.ISJZ,a.ZYLX,a.ZYHZLY,a.ZYYYRQ,a.CYRQ,a.CYYS,a.ZYNOOLD,a.SCZYRQ,a.ISGL,a.ISSJ,b.HZLX,a.GRLX,a.QTGRLX,a.CWFJLX,a.YSLX,a.MQJZINFO,a.ZKRQ,a.RYTJ,a.RYBQ,a.RYJZINFO,a.RYYS,a.RYQK,a.JZZL,a.JYYJ,a.ZYBZ,a.RYZD,a.RYZDMS,a.ZYBAH,a.RYNL,a.RYXSENLD,a.RYXSENLH,a.RYXSENLS,a.ZYZH,a.JZKLX,a.CRFS,a.OTHERCRFS,a.MAINBLYS,a.MAINBLXS,a.MOTHERJZPKEY,a.ZKDATE,a.RQDATE,a.CYKS,a.CYWARD,a.CYBED,b.xm,b.xb,b.nl,a.HZZYZT,a.ISZZJS,a.ZZJSSJ,a.ZZJSR,a.ISYLJS,a.YLJSR,a.YLJSSJ,a.ISZZCWJS,a.CWJSR,a.CWJSSJ,a.ZDZBPKEY
from HIS_JZ_BASEINFO a left join HIS_HZINFO b on
a.JGID=b.JGID and
a.hzpkey=b.pkey where a.JGID=? and
(a.JZLX='Z' or (a.JZLX='J' AND
a.SFLG='1')) and a.hzpkey=? and
a.pkey=?
</sql>
<tables>
<table name="HIS_JZ_BASEINFO" insert="true" update="true"
delete="true">
<primary>PKEY</primary>
<primary>HZPKEY</primary>
<primary>JGID</primary>
</table>
</tables>
<fields>
<f name="PKEY" type="12" table="HIS_JZ_BASEINFO" />
<f name="HZPKEY" type="12" table="HIS_JZ_BASEINFO" />
<f name="GHPKEY" type="12" table="HIS_JZ_BASEINFO" />
<f name="JZLX" type="12" table="HIS_JZ_BASEINFO" />
<f name="JZZT" type="12" table="HIS_JZ_BASEINFO" />
<f name="JZZB" type="12" table="HIS_JZ_BASEINFO" />
<f name="HZFB" type="12" table="HIS_JZ_BASEINFO" />
<f name="JZJS" type="12" table="HIS_JZ_BASEINFO" />
<f name="ISYB" type="12" table="HIS_JZ_BASEINFO" />
<f name="ISZZ" type="12" table="HIS_JZ_BASEINFO" />
<f name="YYLX" type="12" table="HIS_JZ_BASEINFO" />
<f name="ISLG" type="12" table="HIS_JZ_BASEINFO" />
<f name="ISGSSJJ" type="12" table="HIS_JZ_BASEINFO" />
<f name="HZYBLX" type="12" table="HIS_JZ_BASEINFO" />
<f name="JJKS" type="12" table="HIS_JZ_BASEINFO" />
<f name="JJRQ" type="93" table="HIS_JZ_BASEINFO" />
<f name="JJYS" type="12" table="HIS_JZ_BASEINFO" />
<f name="FBRQ" type="93" table="HIS_JZ_BASEINFO" />
<f name="ZYNUM" type="8" table="HIS_JZ_BASEINFO" />
<f name="WARD" type="12" table="HIS_JZ_BASEINFO" />
<f name="ROOM" type="12" table="HIS_JZ_BASEINFO" />
<f name="BED" type="12" table="HIS_JZ_BASEINFO" />
<f name="KZRQ" type="93" table="HIS_JZ_BASEINFO" />
<f name="JSRQ" type="93" table="HIS_JZ_BASEINFO" />
<f name="THRY" type="12" table="HIS_JZ_BASEINFO" />
<f name="HDYY" type="12" table="HIS_JZ_BASEINFO" />
<f name="HDRQ" type="93" table="HIS_JZ_BASEINFO" />
<f name="MZNUM" type="8" table="HIS_JZ_BASEINFO" />
<f name="CJR" type="12" table="HIS_JZ_BASEINFO" />
<f name="CJRQ" type="93" table="HIS_JZ_BASEINFO" />
<f name="JGID" type="12" table="HIS_JZ_BASEINFO" />
<f name="JZNO" type="12" table="HIS_JZ_BASEINFO" />
<f name="MZNO" type="12" table="HIS_JZ_BASEINFO" />
<f name="ZYNO" type="12" table="HIS_JZ_BASEINFO" />
<f name="JZKH" type="12" table="HIS_JZ_BASEINFO" />
<f name="CARDPKEY" type="12" table="HIS_JZ_BASEINFO" />
<f name="JZNL" type="12" table="HIS_JZ_BASEINFO" />
<f name="ISJZ" type="12" table="HIS_JZ_BASEINFO" />
<f name="ZYLX" type="12" table="HIS_JZ_BASEINFO" />
<f name="ZYHZLY" type="12" table="HIS_JZ_BASEINFO" />
<f name="ZYYYRQ" type="93" table="HIS_JZ_BASEINFO" />
<f name="CYRQ" type="93" table="HIS_JZ_BASEINFO" />
<f name="CYYS" type="12" table="HIS_JZ_BASEINFO" />
<f name="ZYNOOLD" type="12" table="HIS_JZ_BASEINFO" />
<f name="SCZYRQ" type="93" table="HIS_JZ_BASEINFO" />
<f name="ISGL" type="12" table="HIS_JZ_BASEINFO" />
<f name="ISSJ" type="12" table="HIS_JZ_BASEINFO" />
<f name="HZLX" type="12" />
<f name="GRLX" type="12" table="HIS_JZ_BASEINFO" />
<f name="QTGRLX" type="12" table="HIS_JZ_BASEINFO" />
<f name="CWFJLX" type="12" table="HIS_JZ_BASEINFO" />
<f name="YSLX" type="12" table="HIS_JZ_BASEINFO" />
<f name="MQJZINFO" type="12" table="HIS_JZ_BASEINFO" />
<f name="ZKRQ" type="93" table="HIS_JZ_BASEINFO" />
<f name="RYTJ" type="12" table="HIS_JZ_BASEINFO" />
<f name="RYBQ" type="12" table="HIS_JZ_BASEINFO" />
<f name="RYJZINFO" type="12" table="HIS_JZ_BASEINFO" />
<f name="RYYS" type="12" table="HIS_JZ_BASEINFO" />
<f name="RYQK" type="12" table="HIS_JZ_BASEINFO" />
<f name="JZZL" type="12" table="HIS_JZ_BASEINFO" />
<f name="JYYJ" type="-5" table="HIS_JZ_BASEINFO" />
<f name="ZYBZ" type="12" table="HIS_JZ_BASEINFO" />
<f name="RYZD" type="12" table="HIS_JZ_BASEINFO" />
<f name="RYZDMS" type="12" table="HIS_JZ_BASEINFO" />
<f name="ZYBAH" type="12" table="HIS_JZ_BASEINFO" />
<f name="RYNL" type="12" table="HIS_JZ_BASEINFO" />
<f name="RYXSENLD" type="-5" table="HIS_JZ_BASEINFO" />
<f name="RYXSENLH" type="-5" table="HIS_JZ_BASEINFO" />
<f name="RYXSENLS" type="-5" table="HIS_JZ_BASEINFO" />
<f name="ZYZH" type="12" table="HIS_JZ_BASEINFO" />
<f name="JZKLX" type="12" table="HIS_JZ_BASEINFO" />
<f name="CRFS" type="12" table="HIS_JZ_BASEINFO" />
<f name="OTHERCRFS" type="12" table="HIS_JZ_BASEINFO" />
<f name="MAINBLYS" type="12" table="HIS_JZ_BASEINFO" />
<f name="MAINBLXS" type="12" table="HIS_JZ_BASEINFO" />
<f name="MOTHERJZPKEY" type="12" table="HIS_JZ_BASEINFO" />
<f name="ZKDATE" type="93" table="HIS_JZ_BASEINFO" />
<f name="RQDATE" type="93" table="HIS_JZ_BASEINFO" />
<f name="CYKS" type="12" table="HIS_JZ_BASEINFO" />
<f name="CYWARD" type="12" table="HIS_JZ_BASEINFO" />
<f name="CYBED" type="12" table="HIS_JZ_BASEINFO" />
<f name="xm" type="12" />
<f name="xb" type="12" />
<f name="nl" type="12" />
<f name="HZZYZT" type="12" table="HIS_JZ_BASEINFO" />
<f name="ISZZJS" type="12" table="HIS_JZ_BASEINFO" />
<f name="ZZJSSJ" type="93" table="HIS_JZ_BASEINFO" />
<f name="ZZJSR" type="12" table="HIS_JZ_BASEINFO" />
<f name="ISYLJS" type="12" table="HIS_JZ_BASEINFO" />
<f name="YLJSR" type="12" table="HIS_JZ_BASEINFO" />
<f name="YLJSSJ" type="93" table="HIS_JZ_BASEINFO" />
<f name="ISZZCWJS" type="12" table="HIS_JZ_BASEINFO" />
<f name="CWJSR" type="12" table="HIS_JZ_BASEINFO" />
<f name="CWJSSJ" type="93" table="HIS_JZ_BASEINFO" />
<f name="ZDZBPKEY" type="12" table="HIS_JZ_BASEINFO" />
</fields>
<parameter>
<p>12</p>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="zyhzsfxmxbyzxjlDao" log="true" type="1" memo="住院患者医嘱费用里面根据执行记录获取收费项目的dao">
<sql>SELECT
a.PKEY,a.ZDZBPKEY,a.YZX,a.YZMX,a.SFX,a.SFXDJ,a.SFXSL,a.SFXZKL,a.SFXZFY,a.SFXZKFY,a.HZYBZF,a.HZZFZF,a.JFRQ,a.CJR,a.CJRQ,a.JGID,a.FYDL,a.FYZL,a.EXEPKEY,a.ISHC,a.HCDJPKEY,a.JSZT,b.bm,b.mc,b.JBDW,c.YZDW,a.LOCKFLAG,a.SFXSJZFY
from HIS_SFZD_SFXMXB a left join HIS_SFX b on a.SFX=b.BM and
a.JGID=b.JGID left join HIS_YZ_MXB c on a.YZMX=c.pkey and
a.JGID=c.JGID where a.JGID=? and a.EXEPKEY=? order by
a.JFRQ
</sql>
<tables>
<table name="HIS_SFZD_SFXMXB" insert="true" update="true"
delete="true">
<primary>PKEY</primary>
<primary>JGID</primary>
</table>
</tables>
<fields>
<f name="PKEY" type="12" table="HIS_SFZD_SFXMXB" />
<f name="ZDZBPKEY" type="12" table="HIS_SFZD_SFXMXB" />
<f name="YZX" type="12" table="HIS_SFZD_SFXMXB" />
<f name="YZMX" type="12" table="HIS_SFZD_SFXMXB" />
<f name="SFX" type="12" table="HIS_SFZD_SFXMXB" />
<f name="SFXDJ" type="12" table="HIS_SFZD_SFXMXB" />
<f name="SFXSL" type="12" table="HIS_SFZD_SFXMXB" />
<f name="SFXZKL" type="12" table="HIS_SFZD_SFXMXB" />
<f name="SFXZFY" type="12" table="HIS_SFZD_SFXMXB" />
<f name="SFXZKFY" type="12" table="HIS_SFZD_SFXMXB" />
<f name="HZYBZF" type="12" table="HIS_SFZD_SFXMXB" />
<f name="HZZFZF" type="12" table="HIS_SFZD_SFXMXB" />
<f name="JFRQ" type="93" table="HIS_SFZD_SFXMXB" />
<f name="CJR" type="12" table="HIS_SFZD_SFXMXB" />
<f name="CJRQ" type="93" table="HIS_SFZD_SFXMXB" />
<f name="JGID" type="12" table="HIS_SFZD_SFXMXB" />
<f name="FYDL" type="12" table="HIS_SFZD_SFXMXB" />
<f name="FYZL" type="12" table="HIS_SFZD_SFXMXB" />
<f name="EXEPKEY" type="12" table="HIS_SFZD_SFXMXB" />
<f name="ISHC" type="12" table="HIS_SFZD_SFXMXB" />
<f name="HCDJPKEY" type="12" table="HIS_SFZD_SFXMXB" />
<f name="JSZT" type="12" table="HIS_SFZD_SFXMXB" />
<f name="BM" type="12" />
<f name="MC" type="12" />
<f name="JBDW" type="12" />
<f name="YZDW" type="12" />
<f name="LOCKFLAG" type="-5" table="HIS_SFZD_SFXMXB" />
<f name="SFXSJZFY" type="12" table="HIS_SFZD_SFXMXB" />
</fields>
<parameter>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="zyhzzdzbByPkeyDao" log="true" type="1"
memo="住院患者账单生成用的账单主表">
<sql> select
PKEY,HZPKEY,JZPKEY,ZDJFLX,JFYBLX,HZRYLX,HZINTIME,HZOUTTIME,KSSJ,JSSJ,JFZJE,JFZKE,JFZKLX,JFJZE,HZPAYSELF,HZZFE,HZZFEORIGN,JFLX,ISHC,HCDJPKEY,JSZT,CJR,CJRQ,JGID,SFZXTFHSF,TFHSFZDPKEY,JZZDPKEY,LOCKFLAG,ZTJS,ZTJSCFZZD
from HIS_SFZD_ZB where JGID=? and PKEY=?
</sql>
<tables>
<table name="HIS_SFZD_ZB" insert="true" update="true"
delete="true">
<primary>PKEY</primary>
<primary>HZPKEY</primary>
<primary>JZPKEY</primary>
<primary>JSZT</primary>
<primary>JGID</primary>
<primary>JFZJE</primary>
</table>
</tables>
<fields>
<f name="PKEY" type="12" table="HIS_SFZD_ZB" />
<f name="HZPKEY" type="12" table="HIS_SFZD_ZB" />
<f name="JZPKEY" type="12" table="HIS_SFZD_ZB" />
<f name="ZDJFLX" type="12" table="HIS_SFZD_ZB" />
<f name="JFYBLX" type="12" table="HIS_SFZD_ZB" />
<f name="HZRYLX" type="12" table="HIS_SFZD_ZB" />
<f name="HZINTIME" type="93" table="HIS_SFZD_ZB" />
<f name="HZOUTTIME" type="93" table="HIS_SFZD_ZB" />
<f name="KSSJ" type="93" table="HIS_SFZD_ZB" />
<f name="JSSJ" type="93" table="HIS_SFZD_ZB" />
<f name="JFZJE" type="12" table="HIS_SFZD_ZB" />
<f name="JFZKE" type="12" table="HIS_SFZD_ZB" />
<f name="JFZKLX" type="12" table="HIS_SFZD_ZB" />
<f name="JFJZE" type="12" table="HIS_SFZD_ZB" />
<f name="HZPAYSELF" type="12" table="HIS_SFZD_ZB" />
<f name="HZZFE" type="12" table="HIS_SFZD_ZB" />
<f name="HZZFEORIGN" type="12" table="HIS_SFZD_ZB" />
<f name="JFLX" type="12" table="HIS_SFZD_ZB" />
<f name="ISHC" type="12" table="HIS_SFZD_ZB" />
<f name="HCDJPKEY" type="12" table="HIS_SFZD_ZB" />
<f name="JSZT" type="12" table="HIS_SFZD_ZB" />
<f name="CJR" type="12" table="HIS_SFZD_ZB" />
<f name="CJRQ" type="93" table="HIS_SFZD_ZB" />
<f name="JGID" type="12" table="HIS_SFZD_ZB" />
<f name="SFZXTFHSF" type="12" table="HIS_SFZD_ZB" />
<f name="TFHSFZDPKEY" type="12" table="HIS_SFZD_ZB" />
<f name="JZZDPKEY" type="12" table="HIS_SFZD_ZB" />
<f name="LOCKFLAG" type="-5" table="HIS_SFZD_ZB" />
<f name="ZTJS" type="12" table="HIS_SFZD_ZB" />
<f name="ZTJSCFZZD" type="12" table="HIS_SFZD_ZB" />
</fields>
<parameter>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="zyhzzdsfxmxbDao" log="true" type="1"
memo="住院患者账单生成用的收费项明细dao">
<sql>select
a.PKEY,a.ZDZBPKEY,a.YZX,a.YZMX,a.SFX,a.SFXDJ,a.SFXSL,a.SFXZKL,a.SFXZFY,a.SFXZKFY,a.HZYBZF,a.HZZFZF,a.JFRQ,a.CJR,a.CJRQ,a.JGID,a.FYDL,a.FYZL,a.EXEPKEY,a.ISHC,a.HCDJPKEY,a.JSZT,b.ZYZFL,b.BM,b.MC,a.LOCKFLAG,a.SFXSJZFY
from HIS_SFZD_SFXMXB a left join HIS_SFX b on a.sfx=b.bm and
a.JGID=b.JGID left join HIS_YZ_EXEC c on a.EXEPKEY=c.pkey
and
a.JGID=c.JGID where a.JGID=? and c.hzpkey=? and
c.jzpkey=? and
(a.ZDZBPKEY='空' or a.ZDZBPKEY=?) order by b.bm,a.JFRQ
</sql>
<tables>
<table name="HIS_SFZD_SFXMXB" insert="false" update="true"
delete="false">
<primary>PKEY</primary>
<primary>ZDZBPKEY</primary>
<primary>YZMX</primary>
<primary>JSZT</primary>
<primary>JGID</primary>
</table>
</tables>
<fields>
<f name="PKEY" type="12" table="HIS_SFZD_SFXMXB" />
<f name="ZDZBPKEY" type="12" table="HIS_SFZD_SFXMXB" />
<f name="YZX" type="12" table="HIS_SFZD_SFXMXB" />
<f name="YZMX" type="12" table="HIS_SFZD_SFXMXB" />
<f name="SFX" type="12" table="HIS_SFZD_SFXMXB" />
<f name="SFXDJ" type="12" table="HIS_SFZD_SFXMXB" />
<f name="SFXSL" type="12" table="HIS_SFZD_SFXMXB" />
<f name="SFXZKL" type="12" table="HIS_SFZD_SFXMXB" />
<f name="SFXZFY" type="12" table="HIS_SFZD_SFXMXB" />
<f name="SFXZKFY" type="12" table="HIS_SFZD_SFXMXB" />
<f name="HZYBZF" type="12" table="HIS_SFZD_SFXMXB" />
<f name="HZZFZF" type="12" table="HIS_SFZD_SFXMXB" />
<f name="JFRQ" type="93" table="HIS_SFZD_SFXMXB" />
<f name="CJR" type="12" table="HIS_SFZD_SFXMXB" />
<f name="CJRQ" type="93" table="HIS_SFZD_SFXMXB" />
<f name="JGID" type="12" table="HIS_SFZD_SFXMXB" />
<f name="FYDL" type="12" table="HIS_SFZD_SFXMXB" />
<f name="FYZL" type="12" table="HIS_SFZD_SFXMXB" />
<f name="EXEPKEY" type="12" table="HIS_SFZD_SFXMXB" />
<f name="ISHC" type="12" table="HIS_SFZD_SFXMXB" />
<f name="HCDJPKEY" type="12" table="HIS_SFZD_SFXMXB" />
<f name="JSZT" type="12" table="HIS_SFZD_SFXMXB" />
<f name="ZYZFL" type="12" />
<f name="BM" type="12" />
<f name="MC" type="12" />
<f name="LOCKFLAG" type="-5" table="HIS_SFZD_SFXMXB" />
<f name="SFXSJZFY" type="12" table="HIS_SFZD_SFXMXB" />
</fields>
<parameter>
<p>12</p>
<p>12</p>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="zyhzyzmxbDao" log="true" type="1"
memo="住院患者账单生成用的医嘱明细表dao">
<sql>select
a.PKEY,a.ZDZBPKEY,a.YZX,a.YZMX,a.YZDJ,a.YZSL,a.TFSL,a.YZZFY,a.YZZKFY,a.HZYBZF,a.HZZFZF,a.YZSJ,a.CJR,a.CJRQ,a.JGID,a.CFH,a.SQDTFJE,a.EXEPKEY,a.ISHC,a.HCDJPKEY,a.JSZT,a.LOCKFLAG
from HIS_SFZD_YZMXB a left join HIS_YZ_EXEC c on a.EXEPKEY=c.pkey and
a.JGID=c.JGID where a.JGID=? and c.hzpkey=? and
c.jzpkey=? and
(a.ZDZBPKEY=? or a.ZDZBPKEY='空') order by a.YZSJ
</sql>
<tables>
<table name="HIS_SFZD_YZMXB" insert="false" update="true"
delete="false">
<primary>PKEY</primary>
<primary>ZDZBPKEY</primary>
<primary>YZMX</primary>
<primary>JSZT</primary>
<primary>JGID</primary>
</table>
</tables>
//PKEY,ZDZBPKEY,YZX,YZMX,YZDJ,YZSL,TFSL,YZZFY,YZZKFY,HZYBZF,HZZFZF,YZSJ,CJR,CJRQ,JGID,CFH,SQDTFJE,EXEPKEY,ISHC,HCDJPKEY,JSZT
<fields>
<f name="PKEY" type="12" table="HIS_SFZD_YZMXB" />
<f name="ZDZBPKEY" type="12" table="HIS_SFZD_YZMXB" />
<f name="YZX" type="12" table="HIS_SFZD_YZMXB" />
<f name="YZMX" type="12" table="HIS_SFZD_YZMXB" />
<f name="YZDJ" type="12" table="HIS_SFZD_YZMXB" />
<f name="YZSL" type="12" table="HIS_SFZD_YZMXB" />
<f name="TFSL" type="12" table="HIS_SFZD_YZMXB" />
<f name="YZZFY" type="12" table="HIS_SFZD_YZMXB" />
<f name="YZZKFY" type="12" table="HIS_SFZD_YZMXB" />
<f name="HZYBZF" type="12" table="HIS_SFZD_YZMXB" />
<f name="HZZFZF" type="12" table="HIS_SFZD_YZMXB" />
<f name="YZSJ" type="93" table="HIS_SFZD_YZMXB" />
<f name="CJR" type="12" table="HIS_SFZD_YZMXB" />
<f name="CJRQ" type="93" table="HIS_SFZD_YZMXB" />
<f name="JGID" type="12" table="HIS_SFZD_YZMXB" />
<f name="CFH" type="12" table="HIS_SFZD_YZMXB" />
<f name="SQDTFJE" type="12" table="HIS_SFZD_YZMXB" />
<f name="EXEPKEY" type="12" table="HIS_SFZD_YZMXB" />
<f name="ISHC" type="12" table="HIS_SFZD_YZMXB" />
<f name="HCDJPKEY" type="12" table="HIS_SFZD_YZMXB" />
<f name="JSZT" type="12" table="HIS_SFZD_YZMXB" />
<f name="LOCKFLAG" type="-5" table="HIS_SFZD_YZMXB" />
</fields>
<parameter>
<p>12</p>
<p>12</p>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="zyhzfpzbDao" log="true" type="1" memo="住院患者账单的发票主表">
<sql>select
PKEY,GLZDBPKEY,SJPKEY,CLOSEPKEY,JZZT,JZRQ,CHFPHM,CHPKEY,FPHM,HZPKEY,PJLX,SFRY,SFRQ,SFZT,FPLX,FPDRYY,YBLX,YBZFJE,SFJE,YBJSB,CHYY,JZPKEY,SFDZP,CJR,CJRQ,JGID,SFDYFP,SFJZDY,PJZT,TFHSF,SFKS,LOCKFLAG
from HIS_MZJS_MZFPZB where JGID=? and GLZDBPKEY=?
</sql>
<tables>
<table name="HIS_MZJS_MZFPZB" insert="true" update="true"
delete="true">
<primary>PKEY</primary>
<primary>GLZDBPKEY</primary>
<primary>JGID</primary>
</table>
</tables>
<fields>
<f name="PKEY" type="12" table="HIS_MZJS_MZFPZB" />
<f name="GLZDBPKEY" type="12" table="HIS_MZJS_MZFPZB" />
<f name="SJPKEY" type="12" table="HIS_MZJS_MZFPZB" />
<f name="CLOSEPKEY" type="12" table="HIS_MZJS_MZFPZB" />
<f name="JZZT" type="12" table="HIS_MZJS_MZFPZB" />
<f name="JZRQ" type="93" table="HIS_MZJS_MZFPZB" />
<f name="CHFPHM" type="12" table="HIS_MZJS_MZFPZB" />
<f name="CHPKEY" type="12" table="HIS_MZJS_MZFPZB" />
<f name="FPHM" type="12" table="HIS_MZJS_MZFPZB" />
<f name="HZPKEY" type="12" table="HIS_MZJS_MZFPZB" />
<f name="PJLX" type="12" table="HIS_MZJS_MZFPZB" />
<f name="SFRY" type="12" table="HIS_MZJS_MZFPZB" />
<f name="SFRQ" type="93" table="HIS_MZJS_MZFPZB" />
<f name="SFZT" type="12" table="HIS_MZJS_MZFPZB" />
<f name="FPLX" type="12" table="HIS_MZJS_MZFPZB" />
<f name="FPDRYY" type="12" table="HIS_MZJS_MZFPZB" />
<f name="YBLX" type="12" table="HIS_MZJS_MZFPZB" />
<f name="YBZFJE" type="12" table="HIS_MZJS_MZFPZB" />
<f name="SFJE" type="12" table="HIS_MZJS_MZFPZB" />
<f name="YBJSB" type="12" table="HIS_MZJS_MZFPZB" />
<f name="CHYY" type="12" table="HIS_MZJS_MZFPZB" />
<f name="JZPKEY" type="12" table="HIS_MZJS_MZFPZB" />
<f name="SFDZP" type="12" table="HIS_MZJS_MZFPZB" />
<f name="CJR" type="12" table="HIS_MZJS_MZFPZB" />
<f name="CJRQ" type="93" table="HIS_MZJS_MZFPZB" />
<f name="JGID" type="12" table="HIS_MZJS_MZFPZB" />
<f name="SFDYFP" type="12" table="HIS_MZJS_MZFPZB" />
<f name="SFJZDY" type="12" table="HIS_MZJS_MZFPZB" />
<f name="PJZT" type="12" table="HIS_MZJS_MZFPZB" />
<f name="TFHSF" type="12" table="HIS_MZJS_MZFPZB" />
<f name="SFKS" type="12" table="HIS_MZJS_MZFPZB" />
<f name="LOCKFLAG" type="-5" table="HIS_MZJS_MZFPZB" />
</fields>
<parameter>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="zySfDayReportSumDao" log="true" type="1"
memo="获取住院收费的日报表汇总信息">
<sql><![CDATA[select SFRY,SUM(YBZFJE) YBZFJE,SUM(ZFJE) ZFJE,PJZT,count(*) rc from (select a.SFRY,a.YBZFJE,a.PJZT,(select sum(ZFJE) ZFJE from HIS_MZJS_MZFPZFFSB where MZFPPKEY=a.pkey and JGID=a.JGID) ZFJE from HIS_MZJS_MZFPZB a left join HIS_SFZD_ZB b on a.GLZDBPKEY=b.pkey and a.JGID=b.JGID left join HIS_JZ_BASEINFO c on b.jzpkey=c.pkey and b.JGID=c.JGID where a.JGID=? and a.SFZT != '0' and a.SFRY like ? and a.PJLX='ZS' and a.PJZT=? and a.SFRQ > ? and a.SFRQ <=? order by a.SFRY) group by SFRY,PJZT ]]></sql>
<fields>
<f name="SFRY" type="12" />
<f name="YBZFJE" type="4" />
<f name="ZFJE" type="4" />
<f name="PJZT" type="12" />
<f name="RC" type="4" />
</fields>
<parameter>
<p>12</p>
<p>12</p>
<p>12</p>
<p>93</p>
<p>93</p>
</parameter>
</dao>
<dao id="zyyjJzZbDao" log="true" type="1" memo="住院押金结账主表dao">
<sql>select
PKEY,JZTIME,JZKSSJ,JZJSSJ,JZRY,JZBM,QCYE,JKJE,TKJE,HFJE,QMYE,FLAG,CJR,CJRQ,XGR,XGRQ,JGID
from HIS_ZY_YJ_JZZB where JGID=? order by JZJSSJ desc
</sql>
<tables>
<table name="HIS_ZY_YJ_JZZB" insert="true" update="true"
delete="true">
<primary>PKEY</primary>
<primary>JGID</primary>
<primary>FLAG</primary>
</table>
</tables>
<fields>
<f name="PKEY" type="12" table="HIS_ZY_YJ_JZZB" />
<f name="JZTIME" type="93" table="HIS_ZY_YJ_JZZB" />
<f name="JZKSSJ" type="93" table="HIS_ZY_YJ_JZZB" />
<f name="JZJSSJ" type="93" table="HIS_ZY_YJ_JZZB" />
<f name="JZRY" type="12" table="HIS_ZY_YJ_JZZB" />
<f name="JZBM" type="12" table="HIS_ZY_YJ_JZZB" />
<f name="QCYE" type="12" table="HIS_ZY_YJ_JZZB" />
<f name="JKJE" type="12" table="HIS_ZY_YJ_JZZB" />
<f name="TKJE" type="12" table="HIS_ZY_YJ_JZZB" />
<f name="HFJE" type="12" table="HIS_ZY_YJ_JZZB" />
<f name="QMYE" type="12" table="HIS_ZY_YJ_JZZB" />
<f name="FLAG" type="12" table="HIS_ZY_YJ_JZZB" />
<f name="CJR" type="12" table="HIS_ZY_YJ_JZZB" />
<f name="CJRQ" type="93" table="HIS_ZY_YJ_JZZB" />
<f name="XGR" type="12" table="HIS_ZY_YJ_JZZB" />
<f name="XGRQ" type="93" table="HIS_ZY_YJ_JZZB" />
<f name="JGID" type="12" table="HIS_ZY_YJ_JZZB" />
</fields>
<parameter>
<p>12</p>
</parameter>
</dao>
<dao id="zyyjJzZHBDao" log="true" type="1" memo="住院押金结账患者账户变动表dao">
<sql>
select
a.PKEY,a.YJJZPKEY,a.YJZHPKEY,a.HZPKEY,a.JZPKEY,a.QCYE,a.QMYE,a.JKJE,a.TKJE,a.HFJE,a.CJR,a.CJRQ,a.XGR,a.XGRQ,a.JGID,b.xm,c.ZYNO
from HIS_ZY_YJ_JZZHB a left join HIS_HZINFO b on a.HZPKEY=b.pkey and
a.JGID=b.JGID left join HIS_ZY_YJMANAGE c on
a.YJZHPKEY=c.pkey and
a.JGID=c.JGID where a.JGID=? and
a.YJJZPKEY=? order by a.HZPKEY
</sql>
<tables>
<table name="HIS_ZY_YJ_JZZHB" insert="true" update="true"
delete="true">
<primary>PKEY</primary>
<primary>YJJZPKEY</primary>
<primary>QCYE</primary>
<primary>QMYE</primary>
<primary>JKJE</primary>
<primary>TKJE</primary>
<primary>HFJE</primary>
<primary>JGID</primary>
</table>
</tables>
<fields>
<f name="PKEY" type="12" table="HIS_ZY_YJ_JZZHB" />
<f name="YJJZPKEY" type="12" table="HIS_ZY_YJ_JZZHB" />
<f name="YJZHPKEY" type="12" table="HIS_ZY_YJ_JZZHB" />
<f name="HZPKEY" type="12" table="HIS_ZY_YJ_JZZHB" />
<f name="JZPKEY" type="12" table="HIS_ZY_YJ_JZZHB" />
<f name="QCYE" type="12" table="HIS_ZY_YJ_JZZHB" />
<f name="QMYE" type="12" table="HIS_ZY_YJ_JZZHB" />
<f name="JKJE" type="12" table="HIS_ZY_YJ_JZZHB" />
<f name="TKJE" type="12" table="HIS_ZY_YJ_JZZHB" />
<f name="HFJE" type="12" table="HIS_ZY_YJ_JZZHB" />
<f name="CJR" type="12" table="HIS_ZY_YJ_JZZHB" />
<f name="CJRQ" type="93" table="HIS_ZY_YJ_JZZHB" />
<f name="XGR" type="12" table="HIS_ZY_YJ_JZZHB" />
<f name="XGRQ" type="93" table="HIS_ZY_YJ_JZZHB" />
<f name="JGID" type="12" table="HIS_ZY_YJ_JZZHB" />
<f name="XM" type="12" />
<f name="ZYNO" type="12" />
</fields>
<parameter>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="zyyjJzRyHZBDao" log="true" type="1" memo="预交金结账收费人员汇总表dao">
<sql>select
PKEY,YJJZPKEY,SFRY,ZFFS,JKCS,JKJE,TKCS,TKJE,CJR,CJRQ,XGR,XGRQ,JGID
from HIS_ZY_YJ_JZJZRYHZB where JGID=? and YJJZPKEY=? order by
SFRY
</sql>
<tables>
<table name="HIS_ZY_YJ_JZJZRYHZB" insert="true" update="true"
delete="true">
<primary>PKEY</primary>
<primary>YJJZPKEY</primary>
<primary>JGID</primary>
</table>
</tables>
<fields>
<f name="PKEY" type="12" table="HIS_ZY_YJ_JZJZRYHZB" />
<f name="YJJZPKEY" type="12" table="HIS_ZY_YJ_JZJZRYHZB" />
<f name="SFRY" type="12" table="HIS_ZY_YJ_JZJZRYHZB" />
<f name="ZFFS" type="12" table="HIS_ZY_YJ_JZJZRYHZB" />
<f name="JKCS" type="12" table="HIS_ZY_YJ_JZJZRYHZB" />
<f name="JKJE" type="12" table="HIS_ZY_YJ_JZJZRYHZB" />
<f name="TKCS" type="12" table="HIS_ZY_YJ_JZJZRYHZB" />
<f name="TKJE" type="12" table="HIS_ZY_YJ_JZJZRYHZB" />
<f name="CJR" type="12" table="HIS_ZY_YJ_JZJZRYHZB" />
<f name="CJRQ" type="93" table="HIS_ZY_YJ_JZJZRYHZB" />
<f name="XGR" type="12" table="HIS_ZY_YJ_JZJZRYHZB" />
<f name="XGRQ" type="93" table="HIS_ZY_YJ_JZJZRYHZB" />
<f name="JGID" type="12" table="HIS_ZY_YJ_JZJZRYHZB" />
</fields>
<parameter>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="zyyjJzJkMxDao" log="true" type="1" memo="住院押金结账的押金收支流水dao">
<sql><![CDATA[select a.PKEY,a.HZPKEY,a.JZPKEY,a.ZYNO,a.ZJE,a.YJTYPE,a.CJR,a.CJRQ,a.XGR,a.XGRQ,a.JGID,a.JZQCYE,b.SJH,b.SJPKEY,b.YJJE,b.YJSTATE,b.ZFFS,b.SKR,b.SKRQ,b.JKR,b.JKRQ,b.ISJK,b.JSR,b.JSRQ,b.ZJRQ,b.ISZJ,b.HXR,b.HXRQ,b.ISHX,c.xm from HIS_ZY_YJMANAGE a inner join HIS_ZY_YJMX b on a.JZPKEY=b.JZPKEY and a.hzpkey=b.hzpkey and a.YJTYPE=b.YJTYPE AND a.JGID=b.JGID left join HIS_HZINFO c on a.hzpkey=c.pkey and a.JGID=c.JGID where a.JGID=? and b.SKRQ >? and b.SKRQ <=? order by a.HZPKEY,b.SKR]]></sql>
<tables>
<table name="HIS_ZY_YJMANAGE" insert="true" update="true"
delete="true">
<primary>PKEY</primary>
<primary>HZPKEY</primary>
<primary>JZPKEY</primary>
<primary>ZJE</primary>
<primary>JZQCYE</primary>
</table>
</tables>
<fields>
<f name="PKEY" type="12" table="HIS_ZY_YJMANAGE" />
<f name="HZPKEY" type="12" table="HIS_ZY_YJMANAGE" />
<f name="JZPKEY" type="12" table="HIS_ZY_YJMANAGE" />
<f name="ZYNO" type="12" table="HIS_ZY_YJMANAGE" />
<f name="ZJE" type="12" table="HIS_ZY_YJMANAGE" />
<f name="YJTYPE" type="12" table="HIS_ZY_YJMANAGE" />
<f name="CJR" type="12" table="HIS_ZY_YJMANAGE" />
<f name="CJRQ" type="93" table="HIS_ZY_YJMANAGE" />
<f name="XGR" type="12" table="HIS_ZY_YJMANAGE" />
<f name="XGRQ" type="93" table="HIS_ZY_YJMANAGE" />
<f name="JGID" type="12" table="HIS_ZY_YJMANAGE" />
<f name="JZQCYE" type="12" table="HIS_ZY_YJMANAGE" />
<f name="SJH" type="12" />
<f name="SJPKEY" type="12" />
<f name="YJJE" type="8" />
<f name="YJSTATE" type="12" />
<f name="ZFFS" type="12" />
<f name="SKR" type="12" />
<f name="SKRQ" type="93" />
<f name="JKR" type="12" />
<f name="JKRQ" type="93" />
<f name="ISJK" type="12" />
<f name="JSR" type="12" />
<f name="JSRQ" type="93" />
<f name="ZJRQ" type="93" />
<f name="ISZJ" type="12" />
<f name="HXR" type="12" />
<f name="HXRQ" type="93" />
<f name="ISHX" type="12" />
<f name="XM" type="12" />
</fields>
<parameter>
<p>12</p>
<p>93</p>
<p>93</p>
</parameter>
</dao>
<dao id="zyjyzhsumDao" log="true" type="1" memo="住院押金资金账户汇总dao">
<sql>select sum(JZQCYE) JZQCYE,sum(ZJE) ZJE from HIS_ZY_YJMANAGE where
JGID=?
</sql>
<fields>
<f name="JZQCYE" type="4" />
<f name="ZJE" type="4" />
</fields>
<parameter>
<p>12</p>
</parameter>
</dao>
<dao id="zySfyQxDao" log="true" type="1" memo="住院收费员权限dao">
<sql>select
PKEY,SFYPKEY,SFYXJS,SFYXCH,SFDYPJ,MRPJLX,YJPJLX,SFMTMZJS,YBCZJY,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG
from HIS_SF_ZY_SFYQX where JGID=? and SFYPKEY=?
</sql>
<tables>
<table name="HIS_SF_ZY_SFYQX" insert="true" update="true"
delete="true">
<primary>PKEY</primary>
<primary>JGID</primary>
</table>
</tables>
<fields>
<f name="PKEY" type="12" table="HIS_SF_ZY_SFYQX" />
<f name="SFYPKEY" type="12" table="HIS_SF_ZY_SFYQX" />
<f name="SFYXJS" type="12" table="HIS_SF_ZY_SFYQX" />
<f name="SFYXCH" type="12" table="HIS_SF_ZY_SFYQX" />
<f name="SFDYPJ" type="12" table="HIS_SF_ZY_SFYQX" />
<f name="MRPJLX" type="12" table="HIS_SF_ZY_SFYQX" />
<f name="YJPJLX" type="12" table="HIS_SF_ZY_SFYQX" />
<f name="SFMTMZJS" type="12" table="HIS_SF_ZY_SFYQX" />
<f name="YBCZJY" type="12" table="HIS_SF_ZY_SFYQX" />
<f name="CJR" type="12" table="HIS_SF_ZY_SFYQX" />
<f name="CJRQ" type="93" table="HIS_SF_ZY_SFYQX" />
<f name="XGR" type="12" table="HIS_SF_ZY_SFYQX" />
<f name="XGRQ" type="93" table="HIS_SF_ZY_SFYQX" />
<f name="JGID" type="12" table="HIS_SF_ZY_SFYQX" />
<f name="LOCKFLAG" type="-5" table="HIS_SF_ZY_SFYQX" />
</fields>
<parameter>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="zyExeItemIsInSfxmxbDao" log="true" type="1"
memo="住院患者执行项目是否已经增加了对应的收费项明细">
<sql>SELECT count(*) num from HIS_SFZD_SFXMXB a left join HIS_SFX b on
a.SFX=b.BM and a.JGID=b.JGID left join HIS_YZ_MXB c on
a.YZMX=c.pkey
and a.JGID=c.JGID where a.JGID=? and
a.EXEPKEY=? and a.ISHC='0' and
(a.JSZT='0' or a.JSZT='1') order by
a.JFRQ
</sql>
<tables>
<table name="HIS_SFZD_SFXMXB" insert="true" update="true"
delete="true">
<primary>PKEY</primary>
<primary>JGID</primary>
</table>
</tables>
<fields>
<f name="num" type="12" table="HIS_SFZD_SFXMXB" />
</fields>
<parameter>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="hisjzforpkeydao" log="true" type="1"
memo="通过就诊PKEY获取患者PKEY">
<sql>
select
a.JGID,a.PKEY,a.HZPKEY,a.ZYNUM,b.GJ,b.GZDW,b.ZY,b.PHONE,b.LXRGX,b.LXR,b.LXRDH,b.XZDZ,b.MZ,b.BGDH,b.XB,b.CSRQ,a.JJRQ
from HIS_JZ_BASEINFO a
left join HIS_HZINFO b on a.hzpkey = b.pkey and
a.JGID=b.JGID
where a.JGID=? and a.PKEY=?
</sql>
<fields>
<f name="JGID" type="12" />
<f name="PKEY" type="12" />
<f name="HZPKEY" type="12" />
<f name="ZYNUM" type="-5" />
<f name="GJ" type="12" />
<f name="GZDW" type="12" />
<f name="ZY" type="12" />
<f name="PHONE" type="12" />
<f name="LXRGX" type="12" />
<f name="LXR" type="12" />
<f name="LXRDH" type="12" />
<f name="XZDZ" type="12" />
<f name="MZ" type="12" />
<f name="BGDH" type="12" />
<f name="XB" type="12" />
<f name="CSRQ" type="93" />
<f name="JJRQ" type="93" />
</fields>
<parameter>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="zyhzzdinfoByTFDao" log="true" type="1"
memo="住院患者账单信息专门用于退费使用主表dao">
<sql>
select
a.PKEY,a.HZPKEY,a.GHPKEY,a.JZLX,a.JZZT,a.JZZB,a.HZFB,a.JZJS,a.ISYB,a.ISZZ,a.YYLX,a.ISLG,a.ISGSSJJ,a.HZYBLX,a.JJKS,a.JJRQ,a.JJYS,a.FBRQ,a.ZYNUM,a.WARD,a.ROOM,a.BED,a.KZRQ,a.JSRQ,a.THRY,a.HDYY,a.HDRQ,a.MZNUM,a.CJR,a.CJRQ,a.JGID,a.JZNO,a.MZNO,a.ZYNO,a.JZKH,a.CARDPKEY,a.JZNL,a.ISJZ,a.ZYLX,a.ZYHZLY,a.ZYYYRQ,a.CYRQ,a.CYYS,a.ZYNOOLD,a.SCZYRQ,a.ISGL,a.ISSJ,a.HZLX,a.GRLX,a.QTGRLX,a.CWFJLX,a.YSLX,a.MQJZINFO,a.ZKRQ,a.RYTJ,a.RYBQ,a.RYJZINFO,a.RYYS,a.RYQK,a.JZZL,a.JYYJ,a.ZYBZ,a.RYZD,a.RYZDMS,a.ZYBAH,a.RYNL,a.RYXSENLD,a.RYXSENLH,a.RYXSENLS,a.ZYZH,a.JZKLX,a.CRFS,a.OTHERCRFS,a.MAINBLYS,a.MAINBLXS,a.MOTHERJZPKEY,a.ZKDATE,a.RQDATE,a.CYKS,a.CYWARD,a.CYBED,a.HZZYZT,a.ISZZJS,a.ZZJSSJ,a.ZZJSR,a.ISYLJS,a.YLJSR,a.YLJSSJ,a.ISZZCWJS,a.CWJSR,a.CWJSSJ,a.ZDZBPKEY,a.CYBQ,a.CYQK,a.ISDEAD,a.DEADRQ,a.ISZK
,a.LYFS,a.SYLB,a.YZS,a.SYTC,a.TES,a.WYBZ,a.ZCBZ,a.SYSSLB,a.BFZBZ,a.JHSYFWZH,a.RJSS,a.SYSSRQ,a.RYKS,a.RYBED,b.xm,b.xb,b.SFZH,b.ZJHM,b.LXR,b.LXRDH
,c.PKEY
zdpkey,c.jzpkey,c.ZDJFLX,c.JFYBLX,c.HZRYLX,c.HZINTIME,c.HZOUTTIME,c.KSSJ,c.JSSJ,c.JFZJE,c.JFZKE,c.JFZKLX,c.JFJZE,c.HZPAYSELF,c.HZZFE,c.HZZFEORIGN,c.JFLX,c.ISHC,c.HCDJPKEY,c.JSZT,c.SFZXTFHSF,c.TFHSFZDPKEY,c.JZZDPKEY,d.PKEY
fppkey,d.GLZDBPKEY,d.SJPKEY,d.CLOSEPKEY,d.JZRQ,d.CHFPHM,d.CHPKEY,d.FPHM,d.PJLX,d.SFRY,d.SFRQ,d.SFZT,d.FPLX,d.FPDRYY,d.YBLX,d.YBZFJE,d.SFJE,d.YBJSB,d.CHYY,d.SFDZP,d.SFDYFP,d.SFJZDY,d.PJZT,d.TFHSF,d.SFKS,d.JJZF,d.GRZH,d.YYBC,d.GRPAY,f.ZJE
yjzje
from HIS_JZ_BASEINFO a left join HIS_HZINFO b on a.hzpkey =
b.pkey and
a.JGID=b.JGID left join HIS_SFZD_ZB c on a.pkey = c.jzpkey
and a.JGID=c.JGID left join HIS_MZJS_MZFPZB d on
c.pkey=d.GLZDBPKEY
and c.JGID=d.JGID left join
HIS_ZY_YJMANAGE f on a.pkey=f.jzpkey and
f.YJTYPE='01' and
a.JGID=f.JGID and f.YJTYPE='01' where a.JGID=? and
a.hzpkey=? and a.pkey=? and c.PKEY=? and a.JZLX='Z' and (c.isHC is
null or c.ISHC=0) order by c.CJRQ desc
</sql>
<tables>
<table name="HIS_JZ_BASEINFO" insert="false" update="true"
delete="false">
<primary>PKEY</primary>
<primary>HZPKEY</primary>
</table>
<table name="HIS_MZJS_MZFPZB" insert="false" update="false"
delete="false">
<primary>SFZT</primary>
<primary>FPPKEY</primary>
<primary>HZPKEY</primary>
<primary>JZPKEY</primary>
<primary>GLZDBPKEY</primary>
</table>
<table name="HIS_SFZD_ZB" insert="false" update="false"
delete="false">
<primary>ZDPKEY</primary>
<primary>HZPKEY</primary>
<primary>ISHC</primary>
<primary>JZPKEY</primary>
<primary>JSZT</primary>
</table>
</tables>
<fields>
<f name="PKEY" type="12"
table="HIS_JZ_BASEINFO,HIS_MZJS_MZFPZB,HIS_SFZD_ZB" />
<f name="HZPKEY" type="12"
table="HIS_JZ_BASEINFO,HIS_MZJS_MZFPZB,HIS_SFZD_ZB" />
<f name="GHPKEY" type="12" table="HIS_JZ_BASEINFO" />
<f name="JZLX" type="12" table="HIS_JZ_BASEINFO" />
<f name="JZZT" type="12" table="HIS_JZ_BASEINFO,HIS_MZJS_MZFPZB" />
<f name="JZZB" type="12" table="HIS_JZ_BASEINFO" />
<f name="HZFB" type="12" table="HIS_JZ_BASEINFO" />
<f name="JZJS" type="12" table="HIS_JZ_BASEINFO" />
<f name="ISYB" type="12" table="HIS_JZ_BASEINFO" />
<f name="ISZZ" type="12" table="HIS_JZ_BASEINFO" />
<f name="YYLX" type="12" table="HIS_JZ_BASEINFO" />
<f name="ISLG" type="12" table="HIS_JZ_BASEINFO" />
<f name="ISGSSJJ" type="12" table="HIS_JZ_BASEINFO" />
<f name="HZYBLX" type="12" table="HIS_JZ_BASEINFO" />
<f name="JJKS" type="12" table="HIS_JZ_BASEINFO" />
<f name="JJRQ" type="93" table="HIS_JZ_BASEINFO" />
<f name="JJYS" type="12" table="HIS_JZ_BASEINFO" />
<f name="FBRQ" type="93" table="HIS_JZ_BASEINFO" />
<f name="ZYNUM" type="-5" table="HIS_JZ_BASEINFO" />
<f name="WARD" type="12" table="HIS_JZ_BASEINFO" />
<f name="ROOM" type="12" table="HIS_JZ_BASEINFO" />
<f name="BED" type="12" table="HIS_JZ_BASEINFO" />
<f name="KZRQ" type="93" table="HIS_JZ_BASEINFO" />
<f name="JSRQ" type="93" table="HIS_JZ_BASEINFO" />
<f name="THRY" type="12" table="HIS_JZ_BASEINFO" />
<f name="HDYY" type="12" table="HIS_JZ_BASEINFO" />
<f name="HDRQ" type="93" table="HIS_JZ_BASEINFO" />
<f name="MZNUM" type="-5" table="HIS_JZ_BASEINFO" />
<f name="CJR" type="12" table="HIS_JZ_BASEINFO,HIS_MZJS_MZFPZB,HIS_SFZD_ZB" />
<f name="CJRQ" type="93" table="HIS_JZ_BASEINFO,HIS_MZJS_MZFPZB,HIS_SFZD_ZB" />
<f name="JGID" type="12" table="HIS_JZ_BASEINFO,HIS_MZJS_MZFPZB,HIS_SFZD_ZB" />
<f name="JZNO" type="12" table="HIS_JZ_BASEINFO" />
<f name="MZNO" type="12" table="HIS_JZ_BASEINFO" />
<f name="ZYNO" type="12" table="HIS_JZ_BASEINFO" />
<f name="JZKH" type="12" table="HIS_JZ_BASEINFO" />
<f name="CARDPKEY" type="12" table="HIS_JZ_BASEINFO" />
<f name="JZNL" type="12" table="HIS_JZ_BASEINFO" />
<f name="ISJZ" type="12" table="HIS_JZ_BASEINFO" />
<f name="ZYLX" type="12" table="HIS_JZ_BASEINFO" />
<f name="ZYHZLY" type="12" table="HIS_JZ_BASEINFO" />
<f name="ZYYYRQ" type="93" table="HIS_JZ_BASEINFO" />
<f name="CYRQ" type="93" table="HIS_JZ_BASEINFO" />
<f name="CYYS" type="12" table="HIS_JZ_BASEINFO" />
<f name="ZYNOOLD" type="12" table="HIS_JZ_BASEINFO" />
<f name="SCZYRQ" type="93" table="HIS_JZ_BASEINFO" />
<f name="ISGL" type="12" table="HIS_JZ_BASEINFO" />
<f name="ISSJ" type="12" table="HIS_JZ_BASEINFO" />
<f name="HZLX" type="12" table="HIS_JZ_BASEINFO" />
<f name="GRLX" type="12" table="HIS_JZ_BASEINFO" />
<f name="QTGRLX" type="12" table="HIS_JZ_BASEINFO" />
<f name="CWFJLX" type="12" table="HIS_JZ_BASEINFO" />
<f name="YSLX" type="12" table="HIS_JZ_BASEINFO" />
<f name="MQJZINFO" type="12" table="HIS_JZ_BASEINFO" />
<f name="ZKRQ" type="93" table="HIS_JZ_BASEINFO" />
<f name="RYTJ" type="12" table="HIS_JZ_BASEINFO" />
<f name="RYBQ" type="12" table="HIS_JZ_BASEINFO" />
<f name="RYJZINFO" type="12" table="HIS_JZ_BASEINFO" />
<f name="RYYS" type="12" table="HIS_JZ_BASEINFO" />
<f name="RYQK" type="12" table="HIS_JZ_BASEINFO" />
<f name="JZZL" type="12" table="HIS_JZ_BASEINFO" />
<f name="JYYJ" type="-5" table="HIS_JZ_BASEINFO" />
<f name="ZYBZ" type="12" table="HIS_JZ_BASEINFO" />
<f name="RYZD" type="12" table="HIS_JZ_BASEINFO" />
<f name="RYZDMS" type="12" table="HIS_JZ_BASEINFO" />
<f name="ZYBAH" type="12" table="HIS_JZ_BASEINFO" />
<f name="RYNL" type="12" table="HIS_JZ_BASEINFO" />
<f name="RYXSENLD" type="-5" table="HIS_JZ_BASEINFO" />
<f name="RYXSENLH" type="-5" table="HIS_JZ_BASEINFO" />
<f name="RYXSENLS" type="-5" table="HIS_JZ_BASEINFO" />
<f name="ZYZH" type="12" table="HIS_JZ_BASEINFO" />
<f name="JZKLX" type="12" table="HIS_JZ_BASEINFO" />
<f name="CRFS" type="12" table="HIS_JZ_BASEINFO" />
<f name="OTHERCRFS" type="12" table="HIS_JZ_BASEINFO" />
<f name="MAINBLYS" type="12" table="HIS_JZ_BASEINFO" />
<f name="MAINBLXS" type="12" table="HIS_JZ_BASEINFO" />
<f name="MOTHERJZPKEY" type="12" table="HIS_JZ_BASEINFO" />
<f name="ZKDATE" type="93" table="HIS_JZ_BASEINFO" />
<f name="RQDATE" type="93" table="HIS_JZ_BASEINFO" />
<f name="CYKS" type="12" table="HIS_JZ_BASEINFO" />
<f name="CYWARD" type="12" table="HIS_JZ_BASEINFO" />
<f name="CYBED" type="12" table="HIS_JZ_BASEINFO" />
<f name="HZZYZT" type="12" table="HIS_JZ_BASEINFO" />
<f name="ISZZJS" type="12" table="HIS_JZ_BASEINFO" />
<f name="ZZJSSJ" type="93" table="HIS_JZ_BASEINFO" />
<f name="ZZJSR" type="12" table="HIS_JZ_BASEINFO" />
<f name="ISYLJS" type="12" table="HIS_JZ_BASEINFO" />
<f name="YLJSR" type="12" table="HIS_JZ_BASEINFO" />
<f name="YLJSSJ" type="93" table="HIS_JZ_BASEINFO" />
<f name="ISZZCWJS" type="12" table="HIS_JZ_BASEINFO" />
<f name="CWJSR" type="12" table="HIS_JZ_BASEINFO" />
<f name="CWJSSJ" type="93" table="HIS_JZ_BASEINFO" />
<f name="ZDZBPKEY" type="12" table="HIS_JZ_BASEINFO" />
<f name="CYBQ" type="12" table="HIS_JZ_BASEINFO" />
<f name="CYQK" type="12" table="HIS_JZ_BASEINFO" />
<f name="ISDEAD" type="12" table="HIS_JZ_BASEINFO" />
<f name="DEADRQ" type="93" table="HIS_JZ_BASEINFO" />
<f name="ISZK" type="12" table="HIS_JZ_BASEINFO" />
<f name="LYFS" type="12" table="HIS_JZ_BASEINFO" />
<f name="SYLB" type="12" table="HIS_JZ_BASEINFO" />
<f name="YZS" type="12" table="HIS_JZ_BASEINFO" />
<f name="SYTC" type="12" table="HIS_JZ_BASEINFO" />
<f name="TES" type="12" table="HIS_JZ_BASEINFO" />
<f name="WYBZ" type="12" table="HIS_JZ_BASEINFO" />
<f name="ZCBZ" type="12" table="HIS_JZ_BASEINFO" />
<f name="SYSSLB" type="12" table="HIS_JZ_BASEINFO" />
<f name="BFZBZ" type="12" table="HIS_JZ_BASEINFO" />
<f name="JHSYFWZH" type="12" table="HIS_JZ_BASEINFO" />
<f name="RJSS" type="12" table="HIS_JZ_BASEINFO" />
<f name="SYSSRQ" type="93" table="HIS_JZ_BASEINFO" />
<f name="RYKS" type="12" table="HIS_JZ_BASEINFO" />
<f name="RYBED" type="12" table="HIS_JZ_BASEINFO" />
<f name="XM" type="12" />
<f name="XB" type="12" />
<f name="SFZH" type="12" />
<f name="ZJHM" type="12" />
<f name="LXR" type="12" />
<f name="LXRDH" type="12" />
<f name="ZDPKEY" type="12" />
<f name="JZPKEY" type="12" table="HIS_MZJS_MZFPZB,HIS_SFZD_ZB" />
<f name="ZDJFLX" type="12" table="HIS_SFZD_ZB" />
<f name="JFYBLX" type="12" table="HIS_SFZD_ZB" />
<f name="HZRYLX" type="12" table="HIS_SFZD_ZB" />
<f name="HZINTIME" type="93" table="HIS_SFZD_ZB" />
<f name="HZOUTTIME" type="93" table="HIS_SFZD_ZB" />
<f name="KSSJ" type="93" table="HIS_SFZD_ZB" />
<f name="JSSJ" type="93" table="HIS_SFZD_ZB" />
<f name="JFZJE" type="12" table="HIS_SFZD_ZB" />
<f name="JFZKE" type="12" table="HIS_SFZD_ZB" />
<f name="JFZKLX" type="12" table="HIS_SFZD_ZB" />
<f name="JFJZE" type="12" table="HIS_SFZD_ZB" />
<f name="HZPAYSELF" type="12" table="HIS_SFZD_ZB" />
<f name="HZZFE" type="12" table="HIS_SFZD_ZB" />
<f name="HZZFEORIGN" type="12" table="HIS_SFZD_ZB" />
<f name="JFLX" type="12" table="HIS_SFZD_ZB" />
<f name="ISHC" type="12" table="HIS_SFZD_ZB" />
<f name="HCDJPKEY" type="12" table="HIS_SFZD_ZB" />
<f name="JSZT" type="12" table="HIS_SFZD_ZB" />
<f name="SFZXTFHSF" type="12" table="HIS_SFZD_ZB" />
<f name="TFHSFZDPKEY" type="12" table="HIS_SFZD_ZB" />
<f name="JZZDPKEY" type="12" table="HIS_SFZD_ZB" />
<f name="FPPKEY" type="12" />
<f name="GLZDBPKEY" type="12" table="HIS_MZJS_MZFPZB" />
<f name="SJPKEY" type="12" table="HIS_MZJS_MZFPZB" />
<f name="CLOSEPKEY" type="12" table="HIS_MZJS_MZFPZB" />
<f name="JZRQ" type="93" table="HIS_MZJS_MZFPZB" />
<f name="CHFPHM" type="12" table="HIS_MZJS_MZFPZB" />
<f name="CHPKEY" type="12" table="HIS_MZJS_MZFPZB" />
<f name="FPHM" type="12" table="HIS_MZJS_MZFPZB" />
<f name="PJLX" type="12" table="HIS_MZJS_MZFPZB" />
<f name="SFRY" type="12" table="HIS_MZJS_MZFPZB" />
<f name="SFRQ" type="93" table="HIS_MZJS_MZFPZB" />
<f name="SFZT" type="12" table="HIS_MZJS_MZFPZB" />
<f name="FPLX" type="12" table="HIS_MZJS_MZFPZB" />
<f name="FPDRYY" type="12" table="HIS_MZJS_MZFPZB" />
<f name="YBLX" type="12" table="HIS_MZJS_MZFPZB" />
<f name="YBZFJE" type="12" table="HIS_MZJS_MZFPZB" />
<f name="SFJE" type="12" table="HIS_MZJS_MZFPZB" />
<f name="YBJSB" type="12" table="HIS_MZJS_MZFPZB" />
<f name="CHYY" type="12" table="HIS_MZJS_MZFPZB" />
<f name="SFDZP" type="12" table="HIS_MZJS_MZFPZB" />
<f name="SFDYFP" type="12" table="HIS_MZJS_MZFPZB" />
<f name="SFJZDY" type="12" table="HIS_MZJS_MZFPZB" />
<f name="PJZT" type="12" table="HIS_MZJS_MZFPZB" />
<f name="TFHSF" type="12" table="HIS_MZJS_MZFPZB" />
<f name="SFKS" type="12" table="HIS_MZJS_MZFPZB" />
<f name="JJZF" type="12" table="HIS_MZJS_MZFPZB" />
<f name="GRZH" type="12" table="HIS_MZJS_MZFPZB" />
<f name="YYBC" type="12" table="HIS_MZJS_MZFPZB" />
<f name="GRPAY" type="12" table="HIS_MZJS_MZFPZB" />
<f name="YJZJE" type="12" />
</fields>
<parameter>
<p>12</p>
<p>12</p>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="zyPatientAllFymxDao" log="true" type="1">
<sql>
select
PKEY,FYBPKEY,JZPKEY,HZPKEY,ZYNO,CFH,PYBPKEY,YZXPKEY,YZMX,YZDJ,YZSL,BED,YPFL,YZDL,TYSL,KSKCPKEY,KSKCPCPKEY,CJR,CJRQ,XGR,XGRQ,JGID,EXEPKEY,LOCKFLAG
from HIS_YFFY_ZYFYMXB where JGID=? and hzpkey=? and jzpkey=?
</sql>
<tables>
<table name="HIS_YFFY_ZYFYMXB" insert="false" update="true"
delete="false">
<primary>PKEY</primary>
<primary>JGID</primary>
</table>
</tables>
<fields>
<f name="PKEY" type="12" table="HIS_YFFY_ZYFYMXB" />
<f name="FYBPKEY" type="12" table="HIS_YFFY_ZYFYMXB" />
<f name="JZPKEY" type="12" table="HIS_YFFY_ZYFYMXB" />
<f name="HZPKEY" type="12" table="HIS_YFFY_ZYFYMXB" />
<f name="ZYNO" type="12" table="HIS_YFFY_ZYFYMXB" />
<f name="CFH" type="12" table="HIS_YFFY_ZYFYMXB" />
<f name="PYBPKEY" type="12" table="HIS_YFFY_ZYFYMXB" />
<f name="YZXPKEY" type="12" table="HIS_YFFY_ZYFYMXB" />
<f name="YZMX" type="12" table="HIS_YFFY_ZYFYMXB" />
<f name="YZDJ" type="12" table="HIS_YFFY_ZYFYMXB" />
<f name="YZSL" type="12" table="HIS_YFFY_ZYFYMXB" />
<f name="BED" type="12" table="HIS_YFFY_ZYFYMXB" />
<f name="YPFL" type="12" table="HIS_YFFY_ZYFYMXB" />
<f name="YZDL" type="12" table="HIS_YFFY_ZYFYMXB" />
<f name="TYSL" type="12" table="HIS_YFFY_ZYFYMXB" />
<f name="KSKCPKEY" type="12" table="HIS_YFFY_ZYFYMXB" />
<f name="KSKCPCPKEY" type="12" table="HIS_YFFY_ZYFYMXB" />
<f name="CJR" type="12" table="HIS_YFFY_ZYFYMXB" />
<f name="CJRQ" type="93" table="HIS_YFFY_ZYFYMXB" />
<f name="XGR" type="12" table="HIS_YFFY_ZYFYMXB" />
<f name="XGRQ" type="93" table="HIS_YFFY_ZYFYMXB" />
<f name="JGID" type="12" table="HIS_YFFY_ZYFYMXB" />
<f name="EXEPKEY" type="12" table="HIS_YFFY_ZYFYMXB" />
<f name="LOCKFLAG" type="-5" table="HIS_YFFY_ZYFYMXB" />
</fields>
<parameter>
<p>12</p>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="zyPatientAllExecDao" log="true" type="1">
<sql>
select
PKEY,JZPKEY,HZPKEY,ZYNO,YZMX,YZXPKEY,ZXFLAG,ZXR,ZXTIME,ZXRKS,ZXRWARD,PRINTFLAG,PRINTMAN,PRINTTIME,BBCJFLAG,BBCJMAN,BBCJTIME,BBTM,QUERYCODE,SFFLAG,ZXSL,ZXDW,ZXJE,YZBEGINSJ,YZZXBEGINSJ,YZTZSJ,YZMS,JZBZ,ZDZBPKEY,CXR,CXSJ,TZR,TZSJ,CJR,CJRQ,XGR,XGRQ,JGID,CFH,YZMC,ISACTION,TYDNUM,YFBDZYZPKEY,BDYF,BDEXECPKEY,BDZC,CWJS,SFXSYZ,LOCKFLAG
from HIS_YZ_EXEC where JGID=? and hzpkey=? and jzpkey=?
</sql>
<tables>
<table name="HIS_YZ_EXEC" insert="false" update="true"
delete="false">
<primary>PKEY</primary>
<primary>JGID</primary>
</table>
</tables>
<fields>
<f name="PKEY" type="12" table="HIS_YZ_EXEC" />
<f name="JZPKEY" type="12" table="HIS_YZ_EXEC" />
<f name="HZPKEY" type="12" table="HIS_YZ_EXEC" />
<f name="ZYNO" type="12" table="HIS_YZ_EXEC" />
<f name="YZMX" type="12" table="HIS_YZ_EXEC" />
<f name="YZXPKEY" type="12" table="HIS_YZ_EXEC" />
<f name="ZXFLAG" type="12" table="HIS_YZ_EXEC" />
<f name="ZXR" type="12" table="HIS_YZ_EXEC" />
<f name="ZXTIME" type="93" table="HIS_YZ_EXEC" />
<f name="ZXRKS" type="12" table="HIS_YZ_EXEC" />
<f name="ZXRWARD" type="12" table="HIS_YZ_EXEC" />
<f name="PRINTFLAG" type="12" table="HIS_YZ_EXEC" />
<f name="PRINTMAN" type="12" table="HIS_YZ_EXEC" />
<f name="PRINTTIME" type="93" table="HIS_YZ_EXEC" />
<f name="BBCJFLAG" type="12" table="HIS_YZ_EXEC" />
<f name="BBCJMAN" type="12" table="HIS_YZ_EXEC" />
<f name="BBCJTIME" type="93" table="HIS_YZ_EXEC" />
<f name="BBTM" type="12" table="HIS_YZ_EXEC" />
<f name="QUERYCODE" type="12" table="HIS_YZ_EXEC" />
<f name="SFFLAG" type="12" table="HIS_YZ_EXEC" />
<f name="ZXSL" type="8" table="HIS_YZ_EXEC" />
<f name="ZXDW" type="12" table="HIS_YZ_EXEC" />
<f name="ZXJE" type="8" table="HIS_YZ_EXEC" />
<f name="YZBEGINSJ" type="93" table="HIS_YZ_EXEC" />
<f name="YZZXBEGINSJ" type="93" table="HIS_YZ_EXEC" />
<f name="YZTZSJ" type="93" table="HIS_YZ_EXEC" />
<f name="YZMS" type="12" table="HIS_YZ_EXEC" />
<f name="JZBZ" type="12" table="HIS_YZ_EXEC" />
<f name="ZDZBPKEY" type="12" table="HIS_YZ_EXEC" />
<f name="CXR" type="12" table="HIS_YZ_EXEC" />
<f name="CXSJ" type="93" table="HIS_YZ_EXEC" />
<f name="TZR" type="12" table="HIS_YZ_EXEC" />
<f name="TZSJ" type="93" table="HIS_YZ_EXEC" />
<f name="CJR" type="12" table="HIS_YZ_EXEC" />
<f name="CJRQ" type="93" table="HIS_YZ_EXEC" />
<f name="XGR" type="12" table="HIS_YZ_EXEC" />
<f name="XGRQ" type="93" table="HIS_YZ_EXEC" />
<f name="JGID" type="12" table="HIS_YZ_EXEC" />
<f name="CFH" type="12" table="HIS_YZ_EXEC" />
<f name="YZMC" type="12" table="HIS_YZ_EXEC" />
<f name="ISACTION" type="12" table="HIS_YZ_EXEC" />
<f name="TYDNUM" type="8" table="HIS_YZ_EXEC" />
<f name="YFBDZYZPKEY" type="12" table="HIS_YZ_EXEC" />
<f name="BDYF" type="12" table="HIS_YZ_EXEC" />
<f name="BDEXECPKEY" type="12" table="HIS_YZ_EXEC" />
<f name="BDZC" type="12" table="HIS_YZ_EXEC" />
<f name="CWJS" type="12" table="HIS_YZ_EXEC" />
<f name="SFXSYZ" type="12" table="HIS_YZ_EXEC" />
<f name="LOCKFLAG" type="-5" table="HIS_YZ_EXEC" />
</fields>
<parameter>
<p>12</p>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="zyhzsumsfxfyByExeDao" log="true" type="1"
memo="住院患者按执行项进行费用合计">
<sql>
select a.EXEPKEY,sum(a.sfxzfy) sfxzfy from HIS_SFZD_SFXMXB a left
join
HIS_SFX b on a.sfx=b.bm and a.JGID=b.JGID left join
HIS_YZ_EXEC c
on a.EXEPKEY=c.pkey and a.JGID=c.JGID left
join HIS_YZ_MXB d on
a.yzmx=d.pkey and a.JGID=d.JGID left
join HIS_YPXX e on d.yzxpkey=e.bm
where a.JGID=? and c.hzpkey=?
and c.jzpkey=? group by a.exepkey
</sql>
<fields>
<f name="EXEPKEY" type="12" />
<f name="sfxzfy" type="12" />
</fields>
<parameter>
<p>12</p>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="zyhzsumsfxfyDao" log="true" type="1" memo="住院患者收费项合计费用dao">
<sql>
select sum(a.SFXZFY) sfxzfy from HIS_SFZD_SFXMXB a left join
HIS_SFX b on
a.sfx=b.bm and a.JGID=b.JGID left join HIS_YZ_EXEC c on
a.EXEPKEY=c.pkey and a.JGID=c.JGID left join HIS_YZ_MXB d
on
a.yzmx=d.pkey and a.JGID=d.JGID left join HIS_YPXX e on
d.yzxpkey=e.bm where a.JGID=? and c.hzpkey=? and c.jzpkey=?
order by
a.JFRQ,a.yzx,b.bm
</sql>
<fields>
<f name="sfxzfy" type="12" />
</fields>
<parameter>
<p>12</p>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="zysqdtythchzdao" log="true" type="1"
memo="住院通过申请单退药退耗材患者列表dao">
<sql>select '' sel,'' BED,'' xm,'' zyno,'' jzpkey from dual where 1=2
</sql>
<fields>
<f name="sel" type="1" />
<f name="BED" type="1" />
<f name="XM" type="1" />
<f name="ZYNO" type="1" />
<f name="jzpkey" type="1" />
</fields>
</dao>
<dao id="processCancelSfmxDao" log="true" type="1"
memo="用于已经撤销的执行项对应的收费项目是否有没有冲红的费用dao">
<sql>
select
a.PKEY,a.ZDZBPKEY,a.YZX,a.YZMX,a.SFX,a.SFXDJ,a.SFXSL,a.SFXZKL,a.SFXZFY,a.SFXZKFY,a.HZYBZF,a.HZZFZF,a.JFRQ,a.CJR,a.CJRQ,a.JGID,a.FYDL,a.FYZL,a.EXEPKEY,a.ISHC,a.HCDJPKEY,a.JSZT,c.ZXFLAG,a.LOCKFLAG
from HIS_SFZD_SFXMXB a left join HIS_YZ_EXEC c on a.EXEPKEY=c.pkey
and a.JGID=c.JGID where a.JGID=? and c.hzpkey=? and
c.jzpkey=? and
c.ZXFLAG='3'
</sql>
<tables>
<table name="HIS_SFZD_SFXMXB" insert="false" update="true"
delete="true">
<primary>PKEY</primary>
<primary>JGID</primary>
</table>
</tables>
<fields>
<f name="PKEY" type="12" table="HIS_SFZD_SFXMXB" />
<f name="ZDZBPKEY" type="12" table="HIS_SFZD_SFXMXB" />
<f name="YZX" type="12" table="HIS_SFZD_SFXMXB" />
<f name="YZMX" type="12" table="HIS_SFZD_SFXMXB" />
<f name="SFX" type="12" table="HIS_SFZD_SFXMXB" />
<f name="SFXDJ" type="12" table="HIS_SFZD_SFXMXB" />
<f name="SFXSL" type="12" table="HIS_SFZD_SFXMXB" />
<f name="SFXZKL" type="12" table="HIS_SFZD_SFXMXB" />
<f name="SFXZFY" type="12" table="HIS_SFZD_SFXMXB" />
<f name="SFXZKFY" type="12" table="HIS_SFZD_SFXMXB" />
<f name="HZYBZF" type="12" table="HIS_SFZD_SFXMXB" />
<f name="HZZFZF" type="12" table="HIS_SFZD_SFXMXB" />
<f name="JFRQ" type="93" table="HIS_SFZD_SFXMXB" />
<f name="CJR" type="12" table="HIS_SFZD_SFXMXB" />
<f name="CJRQ" type="93" table="HIS_SFZD_SFXMXB" />
<f name="JGID" type="12" table="HIS_SFZD_SFXMXB" />
<f name="FYDL" type="12" table="HIS_SFZD_SFXMXB" />
<f name="FYZL" type="12" table="HIS_SFZD_SFXMXB" />
<f name="EXEPKEY" type="12" table="HIS_SFZD_SFXMXB" />
<f name="ISHC" type="12" table="HIS_SFZD_SFXMXB" />
<f name="HCDJPKEY" type="12" table="HIS_SFZD_SFXMXB" />
<f name="JSZT" type="12" table="HIS_SFZD_SFXMXB" />
<f name="ZXFLAG" type="12" />
<f name="LOCKFLAG" type="12" table="HIS_SFZD_SFXMXB" />
</fields>
<parameter>
<p>12</p>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="zyQFLevelSetupDao" log="true" type="1"
memo="住院欠费控制级别设置dao">
<sql>
select
PKEY,LEVELNAME,LEVELMEMO,SFINPUTORDER,SFACTIONORDER,SFSENDMEDICAL,LEVELIMAGE,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG
from HIS_ZY_QF_LEVEL where JGID=? order by pkey
</sql>
<tables>
<table name="HIS_ZY_QF_LEVEL" insert="true" update="true"
delete="true">
<primary>PKEY</primary>
<primary>JGID</primary>
</table>
</tables>
<fields>
<f name="PKEY" type="12" table="HIS_ZY_QF_LEVEL" />
<f name="LEVELNAME" type="12" table="HIS_ZY_QF_LEVEL" />
<f name="LEVELMEMO" type="12" table="HIS_ZY_QF_LEVEL" />
<f name="SFINPUTORDER" type="12" table="HIS_ZY_QF_LEVEL" />
<f name="SFACTIONORDER" type="12" table="HIS_ZY_QF_LEVEL" />
<f name="SFSENDMEDICAL" type="12" table="HIS_ZY_QF_LEVEL" />
<f name="LEVELIMAGE" type="12" table="HIS_ZY_QF_LEVEL" />
<f name="CJR" type="12" table="HIS_ZY_QF_LEVEL" />
<f name="CJRQ" type="93" table="HIS_ZY_QF_LEVEL" />
<f name="XGR" type="12" table="HIS_ZY_QF_LEVEL" />
<f name="XGRQ" type="93" table="HIS_ZY_QF_LEVEL" />
<f name="JGID" type="12" table="HIS_ZY_QF_LEVEL" />
<f name="LOCKFLAG" type="-5" table="HIS_ZY_QF_LEVEL" />
</fields>
<parameter>
<p>12</p>
</parameter>
</dao>
<dao id="zyQFLevelDic" log="true" cache="true" type="1"
memo="住院欠费控制级别字典">
<sql>
select
PKEY,LEVELNAME,LEVELMEMO,SFINPUTORDER,SFACTIONORDER,SFSENDMEDICAL,LEVELIMAGE,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG
from HIS_ZY_QF_LEVEL where JGID=? order by pkey
</sql>
<tables>
<table name="HIS_ZY_QF_LEVEL" insert="true" update="true"
delete="true">
<primary>PKEY</primary>
<primary>JGID</primary>
</table>
</tables>
<fields>
<f name="PKEY" type="12" table="HIS_ZY_QF_LEVEL" />
<f name="LEVELNAME" type="12" table="HIS_ZY_QF_LEVEL" />
<f name="LEVELMEMO" type="12" table="HIS_ZY_QF_LEVEL" />
<f name="SFINPUTORDER" type="12" table="HIS_ZY_QF_LEVEL" />
<f name="SFACTIONORDER" type="12" table="HIS_ZY_QF_LEVEL" />
<f name="SFSENDMEDICAL" type="12" table="HIS_ZY_QF_LEVEL" />
<f name="LEVELIMAGE" type="12" table="HIS_ZY_QF_LEVEL" />
<f name="CJR" type="12" table="HIS_ZY_QF_LEVEL" />
<f name="CJRQ" type="93" table="HIS_ZY_QF_LEVEL" />
<f name="XGR" type="12" table="HIS_ZY_QF_LEVEL" />
<f name="XGRQ" type="93" table="HIS_ZY_QF_LEVEL" />
<f name="JGID" type="12" table="HIS_ZY_QF_LEVEL" />
<f name="LOCKFLAG" type="-5" table="HIS_ZY_QF_LEVEL" />
</fields>
<parameter>
<p>12</p>
</parameter>
</dao>
<dao id="zyQFSetupDao" log="true" type="1" memo="住院欠费设置dao">
<sql>
select
PKEY,FYLB,JZLX,SFLSTD,KS,WARD,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG
from
HIS_ZY_QF_SETUP where JGID=? and FYLB=? order by pkey
</sql>
<tables>
<table name="HIS_ZY_QF_SETUP" insert="true" update="true"
delete="true">
<primary>PKEY</primary>
<primary>FYLB</primary>
<primary>JGID</primary>
</table>
</tables>
<fields>
<f name="PKEY" type="12" table="HIS_ZY_QF_SETUP" />
<f name="FYLB" type="12" table="HIS_ZY_QF_SETUP" />
<f name="JZLX" type="12" table="HIS_ZY_QF_SETUP" />
<f name="SFLSTD" type="12" table="HIS_ZY_QF_SETUP" />
<f name="KS" type="12" table="HIS_ZY_QF_SETUP" />
<f name="WARD" type="12" table="HIS_ZY_QF_SETUP" />
<f name="CJR" type="12" table="HIS_ZY_QF_SETUP" />
<f name="CJRQ" type="93" table="HIS_ZY_QF_SETUP" />
<f name="XGR" type="12" table="HIS_ZY_QF_SETUP" />
<f name="XGRQ" type="93" table="HIS_ZY_QF_SETUP" />
<f name="JGID" type="12" table="HIS_ZY_QF_SETUP" />
<f name="LOCKFLAG" type="-5" table="HIS_ZY_QF_SETUP" />
</fields>
<parameter>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="zyQFSetupEdDao" log="true" type="1" memo="住院欠费设置对应的额度dao">
<sql>
select
PKEY,QFPKEY,KZJB,LCZF,ZJE,RCZF,RJE,FYJSBL,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG
from HIS_ZY_QF_SETUPED where JGID=? and QFPKEY=? order by pkey
</sql>
<tables>
<table name="HIS_ZY_QF_SETUPED" insert="true" update="true"
delete="true">
<primary>PKEY</primary>
<primary>QFPKEY</primary>
<primary>JGID</primary>
</table>
</tables>
<fields>
<f name="PKEY" type="12" table="HIS_ZY_QF_SETUPED" />
<f name="QFPKEY" type="12" table="HIS_ZY_QF_SETUPED" />
<f name="KZJB" type="12" table="HIS_ZY_QF_SETUPED" />
<f name="LCZF" type="12" table="HIS_ZY_QF_SETUPED" />
<f name="ZJE" type="8" table="HIS_ZY_QF_SETUPED" />
<f name="RCZF" type="12" table="HIS_ZY_QF_SETUPED" />
<f name="RJE" type="8" table="HIS_ZY_QF_SETUPED" />
<f name="FYJSBL" type="8" table="HIS_ZY_QF_SETUPED" />
<f name="CJR" type="12" table="HIS_ZY_QF_SETUPED" />
<f name="CJRQ" type="93" table="HIS_ZY_QF_SETUPED" />
<f name="XGR" type="12" table="HIS_ZY_QF_SETUPED" />
<f name="XGRQ" type="93" table="HIS_ZY_QF_SETUPED" />
<f name="JGID" type="12" table="HIS_ZY_QF_SETUPED" />
<f name="LOCKFLAG" type="-5" table="HIS_ZY_QF_SETUPED" />
</fields>
<parameter>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="zyFyDbedszSetupDao" log="true" type="1"
memo="住院费用担保额度设置dao">
<sql>
select
PKEY,FYLB,DBKS,DBSXLX,DBSX,MRXZED,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG
from HIS_ZY_QF_DBEDSZ where JGID=? and fylb=? order by pkey
</sql>
<tables>
<table name="HIS_ZY_QF_DBEDSZ" insert="true" update="true"
delete="true">
<primary>PKEY</primary>
<primary>FYLB</primary>
<primary>JGID</primary>
</table>
</tables>
<fields>
<f name="PKEY" type="12" table="HIS_ZY_QF_DBEDSZ" />
<f name="FYLB" type="12" table="HIS_ZY_QF_DBEDSZ" />
<f name="DBKS" type="12" table="HIS_ZY_QF_DBEDSZ" />
<f name="DBSXLX" type="12" table="HIS_ZY_QF_DBEDSZ" />
<f name="DBSX" type="8" table="HIS_ZY_QF_DBEDSZ" />
<f name="MRXZED" type="8" table="HIS_ZY_QF_DBEDSZ" />
<f name="CJR" type="12" table="HIS_ZY_QF_DBEDSZ" />
<f name="CJRQ" type="93" table="HIS_ZY_QF_DBEDSZ" />
<f name="XGR" type="12" table="HIS_ZY_QF_DBEDSZ" />
<f name="XGRQ" type="93" table="HIS_ZY_QF_DBEDSZ" />
<f name="JGID" type="12" table="HIS_ZY_QF_DBEDSZ" />
<f name="LOCKFLAG" type="-5" table="HIS_ZY_QF_DBEDSZ" />
</fields>
<parameter>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="zyFyDbedszDic" log="true" cache="true" type="1"
memo="住院费用担保额度字典dao">
<sql>
select
PKEY,FYLB,DBKS,DBSXLX,DBSX,MRXZED,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG
from HIS_ZY_QF_DBEDSZ where JGID=? order by pkey
</sql>
<tables>
<table name="HIS_ZY_QF_DBEDSZ" insert="true" update="true"
delete="true">
<primary>PKEY</primary>
<primary>FYLB</primary>
<primary>JGID</primary>
</table>
</tables>
<fields>
<f name="PKEY" type="12" table="HIS_ZY_QF_DBEDSZ" />
<f name="FYLB" type="12" table="HIS_ZY_QF_DBEDSZ" />
<f name="DBKS" type="12" table="HIS_ZY_QF_DBEDSZ" />
<f name="DBSXLX" type="12" table="HIS_ZY_QF_DBEDSZ" />
<f name="DBSX" type="8" table="HIS_ZY_QF_DBEDSZ" />
<f name="MRXZED" type="8" table="HIS_ZY_QF_DBEDSZ" />
<f name="CJR" type="12" table="HIS_ZY_QF_DBEDSZ" />
<f name="CJRQ" type="93" table="HIS_ZY_QF_DBEDSZ" />
<f name="XGR" type="12" table="HIS_ZY_QF_DBEDSZ" />
<f name="XGRQ" type="93" table="HIS_ZY_QF_DBEDSZ" />
<f name="JGID" type="12" table="HIS_ZY_QF_DBEDSZ" />
<f name="LOCKFLAG" type="-5" table="HIS_ZY_QF_DBEDSZ" />
</fields>
<parameter>
<p>12</p>
</parameter>
</dao>
<dao id="zyhzDbedDao" log="true" type="1" memo="住院患者费用担保dao">
<sql>
select
PKEY,HZPKEY,JZPKEY,ZYNO,DBGZPKEY,DBR,JJKS,JZLX,DBJE,DBZT,BEGINDATE,ENDDATE,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG
from HIS_ZY_QF_HZDBED where JGID =? and hzpkey=? and jzpkey=?
order by
CJRQ desc
</sql>
<tables>
<table name="HIS_ZY_QF_HZDBED" insert="true" update="true"
delete="true">
<primary>PKEY</primary>
<primary>JGID</primary>
</table>
</tables>
<fields>
<f name="PKEY" type="12" table="HIS_ZY_QF_HZDBED" />
<f name="HZPKEY" type="12" table="HIS_ZY_QF_HZDBED" />
<f name="JZPKEY" type="12" table="HIS_ZY_QF_HZDBED" />
<f name="ZYNO" type="12" table="HIS_ZY_QF_HZDBED" />
<f name="DBGZPKEY" type="12" table="HIS_ZY_QF_HZDBED" />
<f name="DBR" type="12" table="HIS_ZY_QF_HZDBED" />
<f name="JJKS" type="12" table="HIS_ZY_QF_HZDBED" />
<f name="JZLX" type="12" table="HIS_ZY_QF_HZDBED" />
<f name="DBJE" type="8" table="HIS_ZY_QF_HZDBED" />
<f name="DBZT" type="12" table="HIS_ZY_QF_HZDBED" />
<f name="BEGINDATE" type="93" table="HIS_ZY_QF_HZDBED" />
<f name="ENDDATE" type="93" table="HIS_ZY_QF_HZDBED" />
<f name="CJR" type="12" table="HIS_ZY_QF_HZDBED" />
<f name="CJRQ" type="93" table="HIS_ZY_QF_HZDBED" />
<f name="XGR" type="12" table="HIS_ZY_QF_HZDBED" />
<f name="XGRQ" type="93" table="HIS_ZY_QF_HZDBED" />
<f name="JGID" type="12" table="HIS_ZY_QF_HZDBED" />
<f name="LOCKFLAG" type="-5" table="HIS_ZY_QF_HZDBED" />
</fields>
<parameter>
<p>12</p>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="zyQFSetupDic" log="true" cache="true" type="1"
memo="住院欠费设置字典">
<sql>
select
PKEY,FYLB,JZLX,SFLSTD,KS,WARD,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG
from
HIS_ZY_QF_SETUP where JGID=? and FYLB=? and SFLSTD=? and
JZLX=? order
by pkey
</sql>
<tables>
<table name="HIS_ZY_QF_SETUP" insert="true" update="true"
delete="true">
<primary>PKEY</primary>
<primary>FYLB</primary>
<primary>JGID</primary>
</table>
</tables>
<fields>
<f name="PKEY" type="12" table="HIS_ZY_QF_SETUP" />
<f name="FYLB" type="12" table="HIS_ZY_QF_SETUP" />
<f name="JZLX" type="12" table="HIS_ZY_QF_SETUP" />
<f name="SFLSTD" type="12" table="HIS_ZY_QF_SETUP" />
<f name="KS" type="12" table="HIS_ZY_QF_SETUP" />
<f name="WARD" type="12" table="HIS_ZY_QF_SETUP" />
<f name="CJR" type="12" table="HIS_ZY_QF_SETUP" />
<f name="CJRQ" type="93" table="HIS_ZY_QF_SETUP" />
<f name="XGR" type="12" table="HIS_ZY_QF_SETUP" />
<f name="XGRQ" type="93" table="HIS_ZY_QF_SETUP" />
<f name="JGID" type="12" table="HIS_ZY_QF_SETUP" />
<f name="LOCKFLAG" type="-5" table="HIS_ZY_QF_SETUP" />
</fields>
<parameter>
<p>12</p>
<p>12</p>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="inUseZyhzDbEdDao" log="true" type="1"
memo="返回有效的住院患者担保金额dao">
<sql><![CDATA[
select PKEY,HZPKEY,JZPKEY,ZYNO,DBGZPKEY,DBR,JJKS,JZLX,DBJE,DBZT,BEGINDATE,ENDDATE,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG from HIS_ZY_QF_HZDBED where JGID=? and hzpkey=? and jzpkey=? and BEGINDATE <=? and ENDDATE >=? and DBZT='1'
]]></sql>
<fields>
<f name="PKEY" type="12" />
<f name="HZPKEY" type="12" />
<f name="JZPKEY" type="12" />
<f name="ZYNO" type="12" />
<f name="DBGZPKEY" type="12" />
<f name="DBR" type="12" />
<f name="JJKS" type="12" />
<f name="JZLX" type="12" />
<f name="DBJE" type="8" />
<f name="DBZT" type="12" />
<f name="BEGINDATE" type="93" />
<f name="ENDDATE" type="93" />
<f name="CJR" type="12" />
<f name="CJRQ" type="93" />
<f name="XGR" type="12" />
<f name="XGRQ" type="93" />
<f name="JGID" type="12" />
<f name="LOCKFLAG" type="-5" />
</fields>
<parameter>
<p>12</p>
<p>12</p>
<p>12</p>
<p>93</p>
<p>93</p>
</parameter>
</dao>
<dao id="zyQFSetupEdDic" log="true" cache="true" type="1"
memo="住院欠费设置对应的额度字典">
<sql>
select
PKEY,QFPKEY,KZJB,LCZF,ZJE,RCZF,RJE,FYJSBL,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG
from HIS_ZY_QF_SETUPED where JGID=? and QFPKEY=? order by pkey
</sql>
<tables>
<table name="HIS_ZY_QF_SETUPED" insert="true" update="true"
delete="true">
<primary>PKEY</primary>
<primary>QFPKEY</primary>
<primary>JGID</primary>
</table>
</tables>
<fields>
<f name="PKEY" type="12" table="HIS_ZY_QF_SETUPED" />
<f name="QFPKEY" type="12" table="HIS_ZY_QF_SETUPED" />
<f name="KZJB" type="12" table="HIS_ZY_QF_SETUPED" />
<f name="LCZF" type="12" table="HIS_ZY_QF_SETUPED" />
<f name="ZJE" type="8" table="HIS_ZY_QF_SETUPED" />
<f name="RCZF" type="12" table="HIS_ZY_QF_SETUPED" />
<f name="RJE" type="8" table="HIS_ZY_QF_SETUPED" />
<f name="FYJSBL" type="8" table="HIS_ZY_QF_SETUPED" />
<f name="CJR" type="12" table="HIS_ZY_QF_SETUPED" />
<f name="CJRQ" type="93" table="HIS_ZY_QF_SETUPED" />
<f name="XGR" type="12" table="HIS_ZY_QF_SETUPED" />
<f name="XGRQ" type="93" table="HIS_ZY_QF_SETUPED" />
<f name="JGID" type="12" table="HIS_ZY_QF_SETUPED" />
<f name="LOCKFLAG" type="-5" table="HIS_ZY_QF_SETUPED" />
</fields>
<parameter>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="cyhzxqDao" log="true" type="1" memo="出院患者详情列表dao">
<sql>
select
a.PKEY,a.HZPKEY,a.GHPKEY,a.JZLX,a.JZZT,a.JZZB,a.HZFB,a.JZJS,a.ISYB,a.ISZZ,a.YYLX,a.ISLG,a.ISGSSJJ,a.HZYBLX,a.JJKS,a.JJRQ,a.JJYS,a.FBRQ,a.ZYNUM,a.WARD,a.ROOM,a.BED,a.KZRQ,a.JSRQ,a.THRY,a.HDYY,a.HDRQ,a.MZNUM,a.CJR,a.CJRQ,a.JGID,
a.JZNO,a.MZNO,a.ZYNO,a.JZKH,a.CARDPKEY,a.JZNL,a.ISJZ,a.ZYLX,a.ZYHZLY,a.ZYYYRQ,a.CYRQ,a.CYYS,a.ZYNOOLD,a.SCZYRQ,a.ISGL,a.ISSJ,b.HZLX,a.GRLX,a.QTGRLX,a.CWFJLX,a.YSLX,a.MQJZINFO,a.ZKRQ,a.RYTJ,a.RYBQ,a.RYJZINFO,a.RYYS,a.RYQK,a.JZZL,
a.JYYJ,a.ZYBZ,a.RYZD,a.RYZDMS,a.ZYBAH,a.RYNL,a.RYXSENLD,a.RYXSENLH,a.RYXSENLS,a.ZYZH,a.JZKLX,a.CRFS,a.OTHERCRFS,a.MAINBLYS,a.MAINBLXS,a.MOTHERJZPKEY,a.ZKDATE,a.RQDATE,b.XM,b.XB,b.CSRQ,b.SFZH,b.ZJLX,b.ZJHM,b.TEL,b.EMAIL,b.PIC,
b.SIGNPIC,b.ZT,b.MZ,b.NL,b.HYZK,b.YBKH,b.ZY,b.GZDW,b.PHONE,b.BGDH,b.ZGGH,b.HZMJ,b.HZJB,b.LXRGX,b.LXR,b.LXRDH,b.LXRZJLX,b.LXRZJHM,b.GJ,b.XZDZ,b.XZDZJGH,b.JGDZ,b.JGDZJGH,b.CSDZ,b.CSDZJGH,b.YBLX,a.ZYYLDYPKEY,a.ZYYLDYZZ,a.ZYYLDYZRYS,
d.SFJE,d.YBZFJE,d.JJZF,d.GRZH,d.YYBC,d.GRPAY,e.JBMC,a.CYBED,ROUND(TO_NUMBER(a.CYRQ -a.JJRQ), 0) as ZYTS ,e1.JBMC as CYJBMC,a.CYQK
from HIS_JZ_BASEINFO a left join HIS_HZINFO b on a.hzpkey=b.pkey and
a.JGID=b.JGID left join HIS_SFZD_ZB c on a.pkey=c.jzpkey
and
a.JGID=c.JGID right join HIS_MZJS_MZFPZB d on
c.pkey=d.GLZDBPKEY and
a.JGID=d.JGID and d.PJZT=1 and
(d.sfzt=0 or d.sfzt=1) left join
HIS_JZ_MZZD e on a.hzpkey=e.hzpkey
and a.pkey=e.jzpkey and
a.JGID=e.JGID and e.SFZZD=1 and
e.zdlx='001'
left join
HIS_JZ_MZZD e1 on a.hzpkey=e1.hzpkey
and a.pkey=e1.jzpkey and
a.JGID=e1.JGID and e1.SFZZD=1 and
e1.zdlx='002'
where a.JGID=? and (a.MOTHERJZPKEY is null or (a.MOTHERJZPKEY is not null and a.ISZK =1)) and
a.JZLX='Z' and a.JZZT='C'
#select#
</sql>
<fields>
<f name="PKEY" type="12" />
<f name="HZPKEY" type="12" />
<f name="GHPKEY" type="12" />
<f name="JZLX" type="12" />
<f name="JZZT" type="12" />
<f name="JZZB" type="12" />
<f name="HZFB" type="12" />
<f name="JZJS" type="12" />
<f name="ISYB" type="12" />
<f name="ISZZ" type="12" />
<f name="YYLX" type="12" />
<f name="ISLG" type="12" />
<f name="ISGSSJJ" type="12" />
<f name="HZYBLX" type="12" />
<f name="JJKS" type="12" />
<f name="JJRQ" type="93" />
<f name="JJYS" type="12" />
<f name="FBRQ" type="93" />
<f name="ZYNUM" type="8" />
<f name="WARD" type="12" />
<f name="ROOM" type="12" />
<f name="BED" type="12" />
<f name="KZRQ" type="93" />
<f name="JSRQ" type="93" />
<f name="THRY" type="12" />
<f name="HDYY" type="12" />
<f name="HDRQ" type="93" />
<f name="MZNUM" type="8" />
<f name="CJR" type="12" />
<f name="CJRQ" type="93" />
<f name="JGID" type="12" />
<f name="JZNO" type="12" />
<f name="MZNO" type="12" />
<f name="ZYNO" type="12" />
<f name="JZKH" type="12" />
<f name="CARDPKEY" type="12" />
<f name="JZNL" type="12" />
<f name="ISJZ" type="12" />
<f name="ZYLX" type="12" />
<f name="ZYHZLY" type="12" />
<f name="ZYYYRQ" type="93" />
<f name="CYRQ" type="93" />
<f name="CYYS" type="12" />
<f name="ZYNOOLD" type="12" />
<f name="SCZYRQ" type="93" />
<f name="ISGL" type="12" />
<f name="ISSJ" type="12" />
<f name="HZLX" type="12" />
<f name="GRLX" type="12" />
<f name="QTGRLX" type="12" />
<f name="CWFJLX" type="12" />
<f name="YSLX" type="12" />
<f name="MQJZINFO" type="12" />
<f name="ZKRQ" type="93" />
<f name="RYTJ" type="12" />
<f name="RYBQ" type="12" />
<f name="RYJZINFO" type="12" />
<f name="RYYS" type="12" />
<f name="RYQK" type="12" />
<f name="JZZL" type="12" />
<f name="JYYJ" type="-5" />
<f name="ZYBZ" type="12" />
<f name="RYZD" type="12" />
<f name="RYZDMS" type="12" />
<f name="ZYBAH" type="12" />
<f name="RYNL" type="12" />
<f name="RYXSENLD" type="-5" />
<f name="RYXSENLH" type="-5" />
<f name="RYXSENLS" type="-5" />
<f name="ZYZH" type="12" />
<f name="JZKLX" type="12" />
<f name="CRFS" type="12" />
<f name="OTHERCRFS" type="12" />
<f name="MAINBLYS" type="12" />
<f name="MAINBLXS" type="12" />
<f name="MOTHERJZPKEY" type="12" />
<f name="ZKDATE" type="93" />
<f name="RQDATE" type="93" />
<f name="XM" type="12" />
<f name="XB" type="12" />
<f name="CSRQ" type="93" />
<f name="SFZH" type="12" />
<f name="ZJLX" type="12" />
<f name="ZJHM" type="12" />
<f name="TEL" type="12" />
<f name="EMAIL" type="12" />
<f name="PIC" type="12" />
<f name="SIGNPIC" type="12" />
<f name="ZT" type="12" />
<f name="MZ" type="12" />
<f name="NL" type="12" />
<f name="HYZK" type="12" />
<f name="YBKH" type="12" />
<f name="ZY" type="12" />
<f name="GZDW" type="12" />
<f name="PHONE" type="12" />
<f name="BGDH" type="12" />
<f name="ZGGH" type="12" />
<f name="HZMJ" type="12" />
<f name="HZJB" type="12" />
<f name="LXRGX" type="12" />
<f name="LXR" type="12" />
<f name="LXRDH" type="12" />
<f name="LXRZJLX" type="12" />
<f name="LXRZJHM" type="12" />
<f name="GJ" type="12" />
<f name="XZDZ" type="12" />
<f name="XZDZJGH" type="12" />
<f name="JGDZ" type="12" />
<f name="JGDZJGH" type="12" />
<f name="CSDZ" type="12" />
<f name="CSDZJGH" type="12" />
<f name="YBLX" type="12" />
<f name="ZYYLDYPKEY" type="12" />
<f name="ZYYLDYZZ" type="12" />
<f name="ZYYLDYZRYS" type="12" />
<f name="SFJE" type="12" />
<f name="YBZFJE" type="12" />
<f name="JJZF" type="12" />
<f name="GRZH" type="12" />
<f name="YYBC" type="12" />
<f name="GRPAY" type="12" />
<f name="JBMC" type="12" />
<f name="CYBED" type="12" />
<f name="ZYTS" type="12" />
<f name="CYJBMC" type="12" />
<f name="CYQK" type="12" />
</fields>
<parameter>
<p>12</p>
<p>93</p>
<p>93</p>
</parameter>
</dao>
<dao id="zyhzAllSfzdDao" log="true" type="1" memo="通过收费明细返回所有账单dao">
<sql>select a.ZDZBPKEY from HIS_SFZD_SFXMXB a left join HIS_SFX b on
a.sfx=b.bm and a.JGID=b.JGID left join HIS_YZ_EXEC c on
a.EXEPKEY=c.pkey and a.JGID=c.JGID where a.JGID=? and
c.jzpkey=? and
a.ZDZBPKEY !=? group by a.ZDZBPKEY
</sql>
<fields>
<f name="ZDZBPKEY" type="12" />
</fields>
<parameter>
<p>12</p>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="zyhzZdzbGlFymxDao" log="true" type="1"
memo="住院患者账单主表关联收费项明细dao">
<sql>
select ''
sel,a.PKEY,a.ZDZBPKEY,a.YZX,a.YZMX,a.SFX,a.SFXDJ,a.SFXSL,a.SFXZKL,a.SFXZFY,a.SFXZKFY,a.HZYBZF,a.HZZFZF,a.JFRQ,a.CJR,a.CJRQ,a.JGID,a.FYDL,a.FYZL,a.EXEPKEY,a.ISHC,a.HCDJPKEY,a.JSZT,a.SFXSJZFY,a.LOCKFLAG,a.SCZT,a.MDTRT_ID,a.SETL_ID,a.KLJSEND,b.ZYZFL,b.BM,b.MC,c.ZXFLAG,d.yzdw,e.gg,d.yzmc,c.zxdw,d.YZXZKS
from HIS_SFZD_SFXMXB a left join HIS_SFX b on a.sfx=b.bm and
a.JGID=b.JGID left join HIS_YZ_EXEC c on a.EXEPKEY=c.pkey
and
a.JGID=c.JGID left join HIS_YZ_MXB d on a.yzmx=d.pkey
and
a.JGID=d.JGID left join HIS_YPXX e on d.yzxpkey=e.bm
where a.JGID=?
and c.hzpkey=? and c.jzpkey=? and a.ZDZBPKEY=?
order by
a.yzmx,a.JFRQ,a.yzx,b.bm
</sql>
<tables>
<table name="HIS_SFZD_SFXMXB" insert="false" update="true"
delete="false">
<primary>PKEY</primary>
<primary>ZDZBPKEY</primary>
<primary>JGID</primary>
</table>
</tables>
<fields>
<f name="SEL" type="1" />
<f name="PKEY" type="12" table="HIS_SFZD_SFXMXB" />
<f name="ZDZBPKEY" type="12" table="HIS_SFZD_SFXMXB" />
<f name="YZX" type="12" table="HIS_SFZD_SFXMXB" />
<f name="YZMX" type="12" table="HIS_SFZD_SFXMXB" />
<f name="SFX" type="12" table="HIS_SFZD_SFXMXB" />
<f name="SFXDJ" type="12" table="HIS_SFZD_SFXMXB" />
<f name="SFXSL" type="12" table="HIS_SFZD_SFXMXB" />
<f name="SFXZKL" type="12" table="HIS_SFZD_SFXMXB" />
<f name="SFXZFY" type="12" table="HIS_SFZD_SFXMXB" />
<f name="SFXZKFY" type="12" table="HIS_SFZD_SFXMXB" />
<f name="HZYBZF" type="12" table="HIS_SFZD_SFXMXB" />
<f name="HZZFZF" type="12" table="HIS_SFZD_SFXMXB" />
<f name="JFRQ" type="93" table="HIS_SFZD_SFXMXB" />
<f name="CJR" type="12" table="HIS_SFZD_SFXMXB" />
<f name="CJRQ" type="93" table="HIS_SFZD_SFXMXB" />
<f name="JGID" type="12" table="HIS_SFZD_SFXMXB" />
<f name="FYDL" type="12" table="HIS_SFZD_SFXMXB" />
<f name="FYZL" type="12" table="HIS_SFZD_SFXMXB" />
<f name="EXEPKEY" type="12" table="HIS_SFZD_SFXMXB" />
<f name="ISHC" type="12" table="HIS_SFZD_SFXMXB" />
<f name="HCDJPKEY" type="12" table="HIS_SFZD_SFXMXB" />
<f name="JSZT" type="12" table="HIS_SFZD_SFXMXB" />
<f name="SFXSJZFY" type="12" table="HIS_SFZD_SFXMXB" />
<f name="LOCKFLAG" type="-5" table="HIS_SFZD_SFXMXB" />
<f name="SCZT" type="12" table="HIS_SFZD_SFXMXB" />
<f name="MDTRT_ID" type="12" table="HIS_SFZD_SFXMXB" />
<f name="SETL_ID" type="12" table="HIS_SFZD_SFXMXB" />
<f name="KLJSEND" type="12" table="HIS_SFZD_SFXMXB" />
<f name="ZYZFL" type="12" />
<f name="BM" type="12" />
<f name="MC" type="12" />
<f name="ZXFLAG" type="12" />
<f name="YZDW" type="12" />
<f name="GG" type="12" />
<f name="YZMC" type="12" />
<f name="ZXDW" type="12" />
<f name="YZXZKS" type="12" />
</fields>
<parameter>
<p>12</p>
<p>12</p>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="zyhzyzmxByZdDao" log="true" type="1"
memo="住院患者账单对应的医嘱明细表dao">
<sql>select
a.PKEY,a.ZDZBPKEY,a.YZX,a.YZMX,a.YZDJ,a.YZSL,a.TFSL,a.YZZFY,a.YZZKFY,a.HZYBZF,a.HZZFZF,a.YZSJ,a.CJR,a.CJRQ,a.JGID,a.CFH,a.SQDTFJE,a.EXEPKEY,a.ISHC,a.HCDJPKEY,a.JSZT,a.LOCKFLAG
from HIS_SFZD_YZMXB a left join HIS_YZ_EXEC c on a.EXEPKEY=c.pkey and
a.JGID=c.JGID where a.JGID=? and c.hzpkey=? and
c.jzpkey=? and
a.ZDZBPKEY=?
</sql>
<tables>
<table name="HIS_SFZD_YZMXB" insert="false" update="true"
delete="false">
<primary>PKEY</primary>
<primary>ZDZBPKEY</primary>
<primary>YZMX</primary>
<primary>JSZT</primary>
<primary>JGID</primary>
</table>
</tables>
<fields>
<f name="PKEY" type="12" table="HIS_SFZD_YZMXB" />
<f name="ZDZBPKEY" type="12" table="HIS_SFZD_YZMXB" />
<f name="YZX" type="12" table="HIS_SFZD_YZMXB" />
<f name="YZMX" type="12" table="HIS_SFZD_YZMXB" />
<f name="YZDJ" type="12" table="HIS_SFZD_YZMXB" />
<f name="YZSL" type="12" table="HIS_SFZD_YZMXB" />
<f name="TFSL" type="12" table="HIS_SFZD_YZMXB" />
<f name="YZZFY" type="12" table="HIS_SFZD_YZMXB" />
<f name="YZZKFY" type="12" table="HIS_SFZD_YZMXB" />
<f name="HZYBZF" type="12" table="HIS_SFZD_YZMXB" />
<f name="HZZFZF" type="12" table="HIS_SFZD_YZMXB" />
<f name="YZSJ" type="93" table="HIS_SFZD_YZMXB" />
<f name="CJR" type="12" table="HIS_SFZD_YZMXB" />
<f name="CJRQ" type="93" table="HIS_SFZD_YZMXB" />
<f name="JGID" type="12" table="HIS_SFZD_YZMXB" />
<f name="CFH" type="12" table="HIS_SFZD_YZMXB" />
<f name="SQDTFJE" type="12" table="HIS_SFZD_YZMXB" />
<f name="EXEPKEY" type="12" table="HIS_SFZD_YZMXB" />
<f name="ISHC" type="12" table="HIS_SFZD_YZMXB" />
<f name="HCDJPKEY" type="12" table="HIS_SFZD_YZMXB" />
<f name="JSZT" type="12" table="HIS_SFZD_YZMXB" />
<f name="LOCKFLAG" type="-5" table="HIS_SFZD_YZMXB" />
</fields>
<parameter>
<p>12</p>
<p>12</p>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="findExecAlreadyInJsDao" log="true" type="1"
memo="查找收费执行项对应的收费项是否已经结算,一般用于判断执行项是否可以被退费用">
<sql>
select count(*) num from HIS_YB_JSB a left join HIS_YB_SCMX b on
a.MDTRT_ID=b.MDTRT_ID and a.SETL_ID=b.SETL_ID left join
HIS_SFZD_SFXMXB c on b.FEEDETL_SN=c.pkey and b.SETL_ID=c.SETL_ID
where a.JGID=? and a.cxzt='0' and b.zt='0' and c.EXEPKEY=?
</sql>
<fields>
<f name="NUM" type="4" />
</fields>
<parameter>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="zyhzsfxmxPdSfxPkeyDao" log="true" type="1"
memo="住院患者收费项明细同时增加收费项jzpkeydao">
<sql>
select '' sel,to_char(jfrq,'YYYY-MM-DD')
jfrqstr,PKEY,ZDZBPKEY,YZX,YZMX,SFX,SFXDJ,SFXSL,SFXZKL,SFXZFY,SFXZKFY,HZYBZF,HZZFZF,JFRQ,CJR,CJRQ,JGID,FYDL,FYZL,EXEPKEY,ISHC,HCDJPKEY,JSZT,ZYZFL,BM,MC,ZXFLAG,yzdw,gg,yzmc,zxdw,LOCKFLAG,HZPKEY,JZPKEY
from
(
select
a.PKEY,a.ZDZBPKEY,a.YZX,a.YZMX,a.SFX,a.SFXDJ,a.SFXSL,a.SFXZKL,a.SFXZFY,a.SFXZKFY,a.HZYBZF,a.HZZFZF,a.JFRQ,a.CJR,a.CJRQ,a.JGID,a.FYDL,a.FYZL,a.EXEPKEY,a.ISHC,a.HCDJPKEY,a.JSZT,b.ZYZFL,b.BM,b.MC,c.ZXFLAG,d.yzdw,e.gg,d.yzmc,c.zxdw,a.LOCKFLAG,a.HZPKEY,a.JZPKEY
from HIS_SFZD_SFXMXB a left join HIS_SFX b on a.sfx=b.bm and
a.JGID=b.JGID left join HIS_YZ_EXEC c on a.EXEPKEY=c.pkey
and
a.JGID=c.JGID left join HIS_YZ_MXB d on a.yzmx=d.pkey
and
a.JGID=d.JGID left join HIS_YPXX e on d.yzxpkey=e.bm
where (b.gllx is
null or b.gllx != 'W') and a.JGID=? and
c.hzpkey=? and c.jzpkey=?
union all
select
a.PKEY,a.ZDZBPKEY,a.YZX,a.YZMX,a.SFX,a.SFXDJ,a.SFXSL,a.SFXZKL,a.SFXZFY,a.SFXZKFY,a.HZYBZF,a.HZZFZF,a.JFRQ,a.CJR,a.CJRQ,a.JGID,a.FYDL,a.FYZL,a.EXEPKEY,a.ISHC,a.HCDJPKEY,a.JSZT,b.ZYZFL,b.BM,b.MC,c.ZXFLAG,d.yzdw,e.wzgg
gg,d.yzmc,c.zxdw,a.LOCKFLAG,a.HZPKEY,a.JZPKEY from HIS_SFZD_SFXMXB a
left join HIS_SFX b on a.sfx=b.bm and a.JGID=b.JGID left
join
HIS_YZ_EXEC c on a.EXEPKEY=c.pkey and a.JGID=c.JGID
left join
HIS_YZ_MXB d on a.yzmx=d.pkey and a.JGID=d.JGID
left join HIS_MMS_WZZD
e on b.glbm=e.wzbm and b.JGID=e.JGID
where b.gllx = 'W' and a.JGID=?
and c.hzpkey=? and c.jzpkey=?
)order by jfrqstr,zyzfl,yzx,bm
</sql>
<tables>
<table name="HIS_SFZD_SFXMXB" insert="true" update="true"
delete="true">
<primary>PKEY</primary>
<primary>ZDZBPKEY</primary>
<primary>JGID</primary>
</table>
</tables>
<fields>
<f name="SEL" type="1" />
<f name="jfrqstr" type="12" />
<f name="PKEY" type="12" table="HIS_SFZD_SFXMXB" />
<f name="ZDZBPKEY" type="12" table="HIS_SFZD_SFXMXB" />
<f name="YZX" type="12" table="HIS_SFZD_SFXMXB" />
<f name="YZMX" type="12" table="HIS_SFZD_SFXMXB" />
<f name="SFX" type="12" table="HIS_SFZD_SFXMXB" />
<f name="SFXDJ" type="12" table="HIS_SFZD_SFXMXB" />
<f name="SFXSL" type="12" table="HIS_SFZD_SFXMXB" />
<f name="SFXZKL" type="12" table="HIS_SFZD_SFXMXB" />
<f name="SFXZFY" type="12" table="HIS_SFZD_SFXMXB" />
<f name="SFXZKFY" type="12" table="HIS_SFZD_SFXMXB" />
<f name="HZYBZF" type="12" table="HIS_SFZD_SFXMXB" />
<f name="HZZFZF" type="12" table="HIS_SFZD_SFXMXB" />
<f name="JFRQ" type="93" table="HIS_SFZD_SFXMXB" />
<f name="CJR" type="12" table="HIS_SFZD_SFXMXB" />
<f name="CJRQ" type="93" table="HIS_SFZD_SFXMXB" />
<f name="JGID" type="12" table="HIS_SFZD_SFXMXB" />
<f name="FYDL" type="12" table="HIS_SFZD_SFXMXB" />
<f name="FYZL" type="12" table="HIS_SFZD_SFXMXB" />
<f name="EXEPKEY" type="12" table="HIS_SFZD_SFXMXB" />
<f name="ISHC" type="12" table="HIS_SFZD_SFXMXB" />
<f name="HCDJPKEY" type="12" table="HIS_SFZD_SFXMXB" />
<f name="JSZT" type="12" table="HIS_SFZD_SFXMXB" />
<f name="ZYZFL" type="12" />
<f name="BM" type="12" />
<f name="MC" type="12" />
<f name="ZXFLAG" type="12" />
<f name="YZDW" type="12" />
<f name="GG" type="12" />
<f name="YZMC" type="12" />
<f name="ZXDW" type="12" />
<f name="LOCKFLAG" type="-5" table="HIS_SFZD_SFXMXB" />
<f name="HZPKEY" type="12" table="HIS_SFZD_SFXMXB" />
<f name="JZPKEY" type="12" table="HIS_SFZD_SFXMXB" />
</fields>
<parameter>
<p>12</p>
<p>12</p>
<p>12</p>
<p>12</p>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="yjzxToZxMxByJzpkeyDao" log="true" type="1"
meom="个人医技执行dao,用于提交医嘱执行明细的状态">
<sql>
select
a.PKEY,a.JZPKEY,a.HZPKEY,a.ZYNO,a.YZMX,a.YZXPKEY,a.ZXFLAG,a.ZXR,a.ZXTIME,a.ZXRKS,a.ZXRWARD,a.PRINTFLAG,a.PRINTMAN,a.PRINTTIME,a.BBCJFLAG,a.BBCJMAN,a.BBCJTIME,a.BBTM,a.QUERYCODE,a.SFFLAG,a.ZXSL,a.ZXDW,a.ZXJE,a.YZBEGINSJ,a.YZZXBEGINSJ,a.YZTZSJ,a.YZMS,a.JZBZ,a.ZDZBPKEY,a.CXR,a.CXSJ,a.TZR,a.TZSJ,a.CJR,a.CJRQ,a.XGR,a.XGRQ,a.JGID,a.CFH,b.YZMC,a.ISACTION,d.xm,d.xb,c.JZNL,c.jzlx,c.jzzt,b.YZZT,b.YZXZYS,b.YZXZSJ,b.YZBEGINZXSJ,b.YZZXKS,c.ZYBAH,c.JZKH,b.YZJE,b.SQDTFJE,c.jjks,c.bed,b.SQDTYPE
from HIS_YZ_EXEC a left join HIS_YZ_MXB b on a.YZMX=b.pkey and
a.JGID=b.JGID left join HIS_JZ_BASEINFO c on
a.jzpkey=c.pkey and
a.JGID=c.JGID left join HIS_HZINFO d on
a.hzpkey=d.pkey and
a.JGID=d.JGID where a.JGID=? and
b.YZLX='5' and b.SQDTYPE !='007' and
a.ZXFLAG=1 and (c.JZZT='J' or
c.JZZT='Z') and (((c.JZLX='Z' or
(c.JZLX='J' and c.SFLG='1')) and
(b.YZZT='2' or b.YZZT='3' or
b.YZZT='4' or b.YZZT='5' or
b.YZZT='41')) or (c.JZLX !='Z' and
b.YZSFZT=1)) and a.hzpkey=? and
a.jzpkey=? and a.ISACTION=1 order by
c.zyno
</sql>
<tables>
<table name="HIS_YZ_EXEC" insert="false" update="true"
delete="false">
<primary>PKEY</primary>
<primary>JZPKEY</primary>
<primary>SFFLAG</primary>
<primary>HZPKEY</primary>
<primary>ZXFLAG</primary>
<primary>ISACTION</primary>
</table>
</tables>
<fields>
<f name="PKEY" type="12" table="HIS_YZ_EXEC" />
<f name="JZPKEY" type="12" table="HIS_YZ_EXEC" />
<f name="HZPKEY" type="12" table="HIS_YZ_EXEC" />
<f name="ZYNO" type="12" table="HIS_YZ_EXEC" />
<f name="YZMX" type="12" table="HIS_YZ_EXEC" />
<f name="YZXPKEY" type="12" table="HIS_YZ_EXEC" />
<f name="ZXFLAG" type="12" table="HIS_YZ_EXEC" />
<f name="ZXR" type="12" table="HIS_YZ_EXEC" />
<f name="ZXTIME" type="93" table="HIS_YZ_EXEC" />
<f name="ZXRKS" type="12" table="HIS_YZ_EXEC" />
<f name="ZXRWARD" type="12" table="HIS_YZ_EXEC" />
<f name="PRINTFLAG" type="12" table="HIS_YZ_EXEC" />
<f name="PRINTMAN" type="12" table="HIS_YZ_EXEC" />
<f name="PRINTTIME" type="93" table="HIS_YZ_EXEC" />
<f name="BBCJFLAG" type="12" table="HIS_YZ_EXEC" />
<f name="BBCJMAN" type="12" table="HIS_YZ_EXEC" />
<f name="BBCJTIME" type="93" table="HIS_YZ_EXEC" />
<f name="BBTM" type="12" table="HIS_YZ_EXEC" />
<f name="QUERYCODE" type="12" table="HIS_YZ_EXEC" />
<f name="SFFLAG" type="12" table="HIS_YZ_EXEC" />
<f name="ZXSL" type="8" table="HIS_YZ_EXEC" />
<f name="ZXDW" type="12" table="HIS_YZ_EXEC" />
<f name="ZXJE" type="8" table="HIS_YZ_EXEC" />
<f name="YZBEGINSJ" type="93" table="HIS_YZ_EXEC" />
<f name="YZZXBEGINSJ" type="93" table="HIS_YZ_EXEC" />
<f name="YZTZSJ" type="93" table="HIS_YZ_EXEC" />
<f name="YZMS" type="12" table="HIS_YZ_EXEC" />
<f name="JZBZ" type="12" table="HIS_YZ_EXEC" />
<f name="ZDZBPKEY" type="12" table="HIS_YZ_EXEC" />
<f name="CXR" type="12" table="HIS_YZ_EXEC" />
<f name="CXSJ" type="93" table="HIS_YZ_EXEC" />
<f name="TZR" type="12" table="HIS_YZ_EXEC" />
<f name="TZSJ" type="93" table="HIS_YZ_EXEC" />
<f name="CJR" type="12" table="HIS_YZ_EXEC" />
<f name="CJRQ" type="93" table="HIS_YZ_EXEC" />
<f name="XGR" type="12" table="HIS_YZ_EXEC" />
<f name="XGRQ" type="93" table="HIS_YZ_EXEC" />
<f name="JGID" type="12" table="HIS_YZ_EXEC" />
<f name="CFH" type="12" table="HIS_YZ_EXEC" />
<f name="YZMC" type="12" table="HIS_YZ_EXEC" />
<f name="ISACTION" type="12" table="HIS_YZ_EXEC" />
<f name="XM" type="12" />
<f name="XB" type="12" />
<f name="JZNL" type="12" />
<f name="JZLX" type="12" />
<f name="JZZT" type="12" />
<f name="YZZT" type="12" />
<f name="YZXZYS" type="12" />
<f name="YZXZSJ" type="93" />
<f name="YZBEGINZXSJ" type="93" />
<f name="YZZXKS" type="12" />
<f name="ZYBAH" type="12" />
<f name="JZKH" type="12" />
<f name="YZJE" type="12" />
<f name="SQDTFJE" type="12" />
<f name="JJKS" type="12" />
<f name="bed" type="12" />
<f name="SQDTYPE" type="12" />
</fields>
<parameter>
<p>12</p>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="selectYzExecByPkeyDao" log="true" type="1">
<sql>
select
PKEY,JZPKEY,HZPKEY,ZYNO,YZMX,YZXPKEY,ZXFLAG,ZXR,ZXTIME,ZXRKS,ZXRWARD,PRINTFLAG,PRINTMAN,PRINTTIME,BBCJFLAG,BBCJMAN,BBCJTIME,BBTM,QUERYCODE,SFFLAG,ZXSL,ZXDW,ZXJE,YZBEGINSJ,YZZXBEGINSJ,YZTZSJ,YZMS,JZBZ,ZDZBPKEY,CXR,CXSJ,TZR,TZSJ,CJR,CJRQ,XGR,XGRQ,JGID,CFH,YZMC,ISACTION,TYDNUM,YFBDZYZPKEY,BDYF,BDEXECPKEY,BDZC,CWJS,SFXSYZ,LOCKFLAG,LISCF
from HIS_YZ_EXEC where JGID=? and pkey=?
</sql>
<tables>
<table name="HIS_YZ_EXEC" insert="true" update="true"
delete="true">
<primary>PKEY</primary>
<primary>JGID</primary>
</table>
</tables>
<fields>
<f name="PKEY" type="12" table="HIS_YZ_EXEC" />
<f name="JZPKEY" type="12" table="HIS_YZ_EXEC" />
<f name="HZPKEY" type="12" table="HIS_YZ_EXEC" />
<f name="ZYNO" type="12" table="HIS_YZ_EXEC" />
<f name="YZMX" type="12" table="HIS_YZ_EXEC" />
<f name="YZXPKEY" type="12" table="HIS_YZ_EXEC" />
<f name="ZXFLAG" type="12" table="HIS_YZ_EXEC" />
<f name="ZXR" type="12" table="HIS_YZ_EXEC" />
<f name="ZXTIME" type="93" table="HIS_YZ_EXEC" />
<f name="ZXRKS" type="12" table="HIS_YZ_EXEC" />
<f name="ZXRWARD" type="12" table="HIS_YZ_EXEC" />
<f name="PRINTFLAG" type="12" table="HIS_YZ_EXEC" />
<f name="PRINTMAN" type="12" table="HIS_YZ_EXEC" />
<f name="PRINTTIME" type="93" table="HIS_YZ_EXEC" />
<f name="BBCJFLAG" type="12" table="HIS_YZ_EXEC" />
<f name="BBCJMAN" type="12" table="HIS_YZ_EXEC" />
<f name="BBCJTIME" type="93" table="HIS_YZ_EXEC" />
<f name="BBTM" type="12" table="HIS_YZ_EXEC" />
<f name="QUERYCODE" type="12" table="HIS_YZ_EXEC" />
<f name="SFFLAG" type="12" table="HIS_YZ_EXEC" />
<f name="ZXSL" type="8" table="HIS_YZ_EXEC" />
<f name="ZXDW" type="12" table="HIS_YZ_EXEC" />
<f name="ZXJE" type="8" table="HIS_YZ_EXEC" />
<f name="YZBEGINSJ" type="93" table="HIS_YZ_EXEC" />
<f name="YZZXBEGINSJ" type="93" table="HIS_YZ_EXEC" />
<f name="YZTZSJ" type="93" table="HIS_YZ_EXEC" />
<f name="YZMS" type="12" table="HIS_YZ_EXEC" />
<f name="JZBZ" type="12" table="HIS_YZ_EXEC" />
<f name="ZDZBPKEY" type="12" table="HIS_YZ_EXEC" />
<f name="CXR" type="12" table="HIS_YZ_EXEC" />
<f name="CXSJ" type="93" table="HIS_YZ_EXEC" />
<f name="TZR" type="12" table="HIS_YZ_EXEC" />
<f name="TZSJ" type="93" table="HIS_YZ_EXEC" />
<f name="CJR" type="12" table="HIS_YZ_EXEC" />
<f name="CJRQ" type="93" table="HIS_YZ_EXEC" />
<f name="XGR" type="12" table="HIS_YZ_EXEC" />
<f name="XGRQ" type="93" table="HIS_YZ_EXEC" />
<f name="JGID" type="12" table="HIS_YZ_EXEC" />
<f name="CFH" type="12" table="HIS_YZ_EXEC" />
<f name="YZMC" type="12" table="HIS_YZ_EXEC" />
<f name="ISACTION" type="12" table="HIS_YZ_EXEC" />
<f name="TYDNUM" type="8" table="HIS_YZ_EXEC" />
<f name="YFBDZYZPKEY" type="12" table="HIS_YZ_EXEC" />
<f name="BDYF" type="12" table="HIS_YZ_EXEC" />
<f name="BDEXECPKEY" type="12" table="HIS_YZ_EXEC" />
<f name="BDZC" type="12" table="HIS_YZ_EXEC" />
<f name="CWJS" type="12" table="HIS_YZ_EXEC" />
<f name="SFXSYZ" type="12" table="HIS_YZ_EXEC" />
<f name="LOCKFLAG" type="-5" table="HIS_YZ_EXEC" />
<f name="LISCF" type="12" table="HIS_YZ_EXEC" />
</fields>
<parameter>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="zyhzfindforLeaveHosByZysfDao" log="true" type="1"
memo="进行住院收费的住院结算的患者查询dao">
<sql>
select
a.PKEY,a.HZPKEY,a.GHPKEY,a.JZLX,a.JZZT,a.JZZB,a.HZFB,a.JZJS,a.ISYB,a.ISZZ,a.YYLX,a.ISLG,a.ISGSSJJ,a.HZYBLX,a.JJKS,a.JJRQ,a.JJYS,a.FBRQ,a.ZYNUM,a.WARD,a.ROOM,a.BED,a.KZRQ,a.JSRQ,
a.THRY,a.HDYY,a.HDRQ,a.MZNUM,a.CJR,a.CJRQ,a.JGID,a.JZNO,a.MZNO,a.ZYNO,a.JZKH,a.CARDPKEY,a.JZNL,a.ISJZ,a.ZYLX,a.ZYHZLY,a.ZYYYRQ,a.CYRQ,a.CYYS,a.ZYNOOLD,a.SCZYRQ,a.ISGL,
a.ISSJ,a.HZLX,a.GRLX,a.QTGRLX,a.CWFJLX,a.YSLX,a.MQJZINFO,a.ZKRQ,a.RYTJ,a.RYBQ,a.RYJZINFO,a.RYYS,a.RYQK,a.JZZL,a.JYYJ,a.ZYBZ,a.RYZD,a.RYZDMS,a.ZYBAH,a.RYNL,a.RYXSENLD,
a.RYXSENLH,a.RYXSENLS,a.ZYZH,a.JZKLX,a.CRFS,a.OTHERCRFS,a.MAINBLYS,a.MAINBLXS,a.MOTHERJZPKEY,a.ZKDATE,a.RQDATE,a.CYKS,a.CYWARD,a.CYBED,b.xm,b.xb,b.nl,a.HZZYZT,
a.ISZZJS,a.ZZJSSJ,a.ZZJSR,a.ISYLJS,a.YLJSR,a.YLJSSJ,a.ISZZCWJS,a.CWJSR,a.CWJSSJ,a.ZDZBPKEY,a.SFLSTD,
r.JJX_BQ_NAMES
from HIS_JZ_BASEINFO a left join HIS_HZINFO b on
a.JGID=b.JGID and
a.hzpkey=b.pkey left join HIS_BQCW c on
a.bed=c.pkey and a.JGID=c.JGID
left join HIS_BQ d on
a.ward=d.pkey and a.JGID=d.JGID
left join HIS_HIE_RYBQ r on a.JGID=r.JGID and a.PKEY=r.JZPKEY and r.HJD_FLAG='1'
where a.MOTHERJZPKEY is null and a.JGID=?
#tj#
order by #order#d.xh,c.bm,b.zyno,a.zynum desc
</sql>
<tables>
<table name="HIS_JZ_BASEINFO" insert="true" update="true"
delete="true">
<primary>PKEY</primary>
<primary>HZPKEY</primary>
<primary>JGID</primary>
</table>
</tables>
<fields>
<f name="PKEY" type="12" table="HIS_JZ_BASEINFO" />
<f name="HZPKEY" type="12" table="HIS_JZ_BASEINFO" />
<f name="GHPKEY" type="12" table="HIS_JZ_BASEINFO" />
<f name="JZLX" type="12" table="HIS_JZ_BASEINFO" />
<f name="JZZT" type="12" table="HIS_JZ_BASEINFO" />
<f name="JZZB" type="12" table="HIS_JZ_BASEINFO" />
<f name="HZFB" type="12" table="HIS_JZ_BASEINFO" />
<f name="JZJS" type="12" table="HIS_JZ_BASEINFO" />
<f name="ISYB" type="12" table="HIS_JZ_BASEINFO" />
<f name="ISZZ" type="12" table="HIS_JZ_BASEINFO" />
<f name="YYLX" type="12" table="HIS_JZ_BASEINFO" />
<f name="ISLG" type="12" table="HIS_JZ_BASEINFO" />
<f name="ISGSSJJ" type="12" table="HIS_JZ_BASEINFO" />
<f name="HZYBLX" type="12" table="HIS_JZ_BASEINFO" />
<f name="JJKS" type="12" table="HIS_JZ_BASEINFO" />
<f name="JJRQ" type="93" table="HIS_JZ_BASEINFO" />
<f name="JJYS" type="12" table="HIS_JZ_BASEINFO" />
<f name="FBRQ" type="93" table="HIS_JZ_BASEINFO" />
<f name="ZYNUM" type="8" table="HIS_JZ_BASEINFO" />
<f name="WARD" type="12" table="HIS_JZ_BASEINFO" />
<f name="ROOM" type="12" table="HIS_JZ_BASEINFO" />
<f name="BED" type="12" table="HIS_JZ_BASEINFO" />
<f name="KZRQ" type="93" table="HIS_JZ_BASEINFO" />
<f name="JSRQ" type="93" table="HIS_JZ_BASEINFO" />
<f name="THRY" type="12" table="HIS_JZ_BASEINFO" />
<f name="HDYY" type="12" table="HIS_JZ_BASEINFO" />
<f name="HDRQ" type="93" table="HIS_JZ_BASEINFO" />
<f name="MZNUM" type="8" table="HIS_JZ_BASEINFO" />
<f name="CJR" type="12" table="HIS_JZ_BASEINFO" />
<f name="CJRQ" type="93" table="HIS_JZ_BASEINFO" />
<f name="JGID" type="12" table="HIS_JZ_BASEINFO" />
<f name="JZNO" type="12" table="HIS_JZ_BASEINFO" />
<f name="MZNO" type="12" table="HIS_JZ_BASEINFO" />
<f name="ZYNO" type="12" table="HIS_JZ_BASEINFO" />
<f name="JZKH" type="12" table="HIS_JZ_BASEINFO" />
<f name="CARDPKEY" type="12" table="HIS_JZ_BASEINFO" />
<f name="JZNL" type="12" table="HIS_JZ_BASEINFO" />
<f name="ISJZ" type="12" table="HIS_JZ_BASEINFO" />
<f name="ZYLX" type="12" table="HIS_JZ_BASEINFO" />
<f name="ZYHZLY" type="12" table="HIS_JZ_BASEINFO" />
<f name="ZYYYRQ" type="93" table="HIS_JZ_BASEINFO" />
<f name="CYRQ" type="93" table="HIS_JZ_BASEINFO" />
<f name="CYYS" type="12" table="HIS_JZ_BASEINFO" />
<f name="ZYNOOLD" type="12" table="HIS_JZ_BASEINFO" />
<f name="SCZYRQ" type="93" table="HIS_JZ_BASEINFO" />
<f name="ISGL" type="12" table="HIS_JZ_BASEINFO" />
<f name="ISSJ" type="12" table="HIS_JZ_BASEINFO" />
<f name="HZLX" type="12" table="HIS_JZ_BASEINFO" />
<f name="GRLX" type="12" table="HIS_JZ_BASEINFO" />
<f name="QTGRLX" type="12" table="HIS_JZ_BASEINFO" />
<f name="CWFJLX" type="12" table="HIS_JZ_BASEINFO" />
<f name="YSLX" type="12" table="HIS_JZ_BASEINFO" />
<f name="MQJZINFO" type="12" table="HIS_JZ_BASEINFO" />
<f name="ZKRQ" type="93" table="HIS_JZ_BASEINFO" />
<f name="RYTJ" type="12" table="HIS_JZ_BASEINFO" />
<f name="RYBQ" type="12" table="HIS_JZ_BASEINFO" />
<f name="RYJZINFO" type="12" table="HIS_JZ_BASEINFO" />
<f name="RYYS" type="12" table="HIS_JZ_BASEINFO" />
<f name="RYQK" type="12" table="HIS_JZ_BASEINFO" />
<f name="JZZL" type="12" table="HIS_JZ_BASEINFO" />
<f name="JYYJ" type="-5" table="HIS_JZ_BASEINFO" />
<f name="ZYBZ" type="12" table="HIS_JZ_BASEINFO" />
<f name="RYZD" type="12" table="HIS_JZ_BASEINFO" />
<f name="RYZDMS" type="12" table="HIS_JZ_BASEINFO" />
<f name="ZYBAH" type="12" table="HIS_JZ_BASEINFO" />
<f name="RYNL" type="12" table="HIS_JZ_BASEINFO" />
<f name="RYXSENLD" type="-5" table="HIS_JZ_BASEINFO" />
<f name="RYXSENLH" type="-5" table="HIS_JZ_BASEINFO" />
<f name="RYXSENLS" type="-5" table="HIS_JZ_BASEINFO" />
<f name="ZYZH" type="12" table="HIS_JZ_BASEINFO" />
<f name="JZKLX" type="12" table="HIS_JZ_BASEINFO" />
<f name="CRFS" type="12" table="HIS_JZ_BASEINFO" />
<f name="OTHERCRFS" type="12" table="HIS_JZ_BASEINFO" />
<f name="MAINBLYS" type="12" table="HIS_JZ_BASEINFO" />
<f name="MAINBLXS" type="12" table="HIS_JZ_BASEINFO" />
<f name="MOTHERJZPKEY" type="12" table="HIS_JZ_BASEINFO" />
<f name="ZKDATE" type="93" table="HIS_JZ_BASEINFO" />
<f name="RQDATE" type="93" table="HIS_JZ_BASEINFO" />
<f name="CYKS" type="12" table="HIS_JZ_BASEINFO" />
<f name="CYWARD" type="12" table="HIS_JZ_BASEINFO" />
<f name="CYBED" type="12" table="HIS_JZ_BASEINFO" />
<f name="xm" type="12" />
<f name="xb" type="12" />
<f name="nl" type="12" />
<f name="HZZYZT" type="12" table="HIS_JZ_BASEINFO" />
<f name="ISZZJS" type="12" table="HIS_JZ_BASEINFO" />
<f name="ZZJSSJ" type="93" table="HIS_JZ_BASEINFO" />
<f name="ZZJSR" type="12" table="HIS_JZ_BASEINFO" />
<f name="ISYLJS" type="12" table="HIS_JZ_BASEINFO" />
<f name="YLJSR" type="12" table="HIS_JZ_BASEINFO" />
<f name="YLJSSJ" type="93" table="HIS_JZ_BASEINFO" />
<f name="ISZZCWJS" type="12" table="HIS_JZ_BASEINFO" />
<f name="CWJSR" type="12" table="HIS_JZ_BASEINFO" />
<f name="CWJSSJ" type="93" table="HIS_JZ_BASEINFO" />
<f name="ZDZBPKEY" type="12" table="HIS_JZ_BASEINFO" />
<f name="SFLSTD" type="12" table="HIS_JZ_BASEINFO" />
<f name="JJX_BQ_NAMES" type="12" />
</fields>
<parameter>
<p>12</p>
<p>93</p>
<p>93</p>
</parameter>
</dao>
<dao id="zyhzzdsfxmxbDao_ye" log="true" type="1"
memo="住院患者账单生成用的收费项明细dao_依据母亲查找婴儿">
<sql>select
a.PKEY,a.ZDZBPKEY,a.YZX,a.YZMX,a.SFX,a.SFXDJ,a.SFXSL,a.SFXZKL,a.SFXZFY,a.SFXZKFY,a.HZYBZF,a.HZZFZF,a.JFRQ,a.CJR,a.CJRQ,a.JGID,a.FYDL,a.FYZL,a.EXEPKEY,a.ISHC,a.HCDJPKEY,a.JSZT,b.ZYZFL,b.BM,b.MC,a.LOCKFLAG,a.SFXSJZFY
from HIS_SFZD_SFXMXB a left join HIS_SFX b on a.sfx=b.bm and
a.JGID=b.JGID left join HIS_YZ_EXEC c on a.EXEPKEY=c.pkey
and
a.JGID=c.JGID where a.JGID=? and c.hzpkey=? and
c.jzpkey=? and
(a.ZDZBPKEY = '空' or a.ZDZBPKEY like ?) order by b.bm,a.JFRQ
</sql>
<tables>
<table name="HIS_SFZD_SFXMXB" insert="false" update="true"
delete="false">
<primary>PKEY</primary>
<primary>ZDZBPKEY</primary>
<primary>YZMX</primary>
<primary>JSZT</primary>
<primary>JGID</primary>
</table>
</tables>
<fields>
<f name="PKEY" type="12" table="HIS_SFZD_SFXMXB" />
<f name="ZDZBPKEY" type="12" table="HIS_SFZD_SFXMXB" />
<f name="YZX" type="12" table="HIS_SFZD_SFXMXB" />
<f name="YZMX" type="12" table="HIS_SFZD_SFXMXB" />
<f name="SFX" type="12" table="HIS_SFZD_SFXMXB" />
<f name="SFXDJ" type="12" table="HIS_SFZD_SFXMXB" />
<f name="SFXSL" type="12" table="HIS_SFZD_SFXMXB" />
<f name="SFXZKL" type="12" table="HIS_SFZD_SFXMXB" />
<f name="SFXZFY" type="12" table="HIS_SFZD_SFXMXB" />
<f name="SFXZKFY" type="12" table="HIS_SFZD_SFXMXB" />
<f name="HZYBZF" type="12" table="HIS_SFZD_SFXMXB" />
<f name="HZZFZF" type="12" table="HIS_SFZD_SFXMXB" />
<f name="JFRQ" type="93" table="HIS_SFZD_SFXMXB" />
<f name="CJR" type="12" table="HIS_SFZD_SFXMXB" />
<f name="CJRQ" type="93" table="HIS_SFZD_SFXMXB" />
<f name="JGID" type="12" table="HIS_SFZD_SFXMXB" />
<f name="FYDL" type="12" table="HIS_SFZD_SFXMXB" />
<f name="FYZL" type="12" table="HIS_SFZD_SFXMXB" />
<f name="EXEPKEY" type="12" table="HIS_SFZD_SFXMXB" />
<f name="ISHC" type="12" table="HIS_SFZD_SFXMXB" />
<f name="HCDJPKEY" type="12" table="HIS_SFZD_SFXMXB" />
<f name="JSZT" type="12" table="HIS_SFZD_SFXMXB" />
<f name="ZYZFL" type="12" />
<f name="BM" type="12" />
<f name="MC" type="12" />
<f name="LOCKFLAG" type="-5" table="HIS_SFZD_SFXMXB" />
<f name="SFXSJZFY" type="12" table="HIS_SFZD_SFXMXB" />
</fields>
<parameter>
<p>12</p>
<p>12</p>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="zyhzyzmxbDao_ye" log="true" type="1"
memo="住院患者账单生成用的医嘱明细表dao_依据母亲去查找婴儿">
<sql>select
a.PKEY,a.ZDZBPKEY,a.YZX,a.YZMX,a.YZDJ,a.YZSL,a.TFSL,a.YZZFY,a.YZZKFY,a.HZYBZF,a.HZZFZF,a.YZSJ,a.CJR,a.CJRQ,a.JGID,a.CFH,a.SQDTFJE,a.EXEPKEY,a.ISHC,a.HCDJPKEY,a.JSZT,a.LOCKFLAG
from HIS_SFZD_YZMXB a left join HIS_YZ_EXEC c on a.EXEPKEY=c.pkey and
a.JGID=c.JGID where a.JGID=? and c.hzpkey=? and
c.jzpkey=? and
(a.ZDZBPKEY like ? or a.ZDZBPKEY='空') order by a.YZSJ
</sql>
<tables>
<table name="HIS_SFZD_YZMXB" insert="false" update="true"
delete="false">
<primary>PKEY</primary>
<primary>ZDZBPKEY</primary>
<primary>YZMX</primary>
<primary>JSZT</primary>
<primary>JGID</primary>
</table>
</tables>
//PKEY,ZDZBPKEY,YZX,YZMX,YZDJ,YZSL,TFSL,YZZFY,YZZKFY,HZYBZF,HZZFZF,YZSJ,CJR,CJRQ,JGID,CFH,SQDTFJE,EXEPKEY,ISHC,HCDJPKEY,JSZT
<fields>
<f name="PKEY" type="12" table="HIS_SFZD_YZMXB" />
<f name="ZDZBPKEY" type="12" table="HIS_SFZD_YZMXB" />
<f name="YZX" type="12" table="HIS_SFZD_YZMXB" />
<f name="YZMX" type="12" table="HIS_SFZD_YZMXB" />
<f name="YZDJ" type="12" table="HIS_SFZD_YZMXB" />
<f name="YZSL" type="12" table="HIS_SFZD_YZMXB" />
<f name="TFSL" type="12" table="HIS_SFZD_YZMXB" />
<f name="YZZFY" type="12" table="HIS_SFZD_YZMXB" />
<f name="YZZKFY" type="12" table="HIS_SFZD_YZMXB" />
<f name="HZYBZF" type="12" table="HIS_SFZD_YZMXB" />
<f name="HZZFZF" type="12" table="HIS_SFZD_YZMXB" />
<f name="YZSJ" type="93" table="HIS_SFZD_YZMXB" />
<f name="CJR" type="12" table="HIS_SFZD_YZMXB" />
<f name="CJRQ" type="93" table="HIS_SFZD_YZMXB" />
<f name="JGID" type="12" table="HIS_SFZD_YZMXB" />
<f name="CFH" type="12" table="HIS_SFZD_YZMXB" />
<f name="SQDTFJE" type="12" table="HIS_SFZD_YZMXB" />
<f name="EXEPKEY" type="12" table="HIS_SFZD_YZMXB" />
<f name="ISHC" type="12" table="HIS_SFZD_YZMXB" />
<f name="HCDJPKEY" type="12" table="HIS_SFZD_YZMXB" />
<f name="JSZT" type="12" table="HIS_SFZD_YZMXB" />
<f name="LOCKFLAG" type="-5" table="HIS_SFZD_YZMXB" />
</fields>
<parameter>
<p>12</p>
<p>12</p>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="cancelexecYzmxDao2" log="true" type="1" memo="取消医技执行关联账单医嘱项dao">
<sql> select
PKEY,ZDZBPKEY,YZX,YZMX,YZDJ,YZSL,TFSL,YZZFY,YZZKFY,HZYBZF,HZZFZF,YZSJ,CJR,CJRQ,JGID,CFH,SQDTFJE,EXEPKEY,ISHC,HCDJPKEY,JSZT,YZSJZFY,LOCKFLAG,YZDW,HZPKEY,JZPKEY
from HIS_SFZD_YZMXB where JGID=? and EXEPKEY=? and ISHC=0 and JSZT=1
</sql>
<tables>
<table name="HIS_SFZD_YZMXB" insert="true" update="true"
delete="true">
<primary>EXEPKEY</primary>
<primary>PKEY</primary>
<primary>YZX</primary>
<primary>YZMX</primary>
<primary>JGID</primary>
</table>
</tables>
<fields>
<f name="PKEY" type="12" table="HIS_SFZD_YZMXB" />
<f name="ZDZBPKEY" type="12" table="HIS_SFZD_YZMXB" />
<f name="YZX" type="12" table="HIS_SFZD_YZMXB" />
<f name="YZMX" type="12" table="HIS_SFZD_YZMXB" />
<f name="YZDJ" type="12" table="HIS_SFZD_YZMXB" />
<f name="YZSL" type="12" table="HIS_SFZD_YZMXB" />
<f name="TFSL" type="12" table="HIS_SFZD_YZMXB" />
<f name="YZZFY" type="12" table="HIS_SFZD_YZMXB" />
<f name="YZZKFY" type="12" table="HIS_SFZD_YZMXB" />
<f name="HZYBZF" type="12" table="HIS_SFZD_YZMXB" />
<f name="HZZFZF" type="12" table="HIS_SFZD_YZMXB" />
<f name="YZSJ" type="93" table="HIS_SFZD_YZMXB" />
<f name="CJR" type="12" table="HIS_SFZD_YZMXB" />
<f name="CJRQ" type="93" table="HIS_SFZD_YZMXB" />
<f name="JGID" type="12" table="HIS_SFZD_YZMXB" />
<f name="CFH" type="12" table="HIS_SFZD_YZMXB" />
<f name="SQDTFJE" type="12" table="HIS_SFZD_YZMXB" />
<f name="EXEPKEY" type="12" table="HIS_SFZD_YZMXB" />
<f name="ISHC" type="12" table="HIS_SFZD_YZMXB" />
<f name="HCDJPKEY" type="12" table="HIS_SFZD_YZMXB" />
<f name="JSZT" type="12" table="HIS_SFZD_YZMXB" />
<f name="YZSJZFY" type="12" table="HIS_SFZD_YZMXB" />
<f name="LOCKFLAG" type="-5" table="HIS_SFZD_YZMXB" />
<f name="YZDW" type="12" table="HIS_SFZD_YZMXB" />
<f name="HZPKEY" type="12" table="HIS_SFZD_YZMXB" />
<f name="JZPKEY" type="12" table="HIS_SFZD_YZMXB" />
</fields>
<parameter>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="cancelexecSfxmxDao2" log="true" type="1" memo="撤销医技执行的账单收费项明细dao">
<sql>
select
PKEY,ZDZBPKEY,YZX,YZMX,SFX,SFXDJ,SFXSL,SFXZKL,SFXZFY,SFXZKFY,HZYBZF,HZZFZF,JFRQ,CJR,CJRQ,JGID,FYDL,FYZL,EXEPKEY,ISHC,HCDJPKEY,JSZT,SFXSJZFY,LOCKFLAG,SCZT,MDTRT_ID,SETL_ID,KLJSEND,SFXDW,HZPKEY,JZPKEY
from HIS_SFZD_SFXMXB where JGID=? and EXEPKEY=? and ISHC=0 and JSZT=1
</sql>
<tables>
<table name="HIS_SFZD_SFXMXB" insert="true" update="true"
delete="true">
<primary>PKEY</primary>
<primary>YZX</primary>
<primary>EXEPKEY</primary>
<primary>YZMX</primary>
<primary>JGID</primary>
</table>
</tables>
<fields>
<f name="PKEY" type="12" table="HIS_SFZD_SFXMXB" />
<f name="ZDZBPKEY" type="12" table="HIS_SFZD_SFXMXB" />
<f name="YZX" type="12" table="HIS_SFZD_SFXMXB" />
<f name="YZMX" type="12" table="HIS_SFZD_SFXMXB" />
<f name="SFX" type="12" table="HIS_SFZD_SFXMXB" />
<f name="SFXDJ" type="12" table="HIS_SFZD_SFXMXB" />
<f name="SFXSL" type="12" table="HIS_SFZD_SFXMXB" />
<f name="SFXZKL" type="12" table="HIS_SFZD_SFXMXB" />
<f name="SFXZFY" type="12" table="HIS_SFZD_SFXMXB" />
<f name="SFXZKFY" type="12" table="HIS_SFZD_SFXMXB" />
<f name="HZYBZF" type="12" table="HIS_SFZD_SFXMXB" />
<f name="HZZFZF" type="12" table="HIS_SFZD_SFXMXB" />
<f name="JFRQ" type="93" table="HIS_SFZD_SFXMXB" />
<f name="CJR" type="12" table="HIS_SFZD_SFXMXB" />
<f name="CJRQ" type="93" table="HIS_SFZD_SFXMXB" />
<f name="JGID" type="12" table="HIS_SFZD_SFXMXB" />
<f name="FYDL" type="12" table="HIS_SFZD_SFXMXB" />
<f name="FYZL" type="12" table="HIS_SFZD_SFXMXB" />
<f name="EXEPKEY" type="12" table="HIS_SFZD_SFXMXB" />
<f name="ISHC" type="12" table="HIS_SFZD_SFXMXB" />
<f name="HCDJPKEY" type="12" table="HIS_SFZD_SFXMXB" />
<f name="JSZT" type="12" table="HIS_SFZD_SFXMXB" />
<f name="SFXSJZFY" type="12" table="HIS_SFZD_SFXMXB" />
<f name="LOCKFLAG" type="-5" table="HIS_SFZD_SFXMXB" />
<f name="SCZT" type="12" table="HIS_SFZD_SFXMXB" />
<f name="MDTRT_ID" type="12" table="HIS_SFZD_SFXMXB" />
<f name="SETL_ID" type="12" table="HIS_SFZD_SFXMXB" />
<f name="KLJSEND" type="12" table="HIS_SFZD_SFXMXB" />
<f name="SFXDW" type="12" table="HIS_SFZD_SFXMXB" />
<f name="HZPKEY" type="12" table="HIS_SFZD_SFXMXB" />
<f name="JZPKEY" type="12" table="HIS_SFZD_SFXMXB" />
</fields>
<parameter>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="zyhzsfxmxbyzxjlDao2" log="true" type="1" memo="住院患者医嘱费用里面根据执行记录获取收费项目的dao">
<sql>SELECT
a.PKEY,a.ZDZBPKEY,a.YZX,a.YZMX,a.SFX,a.SFXDJ,a.SFXSL,a.SFXZKL,a.SFXZFY,a.SFXZKFY,a.HZYBZF,a.HZZFZF,a.JFRQ,a.CJR,a.CJRQ,a.JGID,a.FYDL,a.FYZL,a.EXEPKEY,a.ISHC,a.HCDJPKEY,a.JSZT,b.bm,b.mc,b.JBDW,c.YZDW,a.LOCKFLAG,a.SFXSJZFY
from HIS_SFZD_SFXMXB a left join HIS_SFX b on a.SFX=b.BM and
a.JGID=b.JGID left join HIS_YZ_MXB c on a.YZMX=c.pkey and
a.JGID=c.JGID where a.JGID=? and a.EXEPKEY=? and a.ISHC=0 and a.JSZT=1 order by
a.JFRQ
</sql>
<tables>
<table name="HIS_SFZD_SFXMXB" insert="true" update="true"
delete="true">
<primary>PKEY</primary>
<primary>JGID</primary>
</table>
</tables>
<fields>
<f name="PKEY" type="12" table="HIS_SFZD_SFXMXB" />
<f name="ZDZBPKEY" type="12" table="HIS_SFZD_SFXMXB" />
<f name="YZX" type="12" table="HIS_SFZD_SFXMXB" />
<f name="YZMX" type="12" table="HIS_SFZD_SFXMXB" />
<f name="SFX" type="12" table="HIS_SFZD_SFXMXB" />
<f name="SFXDJ" type="12" table="HIS_SFZD_SFXMXB" />
<f name="SFXSL" type="12" table="HIS_SFZD_SFXMXB" />
<f name="SFXZKL" type="12" table="HIS_SFZD_SFXMXB" />
<f name="SFXZFY" type="12" table="HIS_SFZD_SFXMXB" />
<f name="SFXZKFY" type="12" table="HIS_SFZD_SFXMXB" />
<f name="HZYBZF" type="12" table="HIS_SFZD_SFXMXB" />
<f name="HZZFZF" type="12" table="HIS_SFZD_SFXMXB" />
<f name="JFRQ" type="93" table="HIS_SFZD_SFXMXB" />
<f name="CJR" type="12" table="HIS_SFZD_SFXMXB" />
<f name="CJRQ" type="93" table="HIS_SFZD_SFXMXB" />
<f name="JGID" type="12" table="HIS_SFZD_SFXMXB" />
<f name="FYDL" type="12" table="HIS_SFZD_SFXMXB" />
<f name="FYZL" type="12" table="HIS_SFZD_SFXMXB" />
<f name="EXEPKEY" type="12" table="HIS_SFZD_SFXMXB" />
<f name="ISHC" type="12" table="HIS_SFZD_SFXMXB" />
<f name="HCDJPKEY" type="12" table="HIS_SFZD_SFXMXB" />
<f name="JSZT" type="12" table="HIS_SFZD_SFXMXB" />
<f name="BM" type="12" />
<f name="MC" type="12" />
<f name="JBDW" type="12" />
<f name="YZDW" type="12" />
<f name="LOCKFLAG" type="-5" table="HIS_SFZD_SFXMXB" />
<f name="SFXSJZFY" type="12" table="HIS_SFZD_SFXMXB" />
</fields>
<parameter>
<p>12</p>
<p>12</p>
</parameter>
</dao>
</datasource>