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

419 lines
27 KiB

<?xml version="1.0" encoding="UTF-8"?>
<datasource>
<!-- 1 表示 sql语句dao 2表示存储过程dao 默认为sql语句dao-->
<dao id="ZyAllInUseYpOrderDao" log="true" type="1">
<sql>
select a.PKEY,a.HZPKEY,a.JZPKEY,a.JZH,a.CFH,a.YZCL,a.YZLB,a.YZLX,a.YZXPKEY,a.YZSHZT,a.YZJL,a.YZJLDW,a.YZPC,a.YZTS,a.YZYF,a.YZZCYYF,a.YZZCYYFMS,a.YZTZH,a.YZXZSJ,a.YZXZYS,a.YZLRYS,a.YZJE,a.YZSL,a.YZJX,a.YZBEGINJDSJ,a.YZENDJDSJ,a.YZBEGINZXSJ,a.YZZXSJ,a.YZYTZSJ,a.YZTZSJ,a.YZDJ,a.YZBEGINJDHS,a.YZENDJDHS,a.YZTZYS,a.YZZT,a.YZFYLB,a.YZDAYCS,a.YZJDBZ,a.YZYX,a.YZZDY,a.YZXZSXYS,a.YZTZSXYS,a.ZYCS,a.YZXZRLX,a.YZCXR,a.YZCXBZ,a.YZCXSJ,a.YZCXYY,a.YZFYZH,a.YZSFZYZ,a.YZSCZXCS,a.YZZTPKEY,a.YZDS,a.YZJJBZ,a.CJR,a.CJRQ,a.JGID,a.YZLC,a.YZGLYZ,a.YZSYCS,a.YZZXKS,a.YZKZXTS,a.PS,a.PSBZ,a.YZFJSM,a.YZFB,a.YZSYLS,a.YZLSDW,a.YZSFPY,a.YZCLTM,a.YZCLYY,a.YZBZ,a.YZBBLX,a.YZDW,a.YZXZKS,a.YZZL,a.YZJZJLXS,a.YZJZZHXS,a.YPYZJBJG,a.YPYZJBDW,a.YPYZBZJG,a.YPYZBZDW,a.YPYZDXDW,a.YPYZDXSL,a.YPYZZHXS,a.YZMC,a.YZSFZT,a.YZTFSL,a.YZDJSL,a.YZYL,a.YZZCYFSKEY,a.YZZCYFS,a.YZZCYJX,a.YZZCYDJF,a.ISDJJS,a.DJJSSL,a.ISZCYDJCL,a.IZZCYDJFJF,a.ISGFFJ,a.YZZCYBZ,a.SQDTYPE,a.SQDPKEY,a.SQDJSPKEY,a.SQDTFJE,a.ZYYZFL,a.YZSHYS,a.YZSHRQ,a.ISZPC,a.YZZPC,a.YZPCFFSJ,a.YZXH,a.PSJG,a.ZCYGLCZLX,a.YZZFR,a.YZZFSJ,a.YZZFYY,a.PSJGSJ,a.PSJGR,a.ISDPBCL,a.HZSZKS,a.LOCKFLAG,a.YFBDZYZPKEY,a.BDYF,a.BDEXECPKEY,a.BDZC,a.YPGZLX,a.SFQYKSS,a.KSSSQDPKEY,a.SFXSYZ,a.GLLX,a.OPAPKEY,a.ANESPKEY,a.ISOPAORDER,a.ISANESORDER,a.SMORDERPKEY,a.LMT_USED_FLAG,a.XZSYFW,a.CHRGITM_LV,a.YBBM,a.YBMC
from HIS_YZ_MXB a where a.JGID=? and a.HZPKEY=? and a.JZPKEY=? and (a.YZZT='2' or a.YZZT='3' or a.YZZT='4' or a.YZZT='40' or a.YZZT='41') and a.YZSHZT=1 and (a.YZLX='0' or a.YZLX='5') order by a.yzxh
</sql>
<tables>
<table name="HIS_YZ_MXB" insert="true" update="true" delete="true">
<primary>PKEY</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="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" />
<f name="YZDJSL" type="12" table="HIS_YZ_MXB" />
<f name="YZYL" type="12" table="HIS_YZ_MXB" />
<f name="YZZCYFSKEY" type="12" table="HIS_YZ_MXB" />
<f name="YZZCYFS" type="12" table="HIS_YZ_MXB" />
<f name="YZZCYJX" type="12" table="HIS_YZ_MXB" />
<f name="YZZCYDJF" type="12" table="HIS_YZ_MXB" />
<f name="ISDJJS" type="12" table="HIS_YZ_MXB" />
<f name="DJJSSL" type="12" table="HIS_YZ_MXB" />
<f name="ISZCYDJCL" type="12" table="HIS_YZ_MXB" />
<f name="IZZCYDJFJF" type="12" table="HIS_YZ_MXB" />
<f name="ISGFFJ" type="12" table="HIS_YZ_MXB" />
<f name="YZZCYBZ" type="12" table="HIS_YZ_MXB" />
<f name="SQDTYPE" type="12" table="HIS_YZ_MXB" />
<f name="SQDPKEY" type="12" table="HIS_YZ_MXB" />
<f name="SQDJSPKEY" type="12" table="HIS_YZ_MXB" />
<f name="SQDTFJE" type="12" table="HIS_YZ_MXB" />
<f name="ZYYZFL" type="12" table="HIS_YZ_MXB" />
<f name="YZSHYS" type="12" table="HIS_YZ_MXB" />
<f name="YZSHRQ" type="93" table="HIS_YZ_MXB" />
<f name="ISZPC" type="12" table="HIS_YZ_MXB" />
<f name="YZZPC" type="12" table="HIS_YZ_MXB" />
<f name="YZPCFFSJ" type="12" table="HIS_YZ_MXB" />
<f name="YZXH" type="8" table="HIS_YZ_MXB" />
<f name="PSJG" type="12" table="HIS_YZ_MXB" />
<f name="ZCYGLCZLX" type="12" table="HIS_YZ_MXB" />
<f name="YZZFR" type="12" table="HIS_YZ_MXB" />
<f name="YZZFSJ" type="93" table="HIS_YZ_MXB" />
<f name="YZZFYY" type="12" table="HIS_YZ_MXB" />
<f name="PSJGSJ" type="93" table="HIS_YZ_MXB" />
<f name="PSJGR" type="12" table="HIS_YZ_MXB" />
<f name="ISDPBCL" type="12" table="HIS_YZ_MXB" />
<f name="HZSZKS" type="12" table="HIS_YZ_MXB" />
<f name="LOCKFLAG" type="-5" table="HIS_YZ_MXB" />
<f name="YFBDZYZPKEY" type="12" table="HIS_YZ_MXB" />
<f name="BDYF" type="12" table="HIS_YZ_MXB" />
<f name="BDEXECPKEY" type="12" table="HIS_YZ_MXB" />
<f name="BDZC" type="12" table="HIS_YZ_MXB" />
<f name="YPGZLX" type="12" table="HIS_YZ_MXB" />
<f name="SFQYKSS" type="12" table="HIS_YZ_MXB" />
<f name="KSSSQDPKEY" type="12" table="HIS_YZ_MXB" />
<f name="SFXSYZ" type="12" table="HIS_YZ_MXB" />
<f name="GLLX" type="12" table="HIS_YZ_MXB" />
<f name="OPAPKEY" type="12" table="HIS_YZ_MXB" />
<f name="ANESPKEY" type="12" table="HIS_YZ_MXB" />
<f name="ISOPAORDER" type="12" table="HIS_YZ_MXB" />
<f name="ISANESORDER" type="12" table="HIS_YZ_MXB" />
<f name="SMORDERPKEY" type="12" table="HIS_YZ_MXB" />
<f name="LMT_USED_FLAG" type="12" table="HIS_YZ_MXB" />
<f name="XZSYFW" type="12" table="HIS_YZ_MXB" />
<f name="CHRGITM_LV" type="12" table="HIS_YZ_MXB" />
<f name="YBBM" type="12" table="HIS_YZ_MXB" />
<f name="YBMC" type="12" table="HIS_YZ_MXB" />
</fields>
<parameter>
<p>12</p>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="scdAllSignDatasDao" log="true" type="1" memo="三测单单人所有录入体征dao">
<sql>SELECT PKEY,HZPKEY,JZPKEY,ZYNO,ZYBAH,DAYSTR,DAY,TZTYPE,C1,C2,C3,C4,C5,C6,CJR,CJRQ,XGR,XGRQ,JGID FROM HIS_ZY_SIGN_DATAS WHERE JGID=? AND HZPKEY=? AND JZPKEY=? ORDER BY PKEY</sql>
<tables>
<table name="HIS_ZY_SIGN_DATAS " insert="true" update="true" delete="true">
<primary>PKEY</primary>
<primary>HZPKEY</primary>
<primary>JZPKEY</primary>
<primary>JGID</primary>
<primary>DAYSTR</primary>
</table>
</tables>
<fields>
<f name="PKEY" type="12" table="HIS_ZY_SIGN_DATAS " />
<f name="HZPKEY" type="12" table="HIS_ZY_SIGN_DATAS " />
<f name="JZPKEY" type="12" table="HIS_ZY_SIGN_DATAS " />
<f name="ZYNO" type="12" table="HIS_ZY_SIGN_DATAS " />
<f name="ZYBAH" type="12" table="HIS_ZY_SIGN_DATAS " />
<f name="DAYSTR" type="12" table="HIS_ZY_SIGN_DATAS " />
<f name="DAY" type="93" table="HIS_ZY_SIGN_DATAS " />
<f name="TZTYPE" type="12" table="HIS_ZY_SIGN_DATAS " />
<f name="C1" type="12" table="HIS_ZY_SIGN_DATAS " />
<f name="C2" type="12" table="HIS_ZY_SIGN_DATAS " />
<f name="C3" type="12" table="HIS_ZY_SIGN_DATAS " />
<f name="C4" type="12" table="HIS_ZY_SIGN_DATAS " />
<f name="C5" type="12" table="HIS_ZY_SIGN_DATAS " />
<f name="C6" type="12" table="HIS_ZY_SIGN_DATAS " />
<f name="CJR" type="12" table="HIS_ZY_SIGN_DATAS " />
<f name="CJRQ" type="93" table="HIS_ZY_SIGN_DATAS " />
<f name="XGR" type="12" table="HIS_ZY_SIGN_DATAS " />
<f name="XGRQ" type="93" table="HIS_ZY_SIGN_DATAS " />
<f name="JGID" type="12" table="HIS_ZY_SIGN_DATAS " />
</fields>
<parameter>
<p>12</p>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="getemrlistDao" log="true" type="1">
<sql> select PKEY,HZPKEY,JZPKEY,ZYNO,ZYBAH,ACTIVERECORD,TEMPLATEPKEY,RECORDNAME,RECORDFILEPATH,GSKS,ZYYS,ZYYSQM,ZYYSQMSJ,ZYYSQMTP,ZYYSCAQM,ZZYS,ZZYSQM,ZZYSQMSJ,ZZYSQMTP,ZZYSCAQM,ZRYS,ZRYSQM,ZRYSQMSJ,ZRYSQMTP,ZRYSCAQM,ZKR,ISZKQM,ZKSJ,GDR,ISGDQM,GDSJ,ISDELETE,SCR,SCSJ,CJR,CJRQ,LASTMAN,LASTRQ,JGID,QMZT,SXYS,SXYSQM,SXYSQMSJ,SXYSQMTP,SXYSCAQM,FZRYS,FZRYSQM,FZRYSQMSJ,FZRYSQMTP,FZRYSCAQM,MZYS,MZYSQM,MZYSQMSJ,MZYSQMTP,MZYSCAQM,SXYSKEY,ZYYSKEY,ZZYSKEY,FZRYSKEY,ZRYSKEY,MZYSKEY from HIS_EMR_RECORD where JGID=? and HZPKEY = ? AND JZPKEY=? AND ISDELETE=0 ORDER BY CJRQ</sql>
<tables>
<table name="HIS_EMR_RECORD" insert="true" update="true" delete="true">
<primary>PKEY</primary>
<primary>JGID</primary>
<primary>ZRYSQM</primary>
<primary>ISZKQM</primary>
<primary>ZYYSQM</primary>
<primary>ISGDQM</primary>
<primary>ZZYSQM</primary>
<primary>SXYSQM</primary>
<primary>FZRYSQM</primary>
<primary>ISDELETE</primary>
</table>
</tables>
<fields>
<f name="PKEY" type="12" table="HIS_EMR_RECORD" />
<f name="HZPKEY" type="12" table="HIS_EMR_RECORD" />
<f name="JZPKEY" type="12" table="HIS_EMR_RECORD" />
<f name="ZYNO" type="12" table="HIS_EMR_RECORD" />
<f name="ZYBAH" type="12" table="HIS_EMR_RECORD" />
<f name="ACTIVERECORD" type="12" table="HIS_EMR_RECORD" />
<f name="TEMPLATEPKEY" type="12" table="HIS_EMR_RECORD" />
<f name="RECORDNAME" type="12" table="HIS_EMR_RECORD" />
<f name="RECORDFILEPATH" type="12" table="HIS_EMR_RECORD" />
<f name="GSKS" type="12" table="HIS_EMR_RECORD" />
<f name="ZYYS" type="12" table="HIS_EMR_RECORD" />
<f name="ZYYSQM" type="12" table="HIS_EMR_RECORD" />
<f name="ZYYSQMSJ" type="93" table="HIS_EMR_RECORD" />
<f name="ZYYSQMTP" type="12" table="HIS_EMR_RECORD" />
<f name="ZYYSCAQM" type="12" table="HIS_EMR_RECORD" />
<f name="ZZYS" type="12" table="HIS_EMR_RECORD" />
<f name="ZZYSQM" type="12" table="HIS_EMR_RECORD" />
<f name="ZZYSQMSJ" type="93" table="HIS_EMR_RECORD" />
<f name="ZZYSQMTP" type="12" table="HIS_EMR_RECORD" />
<f name="ZZYSCAQM" type="12" table="HIS_EMR_RECORD" />
<f name="ZRYS" type="12" table="HIS_EMR_RECORD" />
<f name="ZRYSQM" type="12" table="HIS_EMR_RECORD" />
<f name="ZRYSQMSJ" type="93" table="HIS_EMR_RECORD" />
<f name="ZRYSQMTP" type="12" table="HIS_EMR_RECORD" />
<f name="ZRYSCAQM" type="12" table="HIS_EMR_RECORD" />
<f name="ZKR" type="12" table="HIS_EMR_RECORD" />
<f name="ISZKQM" type="12" table="HIS_EMR_RECORD" />
<f name="ZKSJ" type="93" table="HIS_EMR_RECORD" />
<f name="GDR" type="12" table="HIS_EMR_RECORD" />
<f name="ISGDQM" type="12" table="HIS_EMR_RECORD" />
<f name="GDSJ" type="93" table="HIS_EMR_RECORD" />
<f name="ISDELETE" type="12" table="HIS_EMR_RECORD" />
<f name="SCR" type="12" table="HIS_EMR_RECORD" />
<f name="SCSJ" type="93" table="HIS_EMR_RECORD" />
<f name="CJR" type="12" table="HIS_EMR_RECORD" />
<f name="CJRQ" type="93" table="HIS_EMR_RECORD" />
<f name="LASTMAN" type="12" table="HIS_EMR_RECORD" />
<f name="LASTRQ" type="93" table="HIS_EMR_RECORD" />
<f name="JGID" type="12" table="HIS_EMR_RECORD" />
<f name="QMZT" type="12" table="HIS_EMR_RECORD" />
<f name="SXYS" type="12" table="HIS_EMR_RECORD" />
<f name="SXYSQM" type="12" table="HIS_EMR_RECORD" />
<f name="SXYSQMSJ" type="93" table="HIS_EMR_RECORD" />
<f name="SXYSQMTP" type="12" table="HIS_EMR_RECORD" />
<f name="SXYSCAQM" type="12" table="HIS_EMR_RECORD" />
<f name="FZRYS" type="12" table="HIS_EMR_RECORD" />
<f name="FZRYSQM" type="12" table="HIS_EMR_RECORD" />
<f name="FZRYSQMSJ" type="93" table="HIS_EMR_RECORD" />
<f name="FZRYSQMTP" type="12" table="HIS_EMR_RECORD" />
<f name="FZRYSCAQM" type="12" table="HIS_EMR_RECORD" />
<f name="MZYS" type="12" table="HIS_EMR_RECORD" />
<f name="MZYSQM" type="12" table="HIS_EMR_RECORD" />
<f name="MZYSQMSJ" type="93" table="HIS_EMR_RECORD" />
<f name="MZYSQMTP" type="12" table="HIS_EMR_RECORD" />
<f name="MZYSCAQM" type="12" table="HIS_EMR_RECORD" />
<f name="SXYSKEY" type="12" table="HIS_EMR_RECORD" />
<f name="ZYYSKEY" type="12" table="HIS_EMR_RECORD" />
<f name="ZZYSKEY" type="12" table="HIS_EMR_RECORD" />
<f name="FZRYSKEY" type="12" table="HIS_EMR_RECORD" />
<f name="ZRYSKEY" type="12" table="HIS_EMR_RECORD" />
<f name="MZYSKEY" type="12" table="HIS_EMR_RECORD" />
</fields>
<parameter>
<p>12</p>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="getOpaOrderListDao" log="true" type="1" memo="手术申请单主表dao">
<sql>
select a.PKEY,a.HZPKEY,a.JZPKEY,a.YZMX,a.JZNO,a.OPAGL,a.SFSF,a.OPASTATE,a.OPAROOM,a.OPATYPE,a.SQKS,a.SQYS,a.HZDH,a.OPADATETIME,a.MZZS,a.MZLYTIME,a.MZBYHCSM,a.SFCFOPA,a.YJSC,a.SFMZ,a.MZPLAN,a.JHTC,a.ZDBZ,a.OPABW,a.OPATW,a.OPAYQ,a.SFGLOPA,a.SFTWXH,a.SFZTXHS,a.SFBX,a.SZBZ,a.XX,a.RH,a.HBSAG,a.HCVAB,a.HIVAB,a.MD,a.QTBZ,a.SFJZ,a.SSJ,a.OPATC,a.OPAPLANTIME,a.SFJB,a.QXHS,a.SFJQX,a.XHHS,a.SFXH,a.QXBZ,a.XHBZ,a.OPAROOMBZ,a.OPAROOMZYSX,a.OPAKSSJ,a.OPAJSSJ,a.SFINROOMHC,a.INROOMTIME,a.INROOMMAN,a.SFOUTROOMHC,a.OUTROOMTIME,a.OUTROOMMAN,a.MZYS,a.MZZDYS,a.MZHS,a.MZASSISTANT,a.SFJMZS,a.MZGM,a.MZFF,a.MZSBZ,a.SFHZZY,a.YQJHZTIME,a.YQSHZTIME,a.JHZTIME,a.JHZMAN,a.JHZBDTIME,a.RSSJTIME,a.SHZTIME,a.SHZMAN,a.SHZBDTIME,a.CSSJTIME,a.CJR,a.CJRQ,a.XGR,a.XGRQ,a.JGID,a.LOCKFLAG,b.pkey yzmxpkey,b.YZZT,b.LOCKFLAG YZMXLOCKFLAG,c.jznl,d.xm,d.xb,e.JBMC,e.JBBM,f.OPAMC,f.OPABM,c.ZYNO,c.JJKS,c.WARD,c.hzlx,c.bed,g.PKEY anespkey,c.cybed,c.jjys,c.JZZT from HIS_OPA_ORDER a left join HIS_YZ_MXB b on a.JGID=b.JGID and a.yzmx=b.pkey left join HIS_JZ_BASEINFO c on a.JGID=c.JGID and a.jzpkey=c.pkey left join HIS_HZINFO d on a.JGID=d.JGID and a.hzpkey=d.pkey left join HIS_OPA_ORDER_SQZD e on a.JGID=e.JGID and a.pkey=e.opapkey AND e.ismain='1' left join HIS_OPA_ORDER_PLANOPA f on a.JGID=f.JGID and a.pkey=f.opapkey and f.ismain='1' left join HIS_OPA_ANES g on a.pkey=g.OPAPKEY and a.JGID=g.JGID where a.JGID=? and a.hzpkey=? and a.jzpkey=? and a.OPASTATE !='003' and a.OPASTATE !='004' and b.YZZT != '5' order by a.CJRQ
</sql>
<tables>
<table name="HIS_YZ_MXB" insert="false" update="true" delete="false">
<primary>YZMXPKEY</primary>
<primary>YZZT</primary>
<primary>JGID</primary>
</table>
<table name="HIS_OPA_ORDER" insert="true" update="true" delete="true">
<primary>PKEY</primary>
<primary>JGID</primary>
</table>
</tables>
<fields>
<f name="PKEY" type="12" table="HIS_OPA_ORDER" />
<f name="HZPKEY" type="12" table="HIS_OPA_ORDER" />
<f name="JZPKEY" type="12" table="HIS_OPA_ORDER" />
<f name="YZMX" type="12" table="HIS_OPA_ORDER" />
<f name="JZNO" type="12" table="HIS_OPA_ORDER" />
<f name="OPAGL" type="12" table="HIS_OPA_ORDER" />
<f name="SFSF" type="12" table="HIS_OPA_ORDER" />
<f name="OPASTATE" type="12" table="HIS_OPA_ORDER" />
<f name="OPAROOM" type="12" table="HIS_OPA_ORDER" />
<f name="OPATYPE" type="12" table="HIS_OPA_ORDER" />
<f name="SQKS" type="12" table="HIS_OPA_ORDER" />
<f name="SQYS" type="12" table="HIS_OPA_ORDER" />
<f name="HZDH" type="12" table="HIS_OPA_ORDER" />
<f name="OPADATETIME" type="93" table="HIS_OPA_ORDER" />
<f name="MZZS" type="12" table="HIS_OPA_ORDER" />
<f name="MZLYTIME" type="93" table="HIS_OPA_ORDER" />
<f name="MZBYHCSM" type="12" table="HIS_OPA_ORDER" />
<f name="SFCFOPA" type="12" table="HIS_OPA_ORDER" />
<f name="YJSC" type="8" table="HIS_OPA_ORDER" />
<f name="SFMZ" type="12" table="HIS_OPA_ORDER" />
<f name="MZPLAN" type="12" table="HIS_OPA_ORDER" />
<f name="JHTC" type="-5" table="HIS_OPA_ORDER" />
<f name="ZDBZ" type="12" table="HIS_OPA_ORDER" />
<f name="OPABW" type="12" table="HIS_OPA_ORDER" />
<f name="OPATW" type="12" table="HIS_OPA_ORDER" />
<f name="OPAYQ" type="12" table="HIS_OPA_ORDER" />
<f name="SFGLOPA" type="12" table="HIS_OPA_ORDER" />
<f name="SFTWXH" type="12" table="HIS_OPA_ORDER" />
<f name="SFZTXHS" type="12" table="HIS_OPA_ORDER" />
<f name="SFBX" type="12" table="HIS_OPA_ORDER" />
<f name="SZBZ" type="12" table="HIS_OPA_ORDER" />
<f name="XX" type="12" table="HIS_OPA_ORDER" />
<f name="RH" type="12" table="HIS_OPA_ORDER" />
<f name="HBSAG" type="12" table="HIS_OPA_ORDER" />
<f name="HCVAB" type="12" table="HIS_OPA_ORDER" />
<f name="HIVAB" type="12" table="HIS_OPA_ORDER" />
<f name="MD" type="12" table="HIS_OPA_ORDER" />
<f name="QTBZ" type="12" table="HIS_OPA_ORDER" />
<f name="SFJZ" type="12" table="HIS_OPA_ORDER" />
<f name="SSJ" type="12" table="HIS_OPA_ORDER" />
<f name="OPATC" type="-5" table="HIS_OPA_ORDER" />
<f name="OPAPLANTIME" type="93" table="HIS_OPA_ORDER" />
<f name="SFJB" type="12" table="HIS_OPA_ORDER" />
<f name="QXHS" type="12" table="HIS_OPA_ORDER" />
<f name="SFJQX" type="12" table="HIS_OPA_ORDER" />
<f name="XHHS" type="12" table="HIS_OPA_ORDER" />
<f name="SFXH" type="12" table="HIS_OPA_ORDER" />
<f name="QXBZ" type="12" table="HIS_OPA_ORDER" />
<f name="XHBZ" type="12" table="HIS_OPA_ORDER" />
<f name="OPAROOMBZ" type="12" table="HIS_OPA_ORDER" />
<f name="OPAROOMZYSX" type="12" table="HIS_OPA_ORDER" />
<f name="OPAKSSJ" type="93" table="HIS_OPA_ORDER" />
<f name="OPAJSSJ" type="93" table="HIS_OPA_ORDER" />
<f name="SFINROOMHC" type="12" table="HIS_OPA_ORDER" />
<f name="INROOMTIME" type="93" table="HIS_OPA_ORDER" />
<f name="INROOMMAN" type="12" table="HIS_OPA_ORDER" />
<f name="SFOUTROOMHC" type="12" table="HIS_OPA_ORDER" />
<f name="OUTROOMTIME" type="93" table="HIS_OPA_ORDER" />
<f name="OUTROOMMAN" type="12" table="HIS_OPA_ORDER" />
<f name="MZYS" type="12" table="HIS_OPA_ORDER" />
<f name="MZZDYS" type="12" table="HIS_OPA_ORDER" />
<f name="MZHS" type="12" table="HIS_OPA_ORDER" />
<f name="MZASSISTANT" type="12" table="HIS_OPA_ORDER" />
<f name="SFJMZS" type="12" table="HIS_OPA_ORDER" />
<f name="MZGM" type="12" table="HIS_OPA_ORDER" />
<f name="MZFF" type="12" table="HIS_OPA_ORDER" />
<f name="MZSBZ" type="12" table="HIS_OPA_ORDER" />
<f name="SFHZZY" type="12" table="HIS_OPA_ORDER" />
<f name="YQJHZTIME" type="93" table="HIS_OPA_ORDER" />
<f name="YQSHZTIME" type="93" table="HIS_OPA_ORDER" />
<f name="JHZTIME" type="93" table="HIS_OPA_ORDER" />
<f name="JHZMAN" type="12" table="HIS_OPA_ORDER" />
<f name="JHZBDTIME" type="93" table="HIS_OPA_ORDER" />
<f name="RSSJTIME" type="93" table="HIS_OPA_ORDER" />
<f name="SHZTIME" type="93" table="HIS_OPA_ORDER" />
<f name="SHZMAN" type="12" table="HIS_OPA_ORDER" />
<f name="SHZBDTIME" type="93" table="HIS_OPA_ORDER" />
<f name="CSSJTIME" type="93" table="HIS_OPA_ORDER" />
<f name="CJR" type="12" table="HIS_OPA_ORDER" />
<f name="CJRQ" type="93" table="HIS_OPA_ORDER" />
<f name="XGR" type="12" table="HIS_OPA_ORDER" />
<f name="XGRQ" type="93" table="HIS_OPA_ORDER" />
<f name="JGID" type="12" table="HIS_YZ_MXB,HIS_OPA_ORDER" />
<f name="LOCKFLAG" type="-5" table="HIS_OPA_ORDER" />
<f name="YZMXPKEY" type="12" schemaname="PKEY" table="HIS_YZ_MXB" />
<f name="YZZT" type="12" table="HIS_YZ_MXB" />
<f name="YZMXLOCKFLAG" type="-5" schemaname="LOCKFLAG" table="HIS_YZ_MXB" />
<f name="JZNL" type="12" />
<f name="XM" type="12" />
<f name="XB" type="12" />
<f name="JBMC" type="12" />
<f name="JBBM" type="12" />
<f name="OPAMC" type="12" />
<f name="OPABM" type="12" />
<f name="ZYNO" type="12" />
<f name="JJKS" type="12" />
<f name="WARD" type="12" />
<f name="HZLX" type="12" />
<f name="BED" type="12" />
<f name="anespkey" type="12" />
<f name="cybed" type="12" />
<f name="jjys" type="12" />
<f name="jzzt" type="12" />
</fields>
<parameter>
<p>12</p>
<p>12</p>
<p>12</p>
</parameter>
</dao>
</datasource>