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.
2097 lines
115 KiB
2097 lines
115 KiB
<?xml version="1.0" encoding="UTF-8"?>
|
|
<datasource>
|
|
<!-- 1 表示 sql语句dao 2表示存储过程dao 默认为sql语句dao-->
|
|
<dao id="mzghPbinfoDao" log="true" type="1">
|
|
<sql>select 0 YGHS,A.PKEY,A.YSPKEY,A.KSPKEY,A.CZRQ,A.PBSD,A.CZKSSJ,A.CZJSSJ,A.GHZC,A.ZYZ,A.BZH,A.YYH,A.QSH,A.JH,A.JZZS,A.HYZTLB,A.CZZT,A.TZYY,A.TZPBKEY,A.TZPZR,A.PBBMPKEY,A.CJR,A.CJRQ,A.XGR,A.XGRQ,A.JGID,A.SHR,A.SHRQ,A.LOCKFLAG,B.ISJZ from HIS_GH_PBINFO A left join MAIN_KS B ON A.KSPKEY=B.DPTID AND A.JGID=B.JGID where A.JGID=? and A.CZRQ=? and A.CZZT='1' order by A.KSPKEY,A.YSPKEY,A.PBSD</sql>
|
|
<tables>
|
|
<table name="HIS_GH_PBINFO" insert="true" update="true" delete="true">
|
|
<primary>PKEY</primary>
|
|
<primary>JGID</primary>
|
|
<primary>LOCKFLAG</primary>
|
|
</table>
|
|
</tables>
|
|
<fields>
|
|
<f name="YGHS" type="8" />
|
|
<f name="PKEY" type="12" table="HIS_GH_PBINFO" />
|
|
<f name="YSPKEY" type="12" table="HIS_GH_PBINFO" />
|
|
<f name="KSPKEY" type="12" table="HIS_GH_PBINFO" />
|
|
<f name="CZRQ" type="12" table="HIS_GH_PBINFO" />
|
|
<f name="PBSD" type="12" table="HIS_GH_PBINFO" />
|
|
<f name="CZKSSJ" type="93" table="HIS_GH_PBINFO" />
|
|
<f name="CZJSSJ" type="93" table="HIS_GH_PBINFO" />
|
|
<f name="GHZC" type="12" table="HIS_GH_PBINFO" />
|
|
<f name="ZYZ" type="12" table="HIS_GH_PBINFO" />
|
|
<f name="BZH" type="12" table="HIS_GH_PBINFO" />
|
|
<f name="YYH" type="12" table="HIS_GH_PBINFO" />
|
|
<f name="QSH" type="12" table="HIS_GH_PBINFO" />
|
|
<f name="JH" type="12" table="HIS_GH_PBINFO" />
|
|
<f name="JZZS" type="12" table="HIS_GH_PBINFO" />
|
|
<f name="HYZTLB" type="12" table="HIS_GH_PBINFO" />
|
|
<f name="CZZT" type="12" table="HIS_GH_PBINFO" />
|
|
<f name="TZYY" type="12" table="HIS_GH_PBINFO" />
|
|
<f name="TZPBKEY" type="12" table="HIS_GH_PBINFO" />
|
|
<f name="TZPZR" type="12" table="HIS_GH_PBINFO" />
|
|
<f name="PBBMPKEY" type="12" table="HIS_GH_PBINFO" />
|
|
<f name="CJR" type="12" table="HIS_GH_PBINFO" />
|
|
<f name="CJRQ" type="93" table="HIS_GH_PBINFO" />
|
|
<f name="XGR" type="12" table="HIS_GH_PBINFO" />
|
|
<f name="XGRQ" type="93" table="HIS_GH_PBINFO" />
|
|
<f name="JGID" type="12" table="HIS_GH_PBINFO" />
|
|
<f name="SHR" type="12" table="HIS_GH_PBINFO" />
|
|
<f name="SHRQ" type="93" table="HIS_GH_PBINFO" />
|
|
<f name="LOCKFLAG" type="8" table="HIS_GH_PBINFO" />
|
|
<f name="ISJZ" type="12" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
</parameter>
|
|
</dao>
|
|
|
|
|
|
|
|
<dao id="mzghYghlbDao" log="true" type="1">
|
|
<sql>select PKEY,JZPKEY,HZPKEY,GHNUM,FPHM,SFDYFP,GHLB,GHKS,GHSJ,GHRY,GHPBPKEY,JZJB,JZZS,JZSD,SFZZ,ZZKS,ZZYS,FPPKEY,YBZF,GRZF,GHYS,CJR,CJRQ,JGID,GHRQ from HIS_JZ_GHB where JGID=? and hzpkey=? and GHRQ=? order by PKEY</sql>
|
|
<tables>
|
|
<table name="HIS_JZ_GHB" insert="true" update="true" delete="true">
|
|
<primary>PKEY</primary>
|
|
<primary>JZPKEY</primary>
|
|
<primary>HZPKEY</primary>
|
|
</table>
|
|
</tables>
|
|
<fields>
|
|
<f name="PKEY" type="12" table="HIS_JZ_GHB" />
|
|
<f name="JZPKEY" type="12" table="HIS_JZ_GHB" />
|
|
<f name="HZPKEY" type="12" table="HIS_JZ_GHB" />
|
|
<f name="GHNUM" type="12" table="HIS_JZ_GHB" />
|
|
<f name="FPHM" type="12" table="HIS_JZ_GHB" />
|
|
<f name="SFDYFP" type="12" table="HIS_JZ_GHB" />
|
|
<f name="GHLB" type="12" table="HIS_JZ_GHB" />
|
|
<f name="GHKS" type="12" table="HIS_JZ_GHB" />
|
|
<f name="GHSJ" type="93" table="HIS_JZ_GHB" />
|
|
<f name="GHRY" type="12" table="HIS_JZ_GHB" />
|
|
<f name="GHPBPKEY" type="12" table="HIS_JZ_GHB" />
|
|
<f name="JZJB" type="12" table="HIS_JZ_GHB" />
|
|
<f name="JZZS" type="12" table="HIS_JZ_GHB" />
|
|
<f name="JZSD" type="12" table="HIS_JZ_GHB" />
|
|
<f name="SFZZ" type="12" table="HIS_JZ_GHB" />
|
|
<f name="ZZKS" type="12" table="HIS_JZ_GHB" />
|
|
<f name="ZZYS" type="12" table="HIS_JZ_GHB" />
|
|
<f name="FPPKEY" type="12" table="HIS_JZ_GHB" />
|
|
<f name="YBZF" type="8" table="HIS_JZ_GHB" />
|
|
<f name="GRZF" type="8" table="HIS_JZ_GHB" />
|
|
<f name="GHYS" type="12" table="HIS_JZ_GHB" />
|
|
<f name="CJR" type="12" table="HIS_JZ_GHB" />
|
|
<f name="CJRQ" type="93" table="HIS_JZ_GHB" />
|
|
<f name="JGID" type="12" table="HIS_JZ_GHB" />
|
|
<f name="GHRQ" type="12" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
</parameter>
|
|
</dao>
|
|
|
|
<dao id="mzghCardDao" type="1">
|
|
<sql>select PKEY,KH,KBM,PASSWORD,FKFS,KLX,ZJE,HFJE,SYJE,KZT,HZPKEY,KF,CJR,CJRQ,XGR,XGRQ,JGID,YJK from HIS_CARD_MANAGE where JGID=? and KH = ? </sql>
|
|
<tables>
|
|
<table delete="true" insert="true" name="HIS_CARD_MANAGE" update="true">
|
|
<primary>PKEY</primary>
|
|
<primary>KH</primary>
|
|
<primary>ZJE</primary>
|
|
<primary>HFJE</primary>
|
|
<primary>SYJE</primary>
|
|
<primary>KZT</primary>
|
|
<primary>HZPKEY</primary>
|
|
</table>
|
|
</tables>
|
|
<fields>
|
|
<f name="PKEY" table="HIS_CARD_MANAGE" type="12"/>
|
|
<f name="KH" table="HIS_CARD_MANAGE" type="12"/>
|
|
<f name="KBM" table="HIS_CARD_MANAGE" type="12"/>
|
|
<f name="PASSWORD" table="HIS_CARD_MANAGE" type="12"/>
|
|
<f name="FKFS" table="HIS_CARD_MANAGE" type="12"/>
|
|
<f name="KLX" table="HIS_CARD_MANAGE" type="12"/>
|
|
<f name="ZJE" table="HIS_CARD_MANAGE" type="8"/>
|
|
<f name="HFJE" table="HIS_CARD_MANAGE" type="8"/>
|
|
<f name="SYJE" table="HIS_CARD_MANAGE" type="8"/>
|
|
<f name="KZT" table="HIS_CARD_MANAGE" type="12"/>
|
|
<f name="HZPKEY" table="HIS_CARD_MANAGE" type="12"/>
|
|
<f name="KF" table="HIS_CARD_MANAGE" type="8"/>
|
|
<f name="CJR" table="HIS_CARD_MANAGE" type="12"/>
|
|
<f name="CJRQ" table="HIS_CARD_MANAGE" type="93"/>
|
|
<f name="XGR" table="HIS_CARD_MANAGE" type="12"/>
|
|
<f name="XGRQ" table="HIS_CARD_MANAGE" type="93"/>
|
|
<f name="JGID" table="HIS_CARD_MANAGE" type="12"/>
|
|
<f name="YJK" table="HIS_CARD_MANAGE" type="12"/>
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
</parameter>
|
|
</dao>
|
|
|
|
<dao id="mzghSelectKsdao" type="1">
|
|
<sql>select DPTID,DPTCODE,DPTNAME,DPTRMARK,DPTADDR,DPTLAYER,DPTTYPE,DPTGPID,DPTSEX,DPTZJM,DPTBAGE,DPTEAGE,DPTTXMJC,DPTYBCODE,CJR,CJRQ,XGR,XGRQ,JGID,DPTFLAG,GHSYL from MAIN_KS where JGID=? and (DPTZJM like ? or DPTNAME like ? or DPTCODE like ? ) and DPTFLAG=1 order by GHSYL desc,DPTCODE</sql>
|
|
<tables>
|
|
<table name="MAIN_KS" insert="true" update="true" delete="true">
|
|
<primary>DPTID</primary>
|
|
<primary>DPTCODE</primary>
|
|
<primary>JGID</primary>
|
|
</table>
|
|
</tables>
|
|
<fields>
|
|
<f name="DPTID" type="12" table="MAIN_KS"/>
|
|
<f name="DPTCODE" type="12" table="MAIN_KS"/>
|
|
<f name="DPTNAME" type="12" table="MAIN_KS"/>
|
|
<f name="DPTRMARK" type="12" table="MAIN_KS"/>
|
|
<f name="DPTADDR" type="12" table="MAIN_KS"/>
|
|
<f name="DPTLAYER" type="12" table="MAIN_KS"/>
|
|
<f name="DPTTYPE" type="12" table="MAIN_KS"/>
|
|
<f name="DPTGPID" type="12" table="MAIN_KS"/>
|
|
<f name="DPTSEX" type="12" table="MAIN_KS"/>
|
|
<f name="DPTZJM" type="12" table="MAIN_KS"/>
|
|
<f name="DPTBAGE" type="12" table="MAIN_KS"/>
|
|
<f name="DPTEAGE" type="12" table="MAIN_KS"/>
|
|
<f name="DPTTXMJC" type="12" table="MAIN_KS"/>
|
|
<f name="DPTYBCODE" type="12" table="MAIN_KS"/>
|
|
<f name="CJR" type="12" table="MAIN_KS"/>
|
|
<f name="CJRQ" type="93" table="MAIN_KS"/>
|
|
<f name="XGR" type="12" table="MAIN_KS"/>
|
|
<f name="XGRQ" type="93" table="MAIN_KS"/>
|
|
<f name="JGID" type="12" table="MAIN_KS"/>
|
|
<f name="DPTFLAG" type="-5" table="MAIN_KS"/>
|
|
<f name="GHSYL" type="8" table="MAIN_KS"/>
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
</parameter>
|
|
</dao>
|
|
|
|
<!--挂号选择人员字典-->
|
|
<dao id="mzghSelectRydicdao" type="1">
|
|
<sql>select distinct a.EMPID,b.USERACCOUNT,b.NAME,b.SEX,b.PYM from MAIN_JGYH a left join MAIN_YHXX b on a.EMPID=b.EMPID left join MAIN_YHGLKS c on a.EMPID=c.EMPID where a.JGID=? and nvl(b.USERACCOUNT,' ') !=' ' and (b.PYM like ? or b.USERACCOUNT like ? or b.NAME like ? ) and c.ksbm like ? and a.EFFICET='0'</sql>
|
|
<tables>
|
|
<table name="MAIN_JGYH" insert="true" update="true" delete="true">
|
|
<primary>EMPID</primary>
|
|
</table>
|
|
<table name="MAIN_YHXX" insert="true" update="true" delete="true">
|
|
<primary>EMPID</primary>
|
|
<primary>USERACCOUNT</primary>
|
|
</table>
|
|
</tables>
|
|
<fields>
|
|
<f name="EMPID" type="12" table="MAIN_JGYH,MAIN_YHXX" />
|
|
<f name="USERACCOUNT" type="12" table="MAIN_YHXX" />
|
|
<f name="NAME" type="12" table="MAIN_YHXX" />
|
|
<f name="SEX" type="12" table="MAIN_YHXX" />
|
|
<f name="PYM" type="12" table="MAIN_YHXX" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
</parameter>
|
|
</dao>
|
|
|
|
<dao id="mzghPbinfoByPkeyDao" log="true" type="1">
|
|
<sql>select A.PKEY,A.YSPKEY,A.KSPKEY,A.CZRQ,A.PBSD,A.CZKSSJ,A.CZJSSJ,A.GHZC,A.ZYZ,A.BZH,A.YYH,A.QSH,A.JH,A.JZZS,A.HYZTLB,A.CZZT,A.TZYY,A.TZPBKEY,A.TZPZR,A.PBBMPKEY,A.CJR,A.CJRQ,A.XGR,A.XGRQ,A.JGID,A.SHR,A.SHRQ,A.LOCKFLAG,B.ISJZ from HIS_GH_PBINFO A left join MAIN_KS B ON A.KSPKEY=B.DPTID AND A.JGID=B.JGID where A.JGID=? and A.PKEY=? and A.CZZT='1'</sql>
|
|
<tables>
|
|
<table name="HIS_GH_PBINFO" insert="true" update="true" delete="true">
|
|
<primary>PKEY</primary>
|
|
<primary>JGID</primary>
|
|
<primary>LOCKFLAG</primary>
|
|
</table>
|
|
</tables>
|
|
<fields>
|
|
<f name="PKEY" type="12" table="HIS_GH_PBINFO" />
|
|
<f name="YSPKEY" type="12" table="HIS_GH_PBINFO" />
|
|
<f name="KSPKEY" type="12" table="HIS_GH_PBINFO" />
|
|
<f name="CZRQ" type="12" table="HIS_GH_PBINFO" />
|
|
<f name="PBSD" type="12" table="HIS_GH_PBINFO" />
|
|
<f name="CZKSSJ" type="93" table="HIS_GH_PBINFO" />
|
|
<f name="CZJSSJ" type="93" table="HIS_GH_PBINFO" />
|
|
<f name="GHZC" type="12" table="HIS_GH_PBINFO" />
|
|
<f name="ZYZ" type="12" table="HIS_GH_PBINFO" />
|
|
<f name="BZH" type="12" table="HIS_GH_PBINFO" />
|
|
<f name="YYH" type="12" table="HIS_GH_PBINFO" />
|
|
<f name="QSH" type="12" table="HIS_GH_PBINFO" />
|
|
<f name="JH" type="12" table="HIS_GH_PBINFO" />
|
|
<f name="JZZS" type="12" table="HIS_GH_PBINFO" />
|
|
<f name="HYZTLB" type="12" table="HIS_GH_PBINFO" />
|
|
<f name="CZZT" type="12" table="HIS_GH_PBINFO" />
|
|
<f name="TZYY" type="12" table="HIS_GH_PBINFO" />
|
|
<f name="TZPBKEY" type="12" table="HIS_GH_PBINFO" />
|
|
<f name="TZPZR" type="12" table="HIS_GH_PBINFO" />
|
|
<f name="PBBMPKEY" type="12" table="HIS_GH_PBINFO" />
|
|
<f name="CJR" type="12" table="HIS_GH_PBINFO" />
|
|
<f name="CJRQ" type="93" table="HIS_GH_PBINFO" />
|
|
<f name="XGR" type="12" table="HIS_GH_PBINFO" />
|
|
<f name="XGRQ" type="93" table="HIS_GH_PBINFO" />
|
|
<f name="JGID" type="12" table="HIS_GH_PBINFO" />
|
|
<f name="SHR" type="12" table="HIS_GH_PBINFO" />
|
|
<f name="SHRQ" type="93" table="HIS_GH_PBINFO" />
|
|
<f name="LOCKFLAG" type="8" table="HIS_GH_PBINFO" />
|
|
<f name="ISJZ" type="12"/>
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
</parameter>
|
|
</dao>
|
|
|
|
<!--医嘱项-->
|
|
<dao id="mzghHisyzxdao" type="1">
|
|
<sql>select JGID,BM,MC,YZDL,YZZL,ISDDYZ,ISXSYZ,ISMZSY,ISJZSY,ISZYSY,DCZDJL,MTZDJL,ZDL,SZSYTS,YF,LC,PC,ISMZPSYY,ISZYPSYY,ISMZSJL,ISZYSJL,JE,BZ,ZT,YZDW,LOCKFLAG from HIS_YZX where JGID=? and BM in(#)</sql>
|
|
<tables>
|
|
<table name="HIS_YZX" insert="true" update="true" delete="true">
|
|
<primary>JGID</primary>
|
|
<primary>BM</primary>
|
|
</table>
|
|
</tables>
|
|
<fields>
|
|
<f name="JGID" type="12" table="HIS_YZX" />
|
|
<f name="BM" type="12" table="HIS_YZX" />
|
|
<f name="MC" type="12" table="HIS_YZX" />
|
|
<f name="YZDL" type="12" table="HIS_YZX" />
|
|
<f name="YZZL" type="12" table="HIS_YZX" />
|
|
<f name="ISDDYZ" type="12" table="HIS_YZX" />
|
|
<f name="ISXSYZ" type="12" table="HIS_YZX" />
|
|
<f name="ISMZSY" type="12" table="HIS_YZX" />
|
|
<f name="ISJZSY" type="12" table="HIS_YZX" />
|
|
<f name="ISZYSY" type="12" table="HIS_YZX" />
|
|
<f name="DCZDJL" type="8" table="HIS_YZX" />
|
|
<f name="MTZDJL" type="8" table="HIS_YZX" />
|
|
<f name="ZDL" type="8" table="HIS_YZX" />
|
|
<f name="SZSYTS" type="-5" table="HIS_YZX" />
|
|
<f name="YF" type="12" table="HIS_YZX" />
|
|
<f name="LC" type="12" table="HIS_YZX" />
|
|
<f name="PC" type="12" table="HIS_YZX" />
|
|
<f name="ISMZPSYY" type="12" table="HIS_YZX" />
|
|
<f name="ISZYPSYY" type="12" table="HIS_YZX" />
|
|
<f name="ISMZSJL" type="12" table="HIS_YZX" />
|
|
<f name="ISZYSJL" type="12" table="HIS_YZX" />
|
|
<f name="JE" type="8" table="HIS_YZX" />
|
|
<f name="BZ" type="12" table="HIS_YZX" />
|
|
<f name="ZT" type="12" table="HIS_YZX" />
|
|
<f name="YZDW" type="12" table="HIS_YZX" />
|
|
<f name="LOCKFLAG" type="-5" table="HIS_YZX" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
</parameter>
|
|
</dao>
|
|
<!--收费项-->
|
|
<dao id="mzghHissfxdao" type="1">
|
|
<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,A.LOCKFLAG 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 in (#)
|
|
|
|
</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" />
|
|
<f name="LOCKFLAG" type="-5" table="HIS_SFX" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
</parameter>
|
|
</dao>
|
|
|
|
<dao id="mzghPbInfoExDao" log="true" memo="预约挂号" type="1">
|
|
<sql>select PKEY,PBINFOPKEY,GHLX,SL,QSH,JSH,CJR,CJRQ,XGR,XGRQ,JGID,HYZTLB,LOCKFLAG from HIS_GH_PBINFOXE where JGID=? and PKEY=? order by GHLX</sql>
|
|
<tables>
|
|
<table name="HIS_GH_PBINFOXE" insert="true" update="true" delete="true">
|
|
<primary>PKEY</primary>
|
|
<primary>JGID</primary>
|
|
<primary>LOCKFLAG</primary>
|
|
</table>
|
|
</tables>
|
|
<fields>
|
|
<f name="PKEY" type="12" table="HIS_GH_PBINFOXE" />
|
|
<f name="PBINFOPKEY" type="12" table="HIS_GH_PBINFOXE" />
|
|
<f name="GHLX" type="12" table="HIS_GH_PBINFOXE" />
|
|
<f name="SL" type="8" table="HIS_GH_PBINFOXE" />
|
|
<f name="QSH" type="12" table="HIS_GH_PBINFOXE" />
|
|
<f name="JSH" type="12" table="HIS_GH_PBINFOXE" />
|
|
<f name="CJR" type="12" table="HIS_GH_PBINFOXE" />
|
|
<f name="CJRQ" type="93" table="HIS_GH_PBINFOXE" />
|
|
<f name="XGR" type="12" table="HIS_GH_PBINFOXE" />
|
|
<f name="XGRQ" type="93" table="HIS_GH_PBINFOXE" />
|
|
<f name="JGID" type="12" table="HIS_GH_PBINFOXE" />
|
|
<f name="HYZTLB" type="12" table="HIS_GH_PBINFOXE" />
|
|
<f name="LOCKFLAG" type="8" table="HIS_GH_PBINFOXE" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
</parameter>
|
|
</dao>
|
|
<dao id="mzghHzjzBaseInfoDao" log="true" type="1">
|
|
<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,ZCBQ,ISFM,FMZT,FMCF,SFLG,LGKSSJ,EMSSDJBPKEY,SFLSTD,LSTDYXQ,ISYYGH,ISTY,ISICU,WYBZ,ZCBZ,ISZYHLTX,ZMPF,BAJY,BABM,BAGD,SDYZFH,SFYFJJFY from HIS_JZ_BASEINFO where JGID=? and HZPKEY=? and MZNO=? and jzno=?</sql>
|
|
<tables>
|
|
<table name="HIS_JZ_BASEINFO" insert="true" update="true" delete="true">
|
|
<primary>PKEY</primary>
|
|
<primary>HZPKEY</primary>
|
|
<primary>JZZT</primary>
|
|
<primary>JZJS</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="ZCBQ" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="ISFM" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="FMZT" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="FMCF" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="SFLG" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="LGKSSJ" type="93" table="HIS_JZ_BASEINFO" />
|
|
<f name="EMSSDJBPKEY" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="SFLSTD" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="LSTDYXQ" type="-5" table="HIS_JZ_BASEINFO" />
|
|
<f name="ISYYGH" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="ISTY" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="ISICU" 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="ISZYHLTX" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="ZMPF" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="BAJY" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="BABM" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="BAGD" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="SDYZFH" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="SFYFJJFY" type="12" table="HIS_JZ_BASEINFO" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
</parameter>
|
|
</dao>
|
|
|
|
|
|
|
|
<dao id="mzghNewYzmxDao" log="true" type="1">
|
|
<sql>select PKEY,HZPKEY,JZPKEY,JZH,CFH,YZCL,YZLB,YZLX,YZXPKEY,YZSHZT,YZXH,YZJL,YZJLDW,YZPC,YZTS,YZYF,YZZCYYF,YZZCYYFMS,YZTZH,YZXZSJ,YZXZYS,YZLRYS,YZJE,YZSL,YZJX,YZBEGINJDSJ,YZENDJDSJ,YZBEGINZXSJ,YZZXSJ,YZYTZSJ,YZTZSJ,YZDJ,YZBEGINJDHS,YZENDJDHS,YZTZYS,YZZT,YZFYLB,YZDAYCS,YZJDBZ,YZYX,YZZDY,YZXZSXYS,YZTZSXYS,ZYCS,YZBZ,YZCXR,YZCXBZ,YZCXSJ,YZCXYY,YZFYZH,YZSFZYZ,YZSCZXCS,YZZTPKEY,YZDS,YZJJBZ,CJR,CJRQ,JGID,YZLC,YZGLYZ,YZSYCS,YZZXKS,YZKZXTS,PS,PSBZ,YZFJSM,YZFB,YZSYLS,YZLSDW,YZSFPY,YZCLTM,YZCLYY,YZBBLX,YZDW,YZXZKS,YZZL,YZJZJLXS,YZJZZHXS,YPYZJBJG,YPYZJBDW,YPYZBZJG,YPYZBZDW,YPYZDXDW,YPYZDXSL,YPYZZHXS,YZMC,YZSFZT from HIS_YZ_MXB where 1=2
|
|
</sql>
|
|
<tables>
|
|
<table name="HIS_YZ_MXB" insert="true" update="true" delete="true">
|
|
<primary>PKEY</primary>
|
|
<primary>HZPKEY</primary>
|
|
<primary>JZPKEY</primary>
|
|
</table>
|
|
</tables>
|
|
<fields>
|
|
<f name="PKEY" type="12" table="HIS_YZ_MXB" />
|
|
<f name="HZPKEY" type="12" table="HIS_YZ_MXB" />
|
|
<f name="JZPKEY" type="12" table="HIS_YZ_MXB" />
|
|
<f name="JZH" type="12" table="HIS_YZ_MXB" />
|
|
<f name="CFH" type="12" table="HIS_YZ_MXB" />
|
|
<f name="YZCL" type="12" table="HIS_YZ_MXB" />
|
|
<f name="YZLB" type="12" table="HIS_YZ_MXB" />
|
|
<f name="YZLX" type="12" table="HIS_YZ_MXB" />
|
|
<f name="YZXPKEY" type="12" table="HIS_YZ_MXB" />
|
|
<f name="YZSHZT" type="12" table="HIS_YZ_MXB" />
|
|
<f name="YZXH" type="8" table="HIS_YZ_MXB" />
|
|
<f name="YZJL" type="12" table="HIS_YZ_MXB" />
|
|
<f name="YZJLDW" type="12" table="HIS_YZ_MXB" />
|
|
<f name="YZPC" type="12" table="HIS_YZ_MXB" />
|
|
<f name="YZTS" type="12" table="HIS_YZ_MXB" />
|
|
<f name="YZYF" type="12" table="HIS_YZ_MXB" />
|
|
<f name="YZZCYYF" type="12" table="HIS_YZ_MXB" />
|
|
<f name="YZZCYYFMS" type="12" table="HIS_YZ_MXB" />
|
|
<f name="YZTZH" type="12" table="HIS_YZ_MXB" />
|
|
<f name="YZXZSJ" type="93" table="HIS_YZ_MXB" />
|
|
<f name="YZXZYS" type="12" table="HIS_YZ_MXB" />
|
|
<f name="YZLRYS" type="12" table="HIS_YZ_MXB" />
|
|
<f name="YZJE" type="12" table="HIS_YZ_MXB" />
|
|
<f name="YZSL" type="12" table="HIS_YZ_MXB" />
|
|
<f name="YZJX" type="12" table="HIS_YZ_MXB" />
|
|
<f name="YZBEGINJDSJ" type="93" table="HIS_YZ_MXB" />
|
|
<f name="YZENDJDSJ" type="93" table="HIS_YZ_MXB" />
|
|
<f name="YZBEGINZXSJ" type="93" table="HIS_YZ_MXB" />
|
|
<f name="YZZXSJ" type="93" table="HIS_YZ_MXB" />
|
|
<f name="YZYTZSJ" type="93" table="HIS_YZ_MXB" />
|
|
<f name="YZTZSJ" type="93" table="HIS_YZ_MXB" />
|
|
<f name="YZDJ" type="12" table="HIS_YZ_MXB" />
|
|
<f name="YZBEGINJDHS" type="12" table="HIS_YZ_MXB" />
|
|
<f name="YZENDJDHS" type="12" table="HIS_YZ_MXB" />
|
|
<f name="YZTZYS" type="12" table="HIS_YZ_MXB" />
|
|
<f name="YZZT" type="12" table="HIS_YZ_MXB" />
|
|
<f name="YZFYLB" type="12" table="HIS_YZ_MXB" />
|
|
<f name="YZDAYCS" type="12" table="HIS_YZ_MXB" />
|
|
<f name="YZJDBZ" type="12" table="HIS_YZ_MXB" />
|
|
<f name="YZYX" type="12" table="HIS_YZ_MXB" />
|
|
<f name="YZZDY" type="12" table="HIS_YZ_MXB" />
|
|
<f name="YZXZSXYS" type="12" table="HIS_YZ_MXB" />
|
|
<f name="YZTZSXYS" type="12" table="HIS_YZ_MXB" />
|
|
<f name="ZYCS" type="12" table="HIS_YZ_MXB" />
|
|
<f name="YZBZ" type="12" table="HIS_YZ_MXB" />
|
|
<f name="YZCXR" type="12" table="HIS_YZ_MXB" />
|
|
<f name="YZCXBZ" type="12" table="HIS_YZ_MXB" />
|
|
<f name="YZCXSJ" type="93" table="HIS_YZ_MXB" />
|
|
<f name="YZCXYY" type="12" table="HIS_YZ_MXB" />
|
|
<f name="YZFYZH" type="12" table="HIS_YZ_MXB" />
|
|
<f name="YZSFZYZ" type="12" table="HIS_YZ_MXB" />
|
|
<f name="YZSCZXCS" type="12" table="HIS_YZ_MXB" />
|
|
<f name="YZZTPKEY" type="12" table="HIS_YZ_MXB" />
|
|
<f name="YZDS" type="12" table="HIS_YZ_MXB" />
|
|
<f name="YZJJBZ" type="12" table="HIS_YZ_MXB" />
|
|
<f name="CJR" type="12" table="HIS_YZ_MXB" />
|
|
<f name="CJRQ" type="93" table="HIS_YZ_MXB" />
|
|
<f name="JGID" type="12" table="HIS_YZ_MXB" />
|
|
<f name="YZLC" type="12" table="HIS_YZ_MXB" />
|
|
<f name="YZGLYZ" type="12" table="HIS_YZ_MXB" />
|
|
<f name="YZSYCS" type="12" table="HIS_YZ_MXB" />
|
|
<f name="YZZXKS" type="12" table="HIS_YZ_MXB" />
|
|
<f name="YZKZXTS" type="12" table="HIS_YZ_MXB" />
|
|
<f name="PS" type="12" table="HIS_YZ_MXB" />
|
|
<f name="PSBZ" type="12" table="HIS_YZ_MXB" />
|
|
<f name="YZFJSM" type="12" table="HIS_YZ_MXB" />
|
|
<f name="YZFB" type="12" table="HIS_YZ_MXB" />
|
|
<f name="YZSYLS" type="12" table="HIS_YZ_MXB" />
|
|
<f name="YZLSDW" type="12" table="HIS_YZ_MXB" />
|
|
<f name="YZSFPY" type="12" table="HIS_YZ_MXB" />
|
|
<f name="YZCLTM" type="12" table="HIS_YZ_MXB" />
|
|
<f name="YZCLYY" type="12" table="HIS_YZ_MXB" />
|
|
<f name="YZBBLX" type="12" table="HIS_YZ_MXB" />
|
|
<f name="YZDW" type="12" table="HIS_YZ_MXB" />
|
|
<f name="YZXZKS" type="12" table="HIS_YZ_MXB" />
|
|
<f name="YZZL" type="12" table="HIS_YZ_MXB" />
|
|
<f name="YZJZJLXS" type="12" table="HIS_YZ_MXB" />
|
|
<f name="YZJZZHXS" type="12" table="HIS_YZ_MXB" />
|
|
<f name="YPYZJBJG" type="12" table="HIS_YZ_MXB" />
|
|
<f name="YPYZJBDW" type="12" table="HIS_YZ_MXB" />
|
|
<f name="YPYZBZJG" type="12" table="HIS_YZ_MXB" />
|
|
<f name="YPYZBZDW" type="12" table="HIS_YZ_MXB" />
|
|
<f name="YPYZDXDW" type="12" table="HIS_YZ_MXB" />
|
|
<f name="YPYZDXSL" type="12" table="HIS_YZ_MXB" />
|
|
<f name="YPYZZHXS" type="12" table="HIS_YZ_MXB" />
|
|
<f name="YZMC" type="12" table="HIS_YZ_MXB" />
|
|
<f name="YZSFZT" type="12" table="HIS_YZ_MXB" />
|
|
</fields>
|
|
</dao>
|
|
|
|
|
|
|
|
<dao id="mzghSfzdZbDao" log="true" type="1">
|
|
<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 ISHC=0 and PKEY=? and JZPKEY=? </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>SFZXTFHSF</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>
|
|
<p>12</p>
|
|
</parameter>
|
|
</dao>
|
|
|
|
|
|
|
|
<dao id="mzghSfzdYzmxbDao" log="true" type="1">
|
|
<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,b.YZLX,b.SQDTYPE,b.SQDPKEY,b.YZLB,b.YZMC,b.YZDW,b.GLLX,(select sum(tysl)/b.YZJZZHXS tysl from HIS_MMS_MZFYMXB where yzmx=a.yzmx and JGID=a.JGID) wztysl,(select sum(yzsl)/b.YZJZZHXS sfsl from HIS_MMS_MZFYMXB where yzmx=a.yzmx and JGID=a.JGID) wzsfsl,c.JZZDPKEY,a.LOCKFLAG,b.YPFYSJMS from HIS_SFZD_YZMXB a left join HIS_YZ_MXB b on a.YZMX=b.pkey and a.JGID=b.JGID left join HIS_SFZD_ZB c on a.JGID=c.JGID and a.ZDZBPKEY=c.pkey where a.JGID=? and a.ZDZBPKEY=?
|
|
|
|
|
|
</sql>
|
|
<tables>
|
|
<table name="HIS_SFZD_YZMXB" insert="true" update="true" delete="true">
|
|
<primary>PKEY</primary>
|
|
<primary>ZDZBPKEY</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="YZLX" type="12" />
|
|
<f name="SQDTYPE" type="12" />
|
|
<f name="SQDPKEY" type="12" />
|
|
<f name="YZLB" type="12" />
|
|
<f name="YZMC" type="12" />
|
|
<f name="YZDW" type="12" table="HIS_SFZD_YZMXB" />
|
|
<f name="GLLX" type="12" />
|
|
<f name="WZTYSL" type="4" />
|
|
<f name="WZSFSL" type="4" />
|
|
<f name="JZZDPKEY" type="12" />
|
|
<f name="LOCKFLAG" type="-5" table="HIS_SFZD_YZMXB" />
|
|
<f name="YPFYSJMS" type="12" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
</parameter>
|
|
</dao>
|
|
|
|
|
|
|
|
<dao id="mzghSfzdSfxmxbDao" log="true" type="1">
|
|
<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,b.YZFJSM,a.LOCKFLAG,a.SFXSJZFY,a.SCZT,a.MDTRT_ID,a.SETL_ID,a.HCDJPKEY,b.cfh from HIS_SFZD_SFXMXB a left join HIS_YZ_MXB b on a.JGID=b.JGID and a.YZMX=b.pkey where a.JGID=? and a.ZDZBPKEY=? </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="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="YZFJSM" type="12"/>
|
|
<f name="LOCKFLAG" type="-5" table="HIS_SFZD_SFXMXB" />
|
|
<f name="SFXSJZFY" type="12" 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="HCDJPKEY" type="12" table="HIS_SFZD_SFXMXB" />
|
|
<f name="CFH" type="12"/>
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
</parameter>
|
|
</dao>
|
|
|
|
|
|
|
|
<dao id="mzghJzGhbDao" log="true" type="1">
|
|
<sql>select PKEY,JZPKEY,HZPKEY,GHNUM,FPHM,SFDYFP,GHLB,GHKS,GHSJ,GHRY,GHPBPKEY,JZZS,JZSD,SFZZ,ZZKS,ZZYS,SFZDPKEY,YBZF,GRZF,GHYS,CJR,CJRQ,JGID,GHRQ,YYPKEY,SFYY,MZJSPKEY,SFJH,CFH,CARDPKEY,JZKH,GHSFMS,THSJ,THRY,GHZT,JZSJ,JZRY,FZSJ,FZRY,SFJZ,SFFZ,EMSSDJBPKEY,LOCKFLAG,SFBD,SFXZLHFF from HIS_JZ_GHB where JGID=? and PKEY=?</sql>
|
|
<tables>
|
|
<table name="HIS_JZ_GHB" insert="true" update="true" delete="true">
|
|
<primary>GHZT</primary>
|
|
<primary>PKEY</primary>
|
|
<primary>JZPKEY</primary>
|
|
<primary>HZPKEY</primary>
|
|
<primary>JGID</primary>
|
|
</table>
|
|
</tables>
|
|
<fields>
|
|
<f name="PKEY" type="12" table="HIS_JZ_GHB" />
|
|
<f name="JZPKEY" type="12" table="HIS_JZ_GHB" />
|
|
<f name="HZPKEY" type="12" table="HIS_JZ_GHB" />
|
|
<f name="GHNUM" type="12" table="HIS_JZ_GHB" />
|
|
<f name="FPHM" type="12" table="HIS_JZ_GHB" />
|
|
<f name="SFDYFP" type="12" table="HIS_JZ_GHB" />
|
|
<f name="GHLB" type="12" table="HIS_JZ_GHB" />
|
|
<f name="GHKS" type="12" table="HIS_JZ_GHB" />
|
|
<f name="GHSJ" type="93" table="HIS_JZ_GHB" />
|
|
<f name="GHRY" type="12" table="HIS_JZ_GHB" />
|
|
<f name="GHPBPKEY" type="12" table="HIS_JZ_GHB" />
|
|
<f name="JZZS" type="12" table="HIS_JZ_GHB" />
|
|
<f name="JZSD" type="12" table="HIS_JZ_GHB" />
|
|
<f name="SFZZ" type="12" table="HIS_JZ_GHB" />
|
|
<f name="ZZKS" type="12" table="HIS_JZ_GHB" />
|
|
<f name="ZZYS" type="12" table="HIS_JZ_GHB" />
|
|
<f name="SFZDPKEY" type="12" table="HIS_JZ_GHB" />
|
|
<f name="YBZF" type="8" table="HIS_JZ_GHB" />
|
|
<f name="GRZF" type="8" table="HIS_JZ_GHB" />
|
|
<f name="GHYS" type="12" table="HIS_JZ_GHB" />
|
|
<f name="CJR" type="12" table="HIS_JZ_GHB" />
|
|
<f name="CJRQ" type="93" table="HIS_JZ_GHB" />
|
|
<f name="JGID" type="12" table="HIS_JZ_GHB" />
|
|
<f name="GHRQ" type="12" table="HIS_JZ_GHB" />
|
|
<f name="YYPKEY" type="12" table="HIS_JZ_GHB" />
|
|
<f name="SFYY" type="12" table="HIS_JZ_GHB" />
|
|
<f name="MZJSPKEY" type="12" table="HIS_JZ_GHB" />
|
|
<f name="SFJH" type="12" table="HIS_JZ_GHB" />
|
|
<f name="CFH" type="12" table="HIS_JZ_GHB" />
|
|
<f name="CARDPKEY" type="12" table="HIS_JZ_GHB" />
|
|
<f name="JZKH" type="12" table="HIS_JZ_GHB" />
|
|
<f name="GHSFMS" type="12" table="HIS_JZ_GHB" />
|
|
<f name="THSJ" type="93" table="HIS_JZ_GHB" />
|
|
<f name="THRY" type="12" table="HIS_JZ_GHB" />
|
|
<f name="GHZT" type="12" table="HIS_JZ_GHB" />
|
|
<f name="JZSJ" type="93" table="HIS_JZ_GHB" />
|
|
<f name="JZRY" type="12" table="HIS_JZ_GHB" />
|
|
<f name="FZSJ" type="93" table="HIS_JZ_GHB" />
|
|
<f name="FZRY" type="12" table="HIS_JZ_GHB" />
|
|
<f name="SFJZ" type="12" table="HIS_JZ_GHB" />
|
|
<f name="SFFZ" type="12" table="HIS_JZ_GHB" />
|
|
<f name="EMSSDJBPKEY" type="12" table="HIS_JZ_GHB" />
|
|
<f name="LOCKFLAG" type="-5" table="HIS_JZ_GHB" />
|
|
<f name="SFBD" type="12" table="HIS_JZ_GHB" />
|
|
<f name="SFXZLHFF" type="12" table="HIS_JZ_GHB" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
</parameter>
|
|
</dao>
|
|
|
|
<dao id="mzghJzGhbAllDao" log="true" type="1">
|
|
<sql><![CDATA[select PKEY,JZPKEY,HZPKEY,GHNUM,FPHM,SFDYFP,GHLB,GHKS,GHSJ,GHRY,GHPBPKEY,JZZS,JZSD,SFZZ,ZZKS,ZZYS,SFZDPKEY,YBZF,GRZF,GHYS,CJR,CJRQ,JGID,GHRQ,YYPKEY,SFYY,MZJSPKEY,SFJH,CFH,CARDPKEY,JZKH,GHSFMS,THSJ,THRY,GHZT,JZSJ,JZRY,FZSJ,FZRY,SFJZ,SFFZ,EMSSDJBPKEY,LOCKFLAG,SFBD,SFXZLHFF from HIS_JZ_GHB where JGID=? and CJRQ > ? and CJRQ <=?]]></sql>
|
|
<tables>
|
|
<table name="HIS_JZ_GHB" insert="true" update="true" delete="true">
|
|
<primary>GHZT</primary>
|
|
<primary>PKEY</primary>
|
|
<primary>JZPKEY</primary>
|
|
<primary>HZPKEY</primary>
|
|
<primary>JGID</primary>
|
|
</table>
|
|
</tables>
|
|
<fields>
|
|
<f name="PKEY" type="12" table="HIS_JZ_GHB" />
|
|
<f name="JZPKEY" type="12" table="HIS_JZ_GHB" />
|
|
<f name="HZPKEY" type="12" table="HIS_JZ_GHB" />
|
|
<f name="GHNUM" type="12" table="HIS_JZ_GHB" />
|
|
<f name="FPHM" type="12" table="HIS_JZ_GHB" />
|
|
<f name="SFDYFP" type="12" table="HIS_JZ_GHB" />
|
|
<f name="GHLB" type="12" table="HIS_JZ_GHB" />
|
|
<f name="GHKS" type="12" table="HIS_JZ_GHB" />
|
|
<f name="GHSJ" type="93" table="HIS_JZ_GHB" />
|
|
<f name="GHRY" type="12" table="HIS_JZ_GHB" />
|
|
<f name="GHPBPKEY" type="12" table="HIS_JZ_GHB" />
|
|
<f name="JZZS" type="12" table="HIS_JZ_GHB" />
|
|
<f name="JZSD" type="12" table="HIS_JZ_GHB" />
|
|
<f name="SFZZ" type="12" table="HIS_JZ_GHB" />
|
|
<f name="ZZKS" type="12" table="HIS_JZ_GHB" />
|
|
<f name="ZZYS" type="12" table="HIS_JZ_GHB" />
|
|
<f name="SFZDPKEY" type="12" table="HIS_JZ_GHB" />
|
|
<f name="YBZF" type="8" table="HIS_JZ_GHB" />
|
|
<f name="GRZF" type="8" table="HIS_JZ_GHB" />
|
|
<f name="GHYS" type="12" table="HIS_JZ_GHB" />
|
|
<f name="CJR" type="12" table="HIS_JZ_GHB" />
|
|
<f name="CJRQ" type="93" table="HIS_JZ_GHB" />
|
|
<f name="JGID" type="12" table="HIS_JZ_GHB" />
|
|
<f name="GHRQ" type="12" table="HIS_JZ_GHB" />
|
|
<f name="YYPKEY" type="12" table="HIS_JZ_GHB" />
|
|
<f name="SFYY" type="12" table="HIS_JZ_GHB" />
|
|
<f name="MZJSPKEY" type="12" table="HIS_JZ_GHB" />
|
|
<f name="SFJH" type="12" table="HIS_JZ_GHB" />
|
|
<f name="CFH" type="12" table="HIS_JZ_GHB" />
|
|
<f name="CARDPKEY" type="12" table="HIS_JZ_GHB" />
|
|
<f name="JZKH" type="12" table="HIS_JZ_GHB" />
|
|
<f name="GHSFMS" type="12" table="HIS_JZ_GHB" />
|
|
<f name="THSJ" type="93" table="HIS_JZ_GHB" />
|
|
<f name="THRY" type="12" table="HIS_JZ_GHB" />
|
|
<f name="GHZT" type="12" table="HIS_JZ_GHB" />
|
|
<f name="JZSJ" type="93" table="HIS_JZ_GHB" />
|
|
<f name="JZRY" type="12" table="HIS_JZ_GHB" />
|
|
<f name="FZSJ" type="93" table="HIS_JZ_GHB" />
|
|
<f name="FZRY" type="12" table="HIS_JZ_GHB" />
|
|
<f name="SFJZ" type="12" table="HIS_JZ_GHB" />
|
|
<f name="SFFZ" type="12" table="HIS_JZ_GHB" />
|
|
<f name="EMSSDJBPKEY" type="12" table="HIS_JZ_GHB" />
|
|
<f name="LOCKFLAG" type="-5" table="HIS_JZ_GHB" />
|
|
<f name="SFBD" type="12" table="HIS_JZ_GHB" />
|
|
<f name="SFXZLHFF" type="12" table="HIS_JZ_GHB" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
</parameter>
|
|
</dao>
|
|
|
|
<dao id="mzghJzGhQueueDao" log="true" type="1">
|
|
<sql>select PKEY,JZPKEY,HZPKEY,GHPKEY,JZSJ,JZYS,PDZT,PDHM,GHLB,HJZT,PDYXJ,CJR,CJRQ,JGID,LOCKFLAG from HIS_JZ_GHQUEUE where JGID=? and JZPKEY=? and GHPKEY=?</sql>
|
|
<tables>
|
|
<table name="HIS_JZ_GHQUEUE" insert="true" update="true" delete="true">
|
|
<primary>PKEY</primary>
|
|
<primary>JZPKEY</primary>
|
|
<primary>HZPKEY</primary>
|
|
<primary>GHPKEY</primary>
|
|
<primary>PDZT</primary>
|
|
<primary>HJZT</primary>
|
|
<primary>PDYXJ</primary>
|
|
</table>
|
|
</tables>
|
|
<fields>
|
|
<f name="PKEY" type="12" table="HIS_JZ_GHQUEUE" />
|
|
<f name="JZPKEY" type="12" table="HIS_JZ_GHQUEUE" />
|
|
<f name="HZPKEY" type="12" table="HIS_JZ_GHQUEUE" />
|
|
<f name="GHPKEY" type="12" table="HIS_JZ_GHQUEUE" />
|
|
<f name="JZSJ" type="93" table="HIS_JZ_GHQUEUE" />
|
|
<f name="JZYS" type="12" table="HIS_JZ_GHQUEUE" />
|
|
<f name="PDZT" type="12" table="HIS_JZ_GHQUEUE" />
|
|
<f name="PDHM" type="12" table="HIS_JZ_GHQUEUE" />
|
|
<f name="GHLB" type="12" table="HIS_JZ_GHQUEUE" />
|
|
<f name="HJZT" type="12" table="HIS_JZ_GHQUEUE" />
|
|
<f name="PDYXJ" type="12" table="HIS_JZ_GHQUEUE" />
|
|
<f name="CJR" type="12" table="HIS_JZ_GHQUEUE" />
|
|
<f name="CJRQ" type="93" table="HIS_JZ_GHQUEUE" />
|
|
<f name="JGID" type="12" table="HIS_JZ_GHQUEUE" />
|
|
<f name="LOCKFLAG" type="-5" table="HIS_JZ_GHQUEUE" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
</parameter>
|
|
</dao>
|
|
|
|
|
|
|
|
<dao id="mzghHasGhDao" type="1">
|
|
<sql>
|
|
select D.JZZT,A.PKEY GHPKEY,D.JZNO,A.GHLB,A.GHKS,A.JZZS,B.PDZT,C.JSZT,D.JZKH,D.PKEY JZPKEY,C.HZZFE,A.GHPBPKEY,A.GHRQ,A.YYPKEY,D.MZNO,A.FPHM,A.GHRY,A.HZPKEY,A.GHYS,E.PKEY MZFPPKEY,A.SFXZLHFF from HIS_JZ_GHB A left join HIS_JZ_GHQUEUE B on A.JGID=B.JGID AND A.PKEY=B.GHPKEY LEFT JOIN HIS_SFZD_ZB C ON A.JGID=C.JGID AND A.SFZDPKEY=C.PKEY LEFT JOIN HIS_JZ_BASEINFO D ON A.JGID=D.JGID AND A.PKEY=D.GHPKEY left join HIS_MZJS_MZFPZB E on C.PKEY=E.GLZDBPKEY AND C.JGID=E.JGID WHERE A.JGID=? AND A.HZPKEY=? AND A.GHRQ=? AND D.JZZT='P' AND A.GHSFMS='1' ORDER BY A.CJRQ desc
|
|
|
|
</sql>
|
|
<fields>
|
|
<f name="JZZT" type="12" />
|
|
<f name="GHPKEY" type="12" />
|
|
<f name="JZNO" type="12" />
|
|
<f name="GHLB" type="12" />
|
|
<f name="GHKS" type="12" />
|
|
<f name="JZZS" type="12" />
|
|
<f name="PDZT" type="12" />
|
|
<f name="JSZT" type="12" />
|
|
<f name="JZKH" type="12" />
|
|
<f name="JZPKEY" type="12" />
|
|
<f name="HZZFE" type="12" />
|
|
<f name="GHPBPKEY" type="12" />
|
|
<f name="GHRQ" type="12" />
|
|
<f name="YYPKEY" type="12" />
|
|
<f name="MZNO" type="12" />
|
|
<f name="FPHM" type="12" />
|
|
<f name="GHRY" type="12" />
|
|
<f name="HZPKEY" type="12" />
|
|
<f name="GHYS" type="12" />
|
|
<f name="MZFPPKEY" type="12" />
|
|
<f name="SFXZLHFF" type="12" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
</parameter>
|
|
</dao>
|
|
|
|
|
|
|
|
<dao id="mzghNewKzflsDao" log="true" type="1">
|
|
<sql>select PKEY,HZPKEY,CARDPKEY,ZHPKEY,FPZBPKEY,CZRY,CZRQ,ZFJE,ZHYE,ZFKS,CJR,CJRQ,JGID,PJH,JZPKEY,FPZFFSPKEY,JKTYPE,ZFLX,LOCKFLAG from HIS_HZZH_KZFLS where 1=2</sql>
|
|
<tables>
|
|
<table name="HIS_HZZH_KZFLS" insert="true" update="true" delete="true">
|
|
<primary>PKEY</primary>
|
|
<primary>JGID</primary>
|
|
</table>
|
|
</tables>
|
|
<fields>
|
|
<f name="PKEY" type="12" table="HIS_HZZH_KZFLS" />
|
|
<f name="HZPKEY" type="12" table="HIS_HZZH_KZFLS" />
|
|
<f name="CARDPKEY" type="12" table="HIS_HZZH_KZFLS" />
|
|
<f name="ZHPKEY" type="12" table="HIS_HZZH_KZFLS" />
|
|
<f name="FPZBPKEY" type="12" table="HIS_HZZH_KZFLS" />
|
|
<f name="CZRY" type="12" table="HIS_HZZH_KZFLS" />
|
|
<f name="CZRQ" type="93" table="HIS_HZZH_KZFLS" />
|
|
<f name="ZFJE" type="8" table="HIS_HZZH_KZFLS" />
|
|
<f name="ZHYE" type="8" table="HIS_HZZH_KZFLS" />
|
|
<f name="ZFKS" type="12" table="HIS_HZZH_KZFLS" />
|
|
<f name="CJR" type="12" table="HIS_HZZH_KZFLS" />
|
|
<f name="CJRQ" type="93" table="HIS_HZZH_KZFLS" />
|
|
<f name="JGID" type="12" table="HIS_HZZH_KZFLS" />
|
|
<f name="PJH" type="12" table="HIS_HZZH_KZFLS" />
|
|
<f name="JZPKEY" type="12" table="HIS_HZZH_KZFLS" />
|
|
<f name="FPZFFSPKEY" type="12" table="HIS_HZZH_KZFLS" />
|
|
<f name="JKTYPE" type="12" table="HIS_HZZH_KZFLS" />
|
|
<f name="ZFLX" type="12" table="HIS_HZZH_KZFLS" />
|
|
<f name="LOCKFLAG" type="-5" table="HIS_HZZH_KZFLS" />
|
|
</fields>
|
|
</dao>
|
|
|
|
|
|
|
|
<dao id="mzghNewMzfpzbDao" log="true" type="1">
|
|
<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,JJZF,GRZH,YYBC,GRPAY,SYJE,YSSFJE,TCZF,DBBX,YLJZ,GWYBZ,QYBC from HIS_MZJS_MZFPZB where 1=2</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" />
|
|
<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="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" />
|
|
</fields>
|
|
</dao>
|
|
|
|
|
|
|
|
<dao id="mzghNewMzfpsflbbDao" log="true" type="1">
|
|
<sql>select PKEY,MZFPPKEY,FYLBBM,FYLBMC,FYLBJE,CJR,CJRQ,JGID,LOCKFLAG from HIS_MZJS_MZFPSFLBB where 1=2</sql>
|
|
<tables>
|
|
<table name="HIS_MZJS_MZFPSFLBB" insert="true" update="true" delete="true">
|
|
<primary>PKEY</primary>
|
|
<primary>JGID</primary>
|
|
</table>
|
|
</tables>
|
|
//PKEY,MZFPPKEY,FYLBBM,FYLBMC,FYLBJE,CJR,CJRQ,JGID
|
|
<fields>
|
|
<f name="PKEY" type="12" table="HIS_MZJS_MZFPSFLBB" />
|
|
<f name="MZFPPKEY" type="12" table="HIS_MZJS_MZFPSFLBB" />
|
|
<f name="FYLBBM" type="12" table="HIS_MZJS_MZFPSFLBB" />
|
|
<f name="FYLBMC" type="12" table="HIS_MZJS_MZFPSFLBB" />
|
|
<f name="FYLBJE" type="8" table="HIS_MZJS_MZFPSFLBB" />
|
|
<f name="CJR" type="12" table="HIS_MZJS_MZFPSFLBB" />
|
|
<f name="CJRQ" type="93" table="HIS_MZJS_MZFPSFLBB" />
|
|
<f name="JGID" type="12" table="HIS_MZJS_MZFPSFLBB" />
|
|
<f name="LOCKFLAG" type="-5" table="HIS_MZJS_MZFPSFLBB" />
|
|
</fields>
|
|
</dao>
|
|
|
|
|
|
|
|
<dao id="mzghNewMzfpzffsbDao" log="true" type="1">
|
|
<sql>select PKEY,MZFPPKEY,ZFXH,ZFLX,ZFZPM,ZFBANK,PJZT,JZPKEY,CJR,CJRQ,JGID,ZFJE,LOCKFLAG,PAY_ORD_PKEY from HIS_MZJS_MZFPZFFSB where 1=2</sql>
|
|
<tables>
|
|
<table name="HIS_MZJS_MZFPZFFSB" insert="true" update="true" delete="true">
|
|
<primary>PKEY</primary>
|
|
</table>
|
|
</tables>
|
|
//PKEY,MZFPZBPKEY,ZFXH,ZFLX,ZFZPM,ZFBANK,PJZT,JZPKEY,CJR,CJRQ,JGID
|
|
<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" />
|
|
<f name="PAY_ORD_PKEY" type="12" table="HIS_MZJS_MZFPZFFSB" />
|
|
</fields>
|
|
</dao>
|
|
|
|
|
|
|
|
<dao id="mzghYzmxDao" log="true" type="1">
|
|
<sql>select PKEY,HZPKEY,JZPKEY,JZH,CFH,YZCL,YZLB,YZLX,YZXPKEY,YZSHZT,YZXH,YZJL,YZJLDW,YZPC,YZTS,YZYF,YZZCYYF,YZZCYYFMS,YZTZH,YZXZSJ,YZXZYS,YZLRYS,YZJE,YZSL,YZJX,YZBEGINJDSJ,YZENDJDSJ,YZBEGINZXSJ,YZZXSJ,YZYTZSJ,YZTZSJ,YZDJ,YZBEGINJDHS,YZENDJDHS,YZTZYS,YZZT,YZFYLB,YZDAYCS,YZJDBZ,YZYX,YZZDY,YZXZSXYS,YZTZSXYS,ZYCS,YZXZRLX,YZCXR,YZCXBZ,YZCXSJ,YZCXYY,YZFYZH,YZSFZYZ,YZSCZXCS,YZZTPKEY,YZDS,YZJJBZ,CJR,CJRQ,JGID,YZLC,YZGLYZ,YZSYCS,YZZXKS,YZKZXTS,PS,PSBZ,YZFJSM,YZFB,YZSYLS,YZLSDW,YZSFPY,YZCLTM,YZCLYY,YZBZ,YZBBLX,YZDW,YZXZKS,YZZL,YZJZJLXS,YZJZZHXS,YPYZJBJG,YPYZJBDW,YPYZBZJG,YPYZBZDW,YPYZDXDW,YPYZDXSL,YPYZZHXS,YZMC,YZSFZT,YZTFSL from HIS_YZ_MXB where JGID=? and HZPKEY=? and JZPKEY=? and CFH=?</sql>
|
|
<tables>
|
|
<table name="HIS_YZ_MXB" insert="true" update="true" delete="true">
|
|
<primary>PKEY</primary>
|
|
<primary>HZPKEY</primary>
|
|
<primary>JZPKEY</primary>
|
|
<primary>CFH</primary>
|
|
<primary>JGID</primary>
|
|
<primary>YZTFSL</primary>
|
|
</table>
|
|
</tables>
|
|
<fields>
|
|
<f name="PKEY" type="12" table="HIS_YZ_MXB" />
|
|
<f name="HZPKEY" type="12" table="HIS_YZ_MXB" />
|
|
<f name="JZPKEY" type="12" table="HIS_YZ_MXB" />
|
|
<f name="JZH" type="12" table="HIS_YZ_MXB" />
|
|
<f name="CFH" type="12" table="HIS_YZ_MXB" />
|
|
<f name="YZCL" type="12" table="HIS_YZ_MXB" />
|
|
<f name="YZLB" type="12" table="HIS_YZ_MXB" />
|
|
<f name="YZLX" type="12" table="HIS_YZ_MXB" />
|
|
<f name="YZXPKEY" type="12" table="HIS_YZ_MXB" />
|
|
<f name="YZSHZT" type="12" table="HIS_YZ_MXB" />
|
|
<f name="YZXH" type="12" table="HIS_YZ_MXB" />
|
|
<f name="YZJL" type="12" table="HIS_YZ_MXB" />
|
|
<f name="YZJLDW" type="12" table="HIS_YZ_MXB" />
|
|
<f name="YZPC" type="12" table="HIS_YZ_MXB" />
|
|
<f name="YZTS" type="12" table="HIS_YZ_MXB" />
|
|
<f name="YZYF" type="12" table="HIS_YZ_MXB" />
|
|
<f name="YZZCYYF" type="12" table="HIS_YZ_MXB" />
|
|
<f name="YZZCYYFMS" type="12" table="HIS_YZ_MXB" />
|
|
<f name="YZTZH" type="12" table="HIS_YZ_MXB" />
|
|
<f name="YZXZSJ" type="93" table="HIS_YZ_MXB" />
|
|
<f name="YZXZYS" type="12" table="HIS_YZ_MXB" />
|
|
<f name="YZLRYS" type="12" table="HIS_YZ_MXB" />
|
|
<f name="YZJE" type="12" table="HIS_YZ_MXB" />
|
|
<f name="YZSL" type="12" table="HIS_YZ_MXB" />
|
|
<f name="YZJX" type="12" table="HIS_YZ_MXB" />
|
|
<f name="YZBEGINJDSJ" type="93" table="HIS_YZ_MXB" />
|
|
<f name="YZENDJDSJ" type="93" table="HIS_YZ_MXB" />
|
|
<f name="YZBEGINZXSJ" type="93" table="HIS_YZ_MXB" />
|
|
<f name="YZZXSJ" type="93" table="HIS_YZ_MXB" />
|
|
<f name="YZYTZSJ" type="93" table="HIS_YZ_MXB" />
|
|
<f name="YZTZSJ" type="93" table="HIS_YZ_MXB" />
|
|
<f name="YZDJ" type="12" table="HIS_YZ_MXB" />
|
|
<f name="YZBEGINJDHS" type="12" table="HIS_YZ_MXB" />
|
|
<f name="YZENDJDHS" type="12" table="HIS_YZ_MXB" />
|
|
<f name="YZTZYS" type="12" table="HIS_YZ_MXB" />
|
|
<f name="YZZT" type="12" table="HIS_YZ_MXB" />
|
|
<f name="YZFYLB" type="12" table="HIS_YZ_MXB" />
|
|
<f name="YZDAYCS" type="12" table="HIS_YZ_MXB" />
|
|
<f name="YZJDBZ" type="12" table="HIS_YZ_MXB" />
|
|
<f name="YZYX" type="12" table="HIS_YZ_MXB" />
|
|
<f name="YZZDY" type="12" table="HIS_YZ_MXB" />
|
|
<f name="YZXZSXYS" type="12" table="HIS_YZ_MXB" />
|
|
<f name="YZTZSXYS" type="12" table="HIS_YZ_MXB" />
|
|
<f name="ZYCS" type="12" table="HIS_YZ_MXB" />
|
|
<f name="YZXZRLX" type="12" table="HIS_YZ_MXB" />
|
|
<f name="YZCXR" type="12" table="HIS_YZ_MXB" />
|
|
<f name="YZCXBZ" type="12" table="HIS_YZ_MXB" />
|
|
<f name="YZCXSJ" type="93" table="HIS_YZ_MXB" />
|
|
<f name="YZCXYY" type="12" table="HIS_YZ_MXB" />
|
|
<f name="YZFYZH" type="12" table="HIS_YZ_MXB" />
|
|
<f name="YZSFZYZ" type="12" table="HIS_YZ_MXB" />
|
|
<f name="YZSCZXCS" type="12" table="HIS_YZ_MXB" />
|
|
<f name="YZZTPKEY" type="12" table="HIS_YZ_MXB" />
|
|
<f name="YZDS" type="12" table="HIS_YZ_MXB" />
|
|
<f name="YZJJBZ" type="12" table="HIS_YZ_MXB" />
|
|
<f name="CJR" type="12" table="HIS_YZ_MXB" />
|
|
<f name="CJRQ" type="93" table="HIS_YZ_MXB" />
|
|
<f name="JGID" type="12" table="HIS_YZ_MXB" />
|
|
<f name="YZLC" type="12" table="HIS_YZ_MXB" />
|
|
<f name="YZGLYZ" type="12" table="HIS_YZ_MXB" />
|
|
<f name="YZSYCS" type="12" table="HIS_YZ_MXB" />
|
|
<f name="YZZXKS" type="12" table="HIS_YZ_MXB" />
|
|
<f name="YZKZXTS" type="12" table="HIS_YZ_MXB" />
|
|
<f name="PS" type="12" table="HIS_YZ_MXB" />
|
|
<f name="PSBZ" type="12" table="HIS_YZ_MXB" />
|
|
<f name="YZFJSM" type="12" table="HIS_YZ_MXB" />
|
|
<f name="YZFB" type="12" table="HIS_YZ_MXB" />
|
|
<f name="YZSYLS" type="12" table="HIS_YZ_MXB" />
|
|
<f name="YZLSDW" type="12" table="HIS_YZ_MXB" />
|
|
<f name="YZSFPY" type="12" table="HIS_YZ_MXB" />
|
|
<f name="YZCLTM" type="12" table="HIS_YZ_MXB" />
|
|
<f name="YZCLYY" type="12" table="HIS_YZ_MXB" />
|
|
<f name="YZBZ" type="12" table="HIS_YZ_MXB" />
|
|
<f name="YZBBLX" type="12" table="HIS_YZ_MXB" />
|
|
<f name="YZDW" type="12" table="HIS_YZ_MXB" />
|
|
<f name="YZXZKS" type="12" table="HIS_YZ_MXB" />
|
|
<f name="YZZL" type="12" table="HIS_YZ_MXB" />
|
|
<f name="YZJZJLXS" type="12" table="HIS_YZ_MXB" />
|
|
<f name="YZJZZHXS" type="12" table="HIS_YZ_MXB" />
|
|
<f name="YPYZJBJG" type="12" table="HIS_YZ_MXB" />
|
|
<f name="YPYZJBDW" type="12" table="HIS_YZ_MXB" />
|
|
<f name="YPYZBZJG" type="12" table="HIS_YZ_MXB" />
|
|
<f name="YPYZBZDW" type="12" table="HIS_YZ_MXB" />
|
|
<f name="YPYZDXDW" type="12" table="HIS_YZ_MXB" />
|
|
<f name="YPYZDXSL" type="12" table="HIS_YZ_MXB" />
|
|
<f name="YPYZZHXS" type="12" table="HIS_YZ_MXB" />
|
|
<f name="YZMC" type="12" table="HIS_YZ_MXB" />
|
|
<f name="YZSFZT" type="12" table="HIS_YZ_MXB" />
|
|
<f name="YZTFSL" type="12" table="HIS_YZ_MXB" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
</parameter>
|
|
</dao>
|
|
|
|
|
|
|
|
|
|
<dao id="mzghMzfpDao" log="true" type="1">
|
|
<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,JJZF,GRZH,YYBC,GRPAY,SYJE,YSSFJE,TCZF,DBBX,YLJZ,GWYBZ,QYBC from HIS_MZJS_MZFPZB where JGID=? and GLZDBPKEY=? and JZPKEY=? and HZPKEY=?</sql>
|
|
<tables>
|
|
<table name="HIS_MZJS_MZFPZB" insert="true" update="true" delete="true">
|
|
<primary>PKEY</primary>
|
|
<primary>GLZDBPKEY</primary>
|
|
<primary>JZPKEY</primary>
|
|
<primary>JGID</primary>
|
|
<primary>HZPKEY</primary>
|
|
<primary>TFHSF</primary>
|
|
<primary>JZZT</primary>
|
|
<primary>SFZT</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" />
|
|
<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="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" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
</parameter>
|
|
</dao>
|
|
|
|
|
|
|
|
<dao id="mzghMzfpzffsbDao" log="true" type="1">
|
|
<sql>
|
|
select
|
|
t.PKEY
|
|
,t.MZFPPKEY
|
|
,t.ZFXH
|
|
,t.ZFLX
|
|
,t.ZFZPM
|
|
,t.ZFBANK
|
|
,t.PJZT
|
|
,t.JZPKEY
|
|
,t.CJR
|
|
,t.CJRQ
|
|
,t.JGID
|
|
,t.ZFJE
|
|
,t.LOCKFLAG
|
|
,t.PAY_ORD_PKEY
|
|
,(select p.TRANS_STATUS from PAY_ORD p where p.JGID = t.JGID and p.PKEY = t.PAY_ORD_PKEY) as TRANS_STATUS
|
|
from HIS_MZJS_MZFPZFFSB t
|
|
where t.JGID=?
|
|
and t.MZFPPKEY=?
|
|
and t.JZPKEY=?
|
|
</sql>
|
|
<tables>
|
|
<table name="HIS_MZJS_MZFPZFFSB" insert="true" update="true" delete="true">
|
|
<primary>PKEY</primary>
|
|
<primary>MZFPPKEY</primary>
|
|
<primary>JZPKEY</primary>
|
|
<primary>JGID</primary>
|
|
</table>
|
|
</tables>
|
|
//PKEY,MZFPPKEY,ZFXH,ZFLX,ZFZPM,ZFBANK,PJZT,JZPKEY,CJR,CJRQ,JGID,ZFJE
|
|
<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" />
|
|
<f name="PAY_ORD_PKEY" type="12" table="HIS_MZJS_MZFPZFFSB" />
|
|
<f name="TRANS_STATUS" type="12" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
</parameter>
|
|
</dao>
|
|
|
|
<dao id="mzghMzfpzffsbForPayTfDao" log="true" type="1">
|
|
<sql>
|
|
select
|
|
p.PKEY
|
|
,p.TRANS_STATUS
|
|
from HIS_MZJS_MZFPZFFSB t
|
|
left join HIS_MZJS_MZFPZB fp on fp.JGID = t.JGID and fp.PKEY = t.MZFPPKEY
|
|
left join HIS_MZJS_MZFPZB fpt on fpt.JGID = fp.JGID and fpt.PKEY = fp.CHPKEY
|
|
right join HIS_MZJS_MZFPZFFSB tt on tt.JGID = fpt.JGID and tt.MZFPPKEY = fpt.PKEY and tt.ZFLX = '800'
|
|
left join PAY_ORD p on p.JGID = tt.JGID and p.PKEY = tt.PAY_ORD_PKEY
|
|
where t.JGID = ?
|
|
and t.MZFPPKEY = ?
|
|
and t.JZPKEY = ?
|
|
</sql>
|
|
<fields>
|
|
<f name="PKEY" type="12" />
|
|
<f name="TRANS_STATUS" type="12" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
</parameter>
|
|
</dao>
|
|
|
|
|
|
|
|
<dao id="mzghMzfpsflbbDao" log="true" type="1">
|
|
<sql>select PKEY,MZFPPKEY,FYLBBM,FYLBMC,FYLBJE,CJR,CJRQ,JGID,LOCKFLAG from HIS_MZJS_MZFPSFLBB where JGID=? and MZFPPKEY=? order by FYLBBM</sql>
|
|
<tables>
|
|
<table name="HIS_MZJS_MZFPSFLBB" insert="true" update="true" delete="true">
|
|
<primary>PKEY</primary>
|
|
<primary>MZFPPKEY</primary>
|
|
<primary>JGID</primary>
|
|
</table>
|
|
</tables>
|
|
//PKEY,MZFPPKEY,FYLBBM,FYLBMC,FYLBJE,CJR,CJRQ,JGID
|
|
<fields>
|
|
<f name="PKEY" type="12" table="HIS_MZJS_MZFPSFLBB" />
|
|
<f name="MZFPPKEY" type="12" table="HIS_MZJS_MZFPSFLBB" />
|
|
<f name="FYLBBM" type="12" table="HIS_MZJS_MZFPSFLBB" />
|
|
<f name="FYLBMC" type="12" table="HIS_MZJS_MZFPSFLBB" />
|
|
<f name="FYLBJE" type="8" table="HIS_MZJS_MZFPSFLBB" />
|
|
<f name="CJR" type="12" table="HIS_MZJS_MZFPSFLBB" />
|
|
<f name="CJRQ" type="93" table="HIS_MZJS_MZFPSFLBB" />
|
|
<f name="JGID" type="12" table="HIS_MZJS_MZFPSFLBB" />
|
|
<f name="LOCKFLAG" type="-5" table="HIS_MZJS_MZFPSFLBB" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
</parameter>
|
|
</dao>
|
|
|
|
<dao id="zyfphndao" log="true" type="1">
|
|
<sql>
|
|
select z.VALUE2 zyfb,sum(m.DET_ITEM_FEE_SUMAMT) zyje from HIS_YB_SCMX m
|
|
left join HIS_YB_JSB j on m.JGID=j.JGID and m.SETL_ID=j.SETL_ID and m.MDTRT_ID=j.MDTRT_ID and m.IPT_OTP_NO=j.IPT_NO
|
|
left join HIS_SFX s on s.JGID=m.JGID and m.MEDINS_LIST_CODG=s.BM
|
|
left join MAIN_JGZDB z on z.JGID=m.JGID and z.JGZDLB_BH='Z00005' and s.HSZFL=z.BH
|
|
where m.ZT='0' and j.CXZT='0' and m.JGID=? and j.ZDZBPKEY=?
|
|
group by z.VALUE2
|
|
</sql>
|
|
<fields>
|
|
<f name="ZYFB" type="12" />
|
|
<f name="ZYJE" type="4" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
</parameter>
|
|
</dao>
|
|
|
|
<dao id="mzghKzflsDao" log="true" type="1">
|
|
<sql>select PKEY,HZPKEY,CARDPKEY,ZHPKEY,FPZBPKEY,CZRY,CZRQ,ZFJE,ZHYE,ZFKS,CJR,CJRQ,JGID,PJH,JZPKEY,FPZFFSPKEY,JKTYPE,ZFLX,LOCKFLAG from HIS_HZZH_KZFLS where JGID=? and FPZBPKEY=? and FPZFFSPKEY=?</sql>
|
|
<tables>
|
|
<table name="HIS_HZZH_KZFLS" insert="true" update="true" delete="true">
|
|
<primary>PKEY</primary>
|
|
<primary>FPZBPKEY</primary>
|
|
<primary>JGID</primary>
|
|
<primary>FPZFFSPKEY</primary>
|
|
</table>
|
|
</tables>
|
|
<fields>
|
|
<f name="PKEY" type="12" table="HIS_HZZH_KZFLS" />
|
|
<f name="HZPKEY" type="12" table="HIS_HZZH_KZFLS" />
|
|
<f name="CARDPKEY" type="12" table="HIS_HZZH_KZFLS" />
|
|
<f name="ZHPKEY" type="12" table="HIS_HZZH_KZFLS" />
|
|
<f name="FPZBPKEY" type="12" table="HIS_HZZH_KZFLS" />
|
|
<f name="CZRY" type="12" table="HIS_HZZH_KZFLS" />
|
|
<f name="CZRQ" type="93" table="HIS_HZZH_KZFLS" />
|
|
<f name="ZFJE" type="8" table="HIS_HZZH_KZFLS" />
|
|
<f name="ZHYE" type="8" table="HIS_HZZH_KZFLS" />
|
|
<f name="ZFKS" type="12" table="HIS_HZZH_KZFLS" />
|
|
<f name="CJR" type="12" table="HIS_HZZH_KZFLS" />
|
|
<f name="CJRQ" type="93" table="HIS_HZZH_KZFLS" />
|
|
<f name="JGID" type="12" table="HIS_HZZH_KZFLS" />
|
|
<f name="PJH" type="12" table="HIS_HZZH_KZFLS" />
|
|
<f name="JZPKEY" type="12" table="HIS_HZZH_KZFLS" />
|
|
<f name="FPZFFSPKEY" type="12" table="HIS_HZZH_KZFLS" />
|
|
<f name="JKTYPE" type="12" table="HIS_HZZH_KZFLS" />
|
|
<f name="ZFLX" type="12" table="HIS_HZZH_KZFLS" />
|
|
<f name="LOCKFLAG" type="-5" table="HIS_HZZH_KZFLS" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
</parameter>
|
|
</dao>
|
|
|
|
|
|
|
|
<dao id="mzghZflsDao" log="true" type="1">
|
|
<sql>select PKEY,HZPKEY,CARDPKEY,ZHPKEY,FPZBPKEY,CZRY,CZRQ,ZFJE,ZHYE,ZFKS,CJR,CJRQ,JGID,PJH,JZPKEY,FPZFFSPKEY,JKTYPE,ZFLX,LOCKFLAG from HIS_HZZH_KZFLS where JGID=? and HZPKEY=? and JZPKEY=? and FPZBPKEY=? order by zflx</sql>
|
|
<tables>
|
|
<table name="HIS_HZZH_KZFLS" insert="true" update="true" delete="true">
|
|
<primary>PKEY</primary>
|
|
<primary>JGID</primary>
|
|
</table>
|
|
</tables>
|
|
//PKEY,HZPKEY,CARDPKEY,ZHPKEY,FPZBPKEY,CZRY,CZRQ,ZFJE,ZHYE,ZFKS,CJR,CJRQ,JGID,PJH,JZPKEY,FPZFFSPKEY,JKTYPE,ZFLX
|
|
<fields>
|
|
<f name="PKEY" type="12" table="HIS_HZZH_KZFLS" />
|
|
<f name="HZPKEY" type="12" table="HIS_HZZH_KZFLS" />
|
|
<f name="CARDPKEY" type="12" table="HIS_HZZH_KZFLS" />
|
|
<f name="ZHPKEY" type="12" table="HIS_HZZH_KZFLS" />
|
|
<f name="FPZBPKEY" type="12" table="HIS_HZZH_KZFLS" />
|
|
<f name="CZRY" type="12" table="HIS_HZZH_KZFLS" />
|
|
<f name="CZRQ" type="93" table="HIS_HZZH_KZFLS" />
|
|
<f name="ZFJE" type="8" table="HIS_HZZH_KZFLS" />
|
|
<f name="ZHYE" type="8" table="HIS_HZZH_KZFLS" />
|
|
<f name="ZFKS" type="12" table="HIS_HZZH_KZFLS" />
|
|
<f name="CJR" type="12" table="HIS_HZZH_KZFLS" />
|
|
<f name="CJRQ" type="93" table="HIS_HZZH_KZFLS" />
|
|
<f name="JGID" type="12" table="HIS_HZZH_KZFLS" />
|
|
<f name="PJH" type="12" table="HIS_HZZH_KZFLS" />
|
|
<f name="JZPKEY" type="12" table="HIS_HZZH_KZFLS" />
|
|
<f name="FPZFFSPKEY" type="12" table="HIS_HZZH_KZFLS" />
|
|
<f name="JKTYPE" type="12" table="HIS_HZZH_KZFLS" />
|
|
<f name="ZFLX" type="12" table="HIS_HZZH_KZFLS" />
|
|
<f name="LOCKFLAG" type="-5" table="HIS_HZZH_KZFLS" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
</parameter>
|
|
</dao>
|
|
|
|
<dao id="mzghColumnReportDao" type="1" memo="门诊挂号票据打印的列数据dao">
|
|
<sql>select A.PKEY GHPKEY,D.JZNO,A.GHLB,A.GHKS,A.JZZS,B.PDZT,C.JSZT,D.JZKH,D.PKEY JZPKEY,C.HZZFE,A.GHPBPKEY,A.GHRQ,A.YYPKEY,D.MZNO,A.FPHM,A.GHRY,A.HZPKEY,A.GHYS from HIS_JZ_GHB A left join HIS_JZ_GHQUEUE B on A.JGID=B.JGID AND A.PKEY=B.GHPKEY LEFT JOIN HIS_SFZD_ZB C ON A.JGID=C.JGID AND A.SFZDPKEY=C.PKEY LEFT JOIN HIS_JZ_BASEINFO D ON A.JGID=D.JGID AND A.PKEY=D.GHPKEY WHERE A.JGID=? AND A.HZPKEY=? AND A.PKEY=? AND A.GHSFMS='1' </sql>
|
|
<tables>
|
|
<table name="HIS_JZ_BASEINFO" insert="false" update="false" delete="false">
|
|
<primary>GHPKEY</primary>
|
|
</table>
|
|
<table name="HIS_JZ_GHB" insert="false" update="false" delete="false">
|
|
<primary>JZPKEY</primary>
|
|
</table>
|
|
<table name="HIS_SFZD_ZB" insert="false" update="false" delete="false">
|
|
<primary>JSZT</primary>
|
|
</table>
|
|
<table name="HIS_JZ_GHQUEUE" insert="false" update="false" delete="false">
|
|
<primary>GHPKEY</primary>
|
|
</table>
|
|
</tables>
|
|
<fields>
|
|
<f name="GHPKEY" type="12" table="HIS_JZ_BASEINFO,HIS_JZ_GHQUEUE" />
|
|
<f name="JZNO" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="GHLB" type="12" table="HIS_JZ_GHB,HIS_JZ_GHQUEUE" />
|
|
<f name="GHKS" type="12" table="HIS_JZ_GHB" />
|
|
<f name="JZZS" type="12" table="HIS_JZ_GHB" />
|
|
<f name="PDZT" type="12" table="HIS_JZ_GHQUEUE" />
|
|
<f name="JSZT" type="12" table="HIS_SFZD_ZB" />
|
|
<f name="JZKH" type="12" table="HIS_JZ_BASEINFO,HIS_JZ_GHB" />
|
|
<f name="JZPKEY" type="12" table="HIS_JZ_GHB,HIS_SFZD_ZB,HIS_JZ_GHQUEUE" />
|
|
<f name="HZZFE" type="12" table="HIS_SFZD_ZB" />
|
|
<f name="GHPBPKEY" type="12" table="HIS_JZ_GHB" />
|
|
<f name="GHRQ" type="12" table="HIS_JZ_GHB" />
|
|
<f name="YYPKEY" type="12" table="HIS_JZ_GHB" />
|
|
<f name="MZNO" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="FPHM" type="12" table="HIS_JZ_GHB" />
|
|
<f name="GHRY" type="12" table="HIS_JZ_GHB" />
|
|
<f name="HZPKEY" type="12" table="HIS_JZ_GHB" />
|
|
<f name="GHYS" type="12" table="HIS_JZ_GHB" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
</parameter>
|
|
</dao>
|
|
|
|
|
|
<dao id="pbInfoAlreadyAddDao" log="true" type="1" memo="判断门诊挂号的排班信息是否已经设置了的dao">
|
|
<sql>select COUNT(*) num from HIS_GH_PBINFO where JGID=? and YSPKEY=? and KSPKEY=? and CZRQ=? and PBSD=?</sql>
|
|
<fields>
|
|
<f name="num" type="4" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
</parameter>
|
|
</dao>
|
|
|
|
|
|
|
|
<dao id="hzCurrDayGhInfoDao" log="true" type="1" memo="返回患者当天挂号信息dao,不包括已经退了的号">
|
|
<sql>select A.GHKS,A.JZZS,A.GHYS,D.JJKS,D.JJYS from HIS_JZ_GHB A left join HIS_JZ_GHQUEUE B on A.JGID=B.JGID AND A.PKEY=B.GHPKEY LEFT JOIN HIS_SFZD_ZB C ON A.JGID=C.JGID AND A.SFZDPKEY=C.PKEY LEFT JOIN HIS_JZ_BASEINFO D ON A.JGID=D.JGID AND A.PKEY=D.GHPKEY left join HIS_MZJS_MZFPZB E on C.PKEY=E.GLZDBPKEY AND C.JGID=E.JGID WHERE A.JGID=? AND A.HZPKEY=? AND A.GHRQ=? AND (D.JZZT='P' OR D.JZZT='J') ORDER BY A.CJRQ desc </sql>
|
|
<fields>
|
|
<f name="GHKS" type="12" />
|
|
<f name="JZZS" type="12" />
|
|
<f name="GHYS" type="12" />
|
|
<f name="JJKS" type="12" />
|
|
<f name="JJYS" type="12" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
</parameter>
|
|
</dao>
|
|
|
|
|
|
<dao id="mzkspopDao" type="1" memo="门诊科室查询dao">
|
|
<sql>select DPTID,DPTCODE,DPTNAME,DPTRMARK,DPTADDR,DPTLAYER,DPTTYPE,DPTGPID,DPTSEX,DPTZJM,DPTBAGE,DPTEAGE,DPTTXMJC,DPTYBCODE,CJR,CJRQ,XGR,XGRQ,JGID,DPTFLAG from MAIN_KS where JGID=? and ISMZ=1 and (DPTCODE like ? or DPTNAME like ? or DPTZJM like ?) and DPTFLAG=1 order by DPTCODE</sql>
|
|
<tables>
|
|
<table delete="true" insert="true" name="MAIN_KS" update="true">
|
|
<primary>DPTID</primary>
|
|
<primary>DPTCODE</primary>
|
|
<primary>JGID</primary>
|
|
</table>
|
|
</tables>
|
|
<fields>
|
|
<f name="DPTID" table="MAIN_KS" type="12"/>
|
|
<f name="DPTCODE" table="MAIN_KS" type="12"/>
|
|
<f name="DPTNAME" table="MAIN_KS" type="12"/>
|
|
<f name="DPTRMARK" table="MAIN_KS" type="12"/>
|
|
<f name="DPTADDR" table="MAIN_KS" type="12"/>
|
|
<f name="DPTLAYER" table="MAIN_KS" type="12"/>
|
|
<f name="DPTTYPE" table="MAIN_KS" type="12"/>
|
|
<f name="DPTGPID" table="MAIN_KS" type="12"/>
|
|
<f name="DPTSEX" table="MAIN_KS" type="12"/>
|
|
<f name="DPTZJM" table="MAIN_KS" type="12"/>
|
|
<f name="DPTBAGE" table="MAIN_KS" type="12"/>
|
|
<f name="DPTEAGE" table="MAIN_KS" type="12"/>
|
|
<f name="DPTTXMJC" table="MAIN_KS" type="12"/>
|
|
<f name="DPTYBCODE" table="MAIN_KS" type="12"/>
|
|
<f name="CJR" table="MAIN_KS" type="12"/>
|
|
<f name="CJRQ" table="MAIN_KS" type="93"/>
|
|
<f name="XGR" table="MAIN_KS" type="12"/>
|
|
<f name="XGRQ" table="MAIN_KS" type="93"/>
|
|
<f name="JGID" table="MAIN_KS" type="12"/>
|
|
<f name="DPTFLAG" table="MAIN_KS" type="-5"/>
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
</parameter>
|
|
</dao>
|
|
|
|
|
|
<dao id="mzghDayReportPayDetailDao" log="true" type="1" memo="门诊挂号日报表收费明细dao">
|
|
<sql><![CDATA[
|
|
|
|
select '0' flag,a.PKEY,a.GLZDBPKEY,a.SJPKEY,a.CLOSEPKEY,a.JZZT,a.JZRQ,a.CHFPHM,a.CHPKEY,a.FPHM,a.HZPKEY,a.PJLX,a.SFRY,a.SFRQ,a.SFZT,a.FPLX,a.FPDRYY,a.YBLX,a.YBZFJE,a.JJZF,a.GRZH,a.YYBC,a.GRPAY,a.SFJE,a.YBJSB,a.CHYY,a.JZPKEY,a.SFDZP,a.CJR,a.CJRQ,a.JGID,a.SFDYFP,a.SFJZDY,a.PJZT,a.TFHSF,a.SFKS,c.JZNO,d.XM,(select sum(FYLBJE) FYLBJE from HIS_MZJS_MZFPSFLBB where MZFPPKEY=a.pkey and JGID=a.JGID) FYLBJE,(select sum(ZFJE) ZFJE from HIS_MZJS_MZFPZFFSB where MZFPPKEY=a.pkey and JGID=a.JGID) ZFJE,a.LOCKFLAG,(select sum(ZFJE) ZFJE from HIS_MZJS_MZFPZFFSB where MZFPPKEY=a.pkey and JGID=a.JGID and ZFLX='90') yjjzf 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 left join HIS_HZINFO d on b.hzpkey=d.pkey and b.JGID=d.JGID where a.JGID=? and a.SFZT != '0' and a.SFRY like ? and a.PJLX='MG' and a.PJZT='1' and a.SFRQ > ? and a.SFRQ <=? order by a.SFRY,a.SFRQ
|
|
|
|
|
|
]]></sql>
|
|
<tables>
|
|
<table name="HIS_MZJS_MZFPZB" insert="true" update="true" delete="true">
|
|
<primary>PKEY</primary>
|
|
<primary>CLOSEPKEY</primary>
|
|
<primary>JZZT</primary>
|
|
<primary>JGID</primary>
|
|
</table>
|
|
</tables>
|
|
<fields>
|
|
<f name="flag" type="12" />
|
|
<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="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="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="JZNO" type="12" />
|
|
<f name="XM" type="12" />
|
|
<f name="FYLBJE" type="12" />
|
|
<f name="ZFJE" type="12" />
|
|
<f name="LOCKFLAG" type="-5" table="HIS_MZJS_MZFPZB" />
|
|
<f name="YJJZF" type="12" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
<p>93</p>
|
|
<p>93</p>
|
|
</parameter>
|
|
</dao>
|
|
|
|
<dao id="mzghDayReportRedflushRDetailDao" log="true" type="1" memo="门诊挂号日报表红冲明细dao">
|
|
<sql><![CDATA[
|
|
|
|
select '0' flag,a.PKEY,a.GLZDBPKEY,a.SJPKEY,a.CLOSEPKEY,a.JZZT,a.JZRQ,a.CHFPHM,a.CHPKEY,a.FPHM,a.HZPKEY,a.PJLX,a.SFRY,a.SFRQ,a.SFZT,a.FPLX,a.FPDRYY,a.YBLX,a.YBZFJE,a.JJZF,a.GRZH,a.YYBC,a.GRPAY,a.SFJE,a.YBJSB,a.CHYY,a.JZPKEY,a.SFDZP,a.CJR,a.CJRQ,a.JGID,a.SFDYFP,a.SFJZDY,a.PJZT,a.TFHSF,a.SFKS,c.JZNO,d.XM,(select sum(FYLBJE) FYLBJE from HIS_MZJS_MZFPSFLBB where MZFPPKEY=a.pkey and JGID=a.JGID) FYLBJE,(select sum(ZFJE) ZFJE from HIS_MZJS_MZFPZFFSB where MZFPPKEY=a.pkey and JGID=a.JGID) ZFJE,a.LOCKFLAG,(select sum(ZFJE) ZFJE from HIS_MZJS_MZFPZFFSB where MZFPPKEY=a.pkey and JGID=a.JGID and ZFLX='90') yjjzf 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 left join HIS_HZINFO d on b.hzpkey=d.pkey and b.JGID=d.JGID where a.JGID=? and a.SFZT != '0' and a.SFRY like ? and a.PJLX='MG' and a.PJZT='2' and a.SFRQ > ? and a.SFRQ <=? order by a.SFRY,a.SFRQ
|
|
|
|
|
|
]]></sql>
|
|
<tables>
|
|
<table name="HIS_MZJS_MZFPZB" insert="true" update="true" delete="true">
|
|
<primary>PKEY</primary>
|
|
<primary>CLOSEPKEY</primary>
|
|
<primary>JZZT</primary>
|
|
<primary>JGID</primary>
|
|
</table>
|
|
</tables>
|
|
<fields>
|
|
<f name="flag" type="12"/>
|
|
<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="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="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="JZNO" type="12" />
|
|
<f name="XM" type="12" />
|
|
<f name="FYLBJE" type="12" />
|
|
<f name="ZFJE" type="12" />
|
|
<f name="LOCKFLAG" type="-5" table="HIS_MZJS_MZFPZB" />
|
|
<f name="YJJZF" type="12" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
<p>93</p>
|
|
<p>93</p>
|
|
</parameter>
|
|
</dao>
|
|
|
|
|
|
<dao id="mzghSfzdSfxmxbByYzmxDao" log="true" type="1">
|
|
<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,b.YZFJSM,a.LOCKFLAG,a.SFXSJZFY,a.SCZT,a.MDTRT_ID,a.SETL_ID,a.HCDJPKEY,b.cfh from HIS_SFZD_SFXMXB a left join HIS_YZ_MXB b on a.JGID=b.JGID and a.YZMX=b.pkey where a.JGID=? and a.YZMX=? </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="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="YZFJSM" type="12"/>
|
|
<f name="LOCKFLAG" type="-5" table="HIS_SFZD_SFXMXB" />
|
|
<f name="SFXSJZFY" type="12" 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="HCDJPKEY" type="12" table="HIS_SFZD_SFXMXB" />
|
|
<f name="CFH" type="12"/>
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
</parameter>
|
|
</dao>
|
|
<dao id="sfcGhListDao" log="true" type="1" memo="收费处挂号列表">
|
|
<sql><![CDATA[
|
|
select D.JZZT,A.PKEY GHPKEY,D.JZNO,A.GHLB,A.GHKS,A.JZZS,B.PDZT,C.JSZT,D.JZKH,D.PKEY JZPKEY,C.HZZFE,A.GHPBPKEY,A.GHRQ,A.YYPKEY,D.MZNO,A.FPHM,A.GHRY,A.HZPKEY,A.GHYS,E.PKEY MZFPPKEY,A.SFXZLHFF ,F.XM,F.XB,F.ZJHM,F.HZLX,F.YBKH,F.PHONE,A.GHSJ,A.GHNUM,E.SFJE from HIS_JZ_GHB A left join HIS_JZ_GHQUEUE B on A.JGID=B.JGID AND A.PKEY=B.GHPKEY LEFT JOIN HIS_SFZD_ZB C ON A.JGID=C.JGID AND A.SFZDPKEY=C.PKEY LEFT JOIN HIS_JZ_BASEINFO D ON A.JGID=D.JGID AND A.PKEY=D.GHPKEY left join HIS_MZJS_MZFPZB E on C.PKEY=E.GLZDBPKEY AND C.JGID=E.JGID LEFT JOIN HIS_HZINFO F ON D.JGID=F.JGID AND D.HZPKEY=F.PKEY WHERE A.JGID=? AND A.GHSFMS='1' ORDER BY A.GHSJ
|
|
|
|
|
|
]]></sql>
|
|
<tables>
|
|
<table name="HIS_JZ_GHB" insert="false" update="false" delete="false">
|
|
<primary>GHLB</primary>
|
|
</table>
|
|
</tables>
|
|
<fields>
|
|
<f name="JZZT" type="12" />
|
|
<f name="GHPKEY" type="12" />
|
|
<f name="JZNO" type="12" />
|
|
<f name="GHLB" type="12" table="HIS_JZ_GHB" />
|
|
<f name="GHKS" type="12" table="HIS_JZ_GHB" />
|
|
<f name="JZZS" type="12" table="HIS_JZ_GHB" />
|
|
<f name="PDZT" type="12" />
|
|
<f name="JSZT" type="12" />
|
|
<f name="JZKH" type="12" table="HIS_JZ_GHB" />
|
|
<f name="JZPKEY" type="12" table="HIS_JZ_GHB" />
|
|
<f name="HZZFE" type="12" />
|
|
<f name="GHPBPKEY" type="12" table="HIS_JZ_GHB" />
|
|
<f name="GHRQ" type="12" table="HIS_JZ_GHB" />
|
|
<f name="YYPKEY" type="12" table="HIS_JZ_GHB" />
|
|
<f name="MZNO" type="12" />
|
|
<f name="FPHM" type="12" table="HIS_JZ_GHB" />
|
|
<f name="GHRY" type="12" table="HIS_JZ_GHB" />
|
|
<f name="HZPKEY" type="12" table="HIS_JZ_GHB" />
|
|
<f name="GHYS" type="12" table="HIS_JZ_GHB" />
|
|
<f name="MZFPPKEY" type="12" />
|
|
<f name="SFXZLHFF" type="12" table="HIS_JZ_GHB" />
|
|
<f name="XM" type="12" />
|
|
<f name="XB" type="12" />
|
|
<f name="ZJHM" type="12" />
|
|
<f name="HZLX" type="12" />
|
|
<f name="YBKH" type="12" />
|
|
<f name="PHONE" type="12" />
|
|
<f name="GHSJ" type="93" table="HIS_JZ_GHB" />
|
|
<f name="GHNUM" type="12" table="HIS_JZ_GHB" />
|
|
<f name="SFJE" type="12" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
</parameter>
|
|
</dao>
|
|
|
|
<dao id="mzghSfzdZfNewZbDao" log="true" type="1">
|
|
<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 ISHC=0 and TFHSFZDPKEY=? and JZPKEY=? </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>SFZXTFHSF</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>
|
|
<p>12</p>
|
|
</parameter>
|
|
</dao>
|
|
|
|
<dao id="mzdoctorLogDao" log="true" type="1" memo="门诊医生日志dao">
|
|
<sql>
|
|
select distinct a.jjrq,a.jjks,a.jjys,a.fbrq,a.jzno,b.xm,b.xb,b.csrq,a.jznl,b.zy,b.xzdz,b.phone,a.JZZB,c.ZS,c.XBS,c.JWS,c.GMS,c.SSY,c.SZY,c.TW,c.MB,c.HX,c.XT,c.CLCS,c.FZJC,c.TGJC,b.LXR,b.LXRDH,b.sfzh,a.HZLX,d.JBBM,d.JBMC from HIS_JZ_BASEINFO a left join HIS_HZINFO b on a.hzpkey=b.pkey and a.JGID=b.JGID left join HIS_JZ_MZBL c on a.pkey=c.jzpkey and a.JGID=c.JGID left join HIS_JZ_MZZD d on a.pkey = d.jzpkey and a.JGID=d.JGID where a.JZLX='M' and a.JZZT='J' and d.SFZZD='1' AND a.JGID=? order by a.JJRQ
|
|
</sql>
|
|
<tables>
|
|
<table name="HIS_JZ_BASEINFO" insert="false" update="false" delete="false">
|
|
<primary>JJRQ</primary>
|
|
</table>
|
|
<table name="HIS_JZ_MZZD " insert="false" update="false" delete="false">
|
|
<primary>JBBM</primary>
|
|
</table>
|
|
<table name="HIS_HZINFO " insert="false" update="false" delete="false">
|
|
<primary>XM</primary>
|
|
</table>
|
|
<table name="HIS_JZ_MZBL" insert="false" update="false" delete="false">
|
|
<primary>ZS</primary>
|
|
</table>
|
|
</tables>
|
|
<fields>
|
|
<f name="JJRQ" type="93" table="HIS_JZ_BASEINFO" />
|
|
<f name="JJKS" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="JJYS" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="FBRQ" type="93" table="HIS_JZ_BASEINFO" />
|
|
<f name="JZNO" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="XM" type="12" table="HIS_HZINFO " />
|
|
<f name="XB" type="12" table="HIS_HZINFO " />
|
|
<f name="CSRQ" type="93" table="HIS_HZINFO " />
|
|
<f name="JZNL" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="ZY" type="12" table="HIS_HZINFO " />
|
|
<f name="XZDZ" type="12" table="HIS_HZINFO " />
|
|
<f name="PHONE" type="12" table="HIS_HZINFO " />
|
|
<f name="JZZB" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="ZS" type="12" table="HIS_JZ_MZBL" />
|
|
<f name="XBS" type="12" table="HIS_JZ_MZBL" />
|
|
<f name="JWS" type="12" table="HIS_JZ_MZBL" />
|
|
<f name="GMS" type="12" table="HIS_JZ_MZBL" />
|
|
<f name="SSY" type="12" table="HIS_JZ_MZBL" />
|
|
<f name="SZY" type="12" table="HIS_JZ_MZBL" />
|
|
<f name="TW" type="12" table="HIS_JZ_MZBL" />
|
|
<f name="MB" type="12" table="HIS_JZ_MZBL" />
|
|
<f name="HX" type="12" table="HIS_JZ_MZBL" />
|
|
<f name="XT" type="12" table="HIS_JZ_MZBL" />
|
|
<f name="CLCS" type="12" table="HIS_JZ_MZBL" />
|
|
<f name="FZJC" type="12" table="HIS_JZ_MZBL" />
|
|
<f name="TGJC" type="12" table="HIS_JZ_MZBL" />
|
|
<f name="LXR" type="12" table="HIS_HZINFO " />
|
|
<f name="LXRDH" type="12" table="HIS_HZINFO " />
|
|
<f name="SFZH" type="12" table="HIS_HZINFO " />
|
|
<f name="HZLX" type="12" table="HIS_JZ_BASEINFO,HIS_HZINFO " />
|
|
<f name="JBBM" type="12" table="HIS_JZ_MZZD " />
|
|
<f name="JBMC" type="12" table="HIS_JZ_MZZD " />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
</parameter>
|
|
</dao>
|
|
|
|
<dao id="mzjzHzjzBaseInfoDao" log="true" type="1">
|
|
<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,ZCBQ,ISFM,FMZT,FMCF,SFLG,LGKSSJ,EMSSDJBPKEY,SFLSTD,LSTDYXQ,ISYYGH,ISTY,ISICU,WYBZ,ZCBZ,ISZYHLTX,ZMPF,BAJY,BABM,BAGD,SDYZFH,SFYFJJFY from HIS_JZ_BASEINFO where JGID=? and HZPKEY=? and PKEY=?</sql>
|
|
<tables>
|
|
<table name="HIS_JZ_BASEINFO" insert="true" update="true" delete="true">
|
|
<primary>PKEY</primary>
|
|
<primary>HZPKEY</primary>
|
|
<primary>JZZT</primary>
|
|
<primary>JZJS</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="ZCBQ" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="ISFM" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="FMZT" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="FMCF" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="SFLG" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="LGKSSJ" type="93" table="HIS_JZ_BASEINFO" />
|
|
<f name="EMSSDJBPKEY" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="SFLSTD" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="LSTDYXQ" type="-5" table="HIS_JZ_BASEINFO" />
|
|
<f name="ISYYGH" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="ISTY" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="ISICU" 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="ISZYHLTX" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="ZMPF" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="BAJY" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="BABM" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="BAGD" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="SDYZFH" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="SFYFJJFY" type="12" table="HIS_JZ_BASEINFO" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
</parameter>
|
|
</dao>
|
|
</datasource>
|
|
|