select PKEY,SQKS,HCBM,HCMC,HCZDYMC,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG from HIS_OPA_MZSSYBHC where JGID=? and SQKS=? order by pkey
12
12
select MAIN_JGQXZ.ID,MAIN_JGQXZ.FZBM,MAIN_JGQXZ.FZMC,
MAIN_JGQXZ.BZ,MAIN_JGQXZ.CJR,MAIN_JGQXZ.CJRQ,MAIN_JGQXZ.XGR,
MAIN_JGQXZ.XGRQ,MAIN_JGQXZ.JGID,MAIN_JGQXZ.ZT from MAIN_JGQXZ
where JGID=? order by FZBM
12
select PKEY,LCBM,LCMC,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG from HIS_OPA_SSLC where JGID=? order by pkey
12
SELECT PKEY,SSJBM,SSJMC,OPAROOM,OPALC,OPALX,MRWKKS,SFKY,BKYYY,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG FROM HIS_OPA_SSJ WHERE JGID=? ORDER BY PKEY
12
select DPTID,DPTCODE,DPTNAME,DPTRMARK,DPTADDR,DPTLAYER,DPTTYPE,DPTGPID,DPTSEX,DPTZJM,DPTBAGE,DPTEAGE,DPTTXMJC,DPTYBCODE,CJR,CJRQ,XGR,XGRQ,JGID,DPTFLAG,SCRQ,SCR from MAIN_KS where JGID=? and DPTFLAG='1' and DPTTYPE='3' order by DPTID
12
select PKEY,BW,YZXPKEY,SFJH,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG from HIS_OPA_SSBWYFYY where JGID=? and bw=? order by pkey
12
12
SELECT PKEY,QXZ,TS,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG FROM HIS_OPA_SSLBMRDAY WHERE JGID=? ORDER BY PKEY
12
select PKEY,MC,ZD,YZ,EZ,SZ,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG from HIS_OPA_SSYSZ where JGID=? order by pkey
12
select PKEY,OPAYZXBZ,OPASQYZX,OPASQSJXZ,ZYMROPAROOM,MZMROPAROOM,BRDDGROUP,HGGROUP,SFMRSSJ,SFFSINFO,SFLISRESULT,OPAROOMMZKFYHB,RJOPAPG,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG from HIS_OPA_SETUP where JGID=?
12
select PKEY,QXZ,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG from HIS_OPA_SETUP_KZRSHGROUP where JGID=? order by pkey
12
select PKEY,OPAYSLX,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG from HIS_OPA_SETUP_SSYSLX where JGID=? order by pkey
12
select PKEY,OPAYSLX,OPAFL,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG from HIS_OPA_SETUP_SSYSLX_SSLX where JGID=? and OPAYSLX=?
12
12
select PKEY,PREFIX,YZXSHOW,SUFFIX,XH,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG from HIS_OPA_SETUP_YZXSHOW where JGID = ? order by xh
12
select PKEY,MZKS,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG from HIS_OPA_MZKS where JGID=? order by pkey
12
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.OPABEGINTIME,a.OPAENDTIME,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=? #select# order by a.CJRQ
12
93
93
select PKEY,HZPKEY,JZPKEY,YZMX,JZNO,OPAGL,SFSF,OPASTATE,OPAROOM,OPATYPE,SQKS,SQYS,HZDH,OPADATETIME,MZZS,MZLYTIME,MZBYHCSM,SFCFOPA,YJSC,SFMZ,MZPLAN,JHTC,ZDBZ,OPABW,OPATW,OPAYQ,SFGLOPA,SFTWXH,SFZTXHS,SFBX,SZBZ,XX,RH,HBSAG,HCVAB,HIVAB,MD,QTBZ,SFJZ,SSJ,OPATC,OPAPLANTIME,SFJB,QXHS,SFJQX,XHHS,SFXH,QXBZ,XHBZ,OPAROOMBZ,OPAROOMZYSX,OPABEGINTIME,OP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AN,JHZBDTIME,RSSJTIME,SHZTIME,SHZMAN,SHZBDTIME,CSSJTIME,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG,YZXZSJ,YZZXSJ from HIS_OPA_ORDER where JGID=? and hzpkey=? and jzpkey=? and pkey=?
12
12
12
12
select PKEY,HZPKEY,JZPKEY,OPAPKEY,JBBM,JBMC,XH,ISMAIN,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG from HIS_OPA_ORDER_SQZD where JGID=? and hzpkey=? and jzpkey=? and opapkey=?
12
12
12
12
select PKEY,HZPKEY,JZPKEY,OPAPKEY,OPABM,OPAMC,OPAFJ,OPAQKLX,OPAMANKS,OPAYSZ,OPAMAN,OPAONE,OPATWO,OPATHREE,OPAOTHER,OPABZ,ISMAIN,XH,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG from HIS_OPA_ORDER_PLANOPA where JGID=? and hzpkey=? and jzpkey=? and opapkey=?
12
12
12
12
select PKEY,LOGTYPE,CHANGEINFO,GQOPASTATE,GJOPASTATE,OPAPKEY,HZPKEY,JZPKEY,IPADDR,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG from HIS_OPA_LOG where 1=2
= ? and CJRQ <= ? order by CJRQ ]]>
12
93
93
SELECT PKEY,SSJBM,SSJMC,OPAROOM,OPALC,OPALX,MRWKKS,SFKY,BKYYY,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG FROM HIS_OPA_SSJ WHERE JGID=? and OPAROOM=? and SFKY='1' ORDER BY PKEY
12
12
select PKEY,HZPKEY,JZPKEY,OPAPKEY,YQJHZTIME,YQSHZTIME,JHZTIME,JHZMAN,JHZBDTIME,RSSJTIME,SHZTIME,SHZMAN,SHZBDTIME,CSSJTIME,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG from HIS_OPA_DDB where JGID=? and hzpkey=? and jzpkey=? and opapkey=?
12
12
12
12
select a.PKEY,a.HZPKEY,a.JZPKEY,b.pkey OPAPKEY,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.OPAROOM,b.OPATYPE,b.SSJ,b.OPATC,b.OPABEGINTIME,b.OPAENDTIME,c.jznl,d.xm,d.xb,c.ZYNO,c.ZYBAH,b.LOCKFLAG opalockflag,b.OPADATETIME,b.SQKS,c.ward,b.OPAGL,b.OPASTATE from HIS_OPA_DDB a left join HIS_OPA_ORDER b on a.JGID=b.JGID and a.opapkey=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 where a.JGID=? #select#
12
93
93
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.OPABEGINTIME,a.OPAENDTIME,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,c.ZYBAH 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' where a.JGID=? and SFHZZY='1' #select# order by a.CJRQ
12
93
93
select PKEY,BM,MC,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG from HIS_OPA_ROOM_QDXM where JGID=? order by pkey
12
select PKEY,BM,MC,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG from HIS_OPA_ROOM_QDWH where JGID=? order by pkey
12
select PKEY,BM,MC,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG from HIS_OPA_ROOM_QDXM where JGID=? and pkey not in (select XMPKEY from HIS_OPA_ROOM_QDWHXM where JGID=? AND WHPKEY =?) order by pkey
12
12
12
select PKEY,WHPKEY,XMPKEY,MRNUM,XH,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG from HIS_OPA_ROOM_QDWHXM where JGID=? and whpkey=? order by xh
12
12
SELECT PKEY,HZPKEY,JZPKEY,OPAPKEY,OPAROOM,SSJ,OPATC,XX,CF,XL,SQQXHS,SQXHHS,GQQXHS,GQXHHS,GHQXHS,GHXHHS,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG FROM HIS_OPA_ROOM_QD WHERE JGID=? AND OPAPKEY=?
12
12
select PKEY,OPAPKEY,QDPKEY,QDQX,XQQD,ZJS,GQHD,QHHD,FPHHD,XH,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG from HIS_OPA_ROOM_QDITEMS where JGID=? and opapkey=? and qdpkey=? order by xh
12
12
12
select PKEY,OPAPKEY,QDPKEY,WJBMC,MJTIME,SFSX,SXTIME,XH,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG from HIS_OPA_ROOM_QDWJBQK where JGID=? and opapkey=? and qdpkey=? order by xh
12
12
12
select PKEY,HZPKEY,JZPKEY,OPAPKEY,SFHZ,SSFSQR,SSBWZQ,SSBWYBJ,SSYSSMYY,SSZQTY,MZZQTY,MZFSQR,MZSBWC,PFSFWZ,SQPFZBZQ,JMTDJLWC,HZSFGMS,KJYWPSJG,SQBX,JT,TNZRW,YXXZL,QT,QZR,QZTIME,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG from HIS_OPA_AQHC_MZSSQ where JGID=? and opapkey=?
12
12
select PKEY,HZPKEY,JZPKEY,OPAPKEY,SFHZ,SSFSQR,SSBWBSQR,YJSSSJ,SSYJSXL,SSGZD,SSYSCSQT,MZGZD,MZYSCSQT,WPMJHG,YQSB,SQSZTSYYQK,SSHSCSQT,SFYXZL,QT,QZR,QZTIME,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG from HIS_OPA_AQHC_PFQKQ where JGID=? and opapkey=?
12
12
select PKEY,HZPKEY,JZPKEY,OPAPKEY,SFHZ,SJSSFSQR,SSYYSXHC,SSYWQDZQ,SSBBQR,PFSFWZ,ZXJMTL,DMTL,QGCG,SKYL,WG,NG,WZJM,GZGLQT,HFS,BF,ICUBF,JZ,LY,QT,QZR,QZTIME,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG from HIS_OPA_AQHC_HZLSQ where JGID=? and opapkey=?
12
12
select PKEY,HZPKEY,JZPKEY,OPAPKEY,SSQKQJD,SSYSQM,ASA,QKYHQK,MZYSQM,SSQXTIME,SSLB,XHHSQM,SSQJDPF,ASAPF,SSQXTIMEPF,TOTAL,NNIS,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG from HIS_OPA_FXPG where JGID=? and opapkey=?
12
12
select PKEY,DLBM,DLMC,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG from HIS_OPA_BASE_SMDL where JGID=? ORDER BY PKEY
12
select PKEY,DLPKEY,ZLBM,ZLMC,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG from HIS_OPA_BASE_SMZL where JGID=? and dlpkey=? order by pkey
12
12
select PKEY,YZBM,YZMC,HISYZPKEY,XMFL,SHOWFL,YZDW,ZDZ,ZXZ,ZDJXZ,ZXJXZ,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG,PYM,WBM from HIS_OPA_MZYZ where JGID=? order by pkey
12
select a.PKEY,a.HZPKEY,a.JZPKEY,a.OPAPKEY,a.ASA,a.ASAE,a.TW,a.JSZT,a.HBZ,a.MZQYY,a.MZYS,a.MZZDYS,a.MZHS,a.MZASSISTANT,a.SFJMZS,a.MZGM,a.MZFFSHOW,a.MZSBZ,a.OPAYS,a.OPATIME,a.INOPAROOM,a.INOPAROOMTIME,a.ANESBEGIN,a.ANESBEGINTIME,a.OPABEGIN,a.OPABEGINTIME,a.OPAEND,a.OPAENDTIME,a.ANESEND,a.ANESENDTIME,a.OUTOPAROOM,a.OUTOPAROOMTIME,a.INPACU,a.INPACUTIME,a.OUTPACU,a.OUTPACUTIME,a.CJR,a.CJRQ,a.XGR,a.XGRQ,a.JGID,a.LOCKFLAG,b.JBMC,b.JBBM,c.OPAMC,c.OPABM from HIS_OPA_ANES a left join HIS_OPA_ANES_SHZD b on a.JGID=b.JGID and a.pkey=b.ANESPKEY AND b.ismain='1' left join HIS_OPA_ANES_SHOPA c on a.JGID=c.JGID and a.pkey=c.ANESPKEY and c.ismain='1' where a.JGID=? and a.OPAPKEY=?
12
12
select PKEY,HZPKEY,JZPKEY,OPAPKEY,ANESPKEY,MZFF,CGTJ,CGGJ,DGLX,DGXH,ZGSD,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG from HIS_OPA_ANES_MZFF where JGID=? and OPAPKEY=? and ANESPKEY=? order by pkey
PKEY
OPAPKEY
ANESPKEY
JGID
12
12
12
select PKEY,HZPKEY,JZPKEY,OPAPKEY,ANESPKEY,OPABM,OPAMC,OPAFJ,OPAQKLX,OPAMANKS,OPAYSZ,OPAMAN,OPAONE,OPATWO,OPATHREE,OPAOTHER,OPABZ,ISMAIN,XH,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG from HIS_OPA_ANES_SHOPA where JGID=? and OPAPKEY=? and ANESPKEY=? order by pkey
PKEY
OPAPKEY
ANESPKEY
JGID
12
12
12
select PKEY,HZPKEY,JZPKEY,OPAPKEY,ANESPKEY,JBBM,JBMC,XH,ISMAIN,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG from HIS_OPA_ANES_SHZD where JGID=? and OPAPKEY=? and ANESPKEY=? order by pkey
12
12
12
select PKEY,HZPKEY,JZPKEY,OPAPKEY,ANESPKEY,YYLX,KSSJ,JSSJ,GYFS,YPPKEY,HISYZMC,GYL,GYLDW,GYSD,GYSDDW,YYTJ,ND,YYBW,JSKS,YYYY,JFBZ,SCYZPKEY,XH,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG from HIS_OPA_ANES_MZYY where JGID=? and OPAPKEY=? and ANESPKEY=? and YYLX='MZY' order by xh
PKEY
OPAPKEY
ANESPKEY
YYLX
JGID
12
12
12
select PKEY,HZPKEY,JZPKEY,OPAPKEY,ANESPKEY,YYLX,KSSJ,JSSJ,GYFS,YPPKEY,HISYZMC,GYL,GYLDW,GYSD,GYSDDW,YYTJ,ND,YYBW,JSKS,YYYY,JFBZ,SCYZPKEY,XH,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG from HIS_OPA_ANES_MZYY where JGID=? and OPAPKEY=? and ANESPKEY=? and YYLX='ZLY' order by xh
PKEY
OPAPKEY
ANESPKEY
YYLX
JGID
12
12
12
select PKEY,HZPKEY,JZPKEY,OPAPKEY,ANESPKEY,YYLX,KSSJ,JSSJ,GYFS,YPPKEY,HISYZMC,GYL,GYLDW,GYSD,GYSDDW,YYTJ,ND,YYBW,JSKS,YYYY,JFBZ,SCYZPKEY,XH,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG from HIS_OPA_ANES_MZYY where JGID=? and OPAPKEY=? and ANESPKEY=? and YYLX='SYY' order by xh
PKEY
OPAPKEY
ANESPKEY
YYLX
JGID
12
12
12
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.OPABEGINTIME,a.OPAENDTIME,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,a.SG,a.TZ 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' where a.JGID=? and a.pkey=? order by a.CJRQ
12
12
select a.PKEY,a.YZBM,a.YZMC,a.HISYZPKEY,a.XMFL,a.SHOWFL,a.YZDW,a.ZDZ,a.ZXZ,a.ZDJXZ,a.ZXJXZ,a.CJR,a.CJRQ,a.XGR,a.XGRQ,a.JGID,a.LOCKFLAG,a.PYM,a.WBM from HIS_OPA_MZYZ a left join HIS_OPA_BASE_SMZL b on a.SHOWFL=b.pkey and a.JGID=b.JGID left join HIS_OPA_BASE_SMDL c on b.DLPKEY=c.pkey and b.JGID=c.JGID where a.JGID=? and c.DLBM='MZY' order by a.pkey
12
select a.PKEY,a.YZBM,a.YZMC,a.HISYZPKEY,a.XMFL,a.SHOWFL,a.YZDW,a.ZDZ,a.ZXZ,a.ZDJXZ,a.ZXJXZ,a.CJR,a.CJRQ,a.XGR,a.XGRQ,a.JGID,a.LOCKFLAG,a.PYM,a.WBM from HIS_OPA_MZYZ a left join HIS_OPA_BASE_SMZL b on a.SHOWFL=b.pkey and a.JGID=b.JGID left join HIS_OPA_BASE_SMDL c on b.DLPKEY=c.pkey and b.JGID=c.JGID where a.JGID=? and c.DLBM='ZLY' order by a.pkey
12
select a.PKEY,a.YZBM,a.YZMC,a.HISYZPKEY,a.XMFL,a.SHOWFL,a.YZDW,a.ZDZ,a.ZXZ,a.ZDJXZ,a.ZXJXZ,a.CJR,a.CJRQ,a.XGR,a.XGRQ,a.JGID,a.LOCKFLAG,a.PYM,a.WBM from HIS_OPA_MZYZ a left join HIS_OPA_BASE_SMZL b on a.SHOWFL=b.pkey and a.JGID=b.JGID left join HIS_OPA_BASE_SMDL c on b.DLPKEY=c.pkey and b.JGID=c.JGID where a.JGID=? and c.DLBM='SYY' order by a.pkey
12
select count(*) num from HIS_YZ_MXB where JGID=? and hzpkey=? and jzpkey=? and SMORDERPKEY=? AND (YZZT=0 OR YZZT=1 or YZZT=2 OR YZZT=3)
12
12
12
12
select PKEY,HZPKEY,JZPKEY,OPAPKEY,ANESPKEY,YYLX,KSSJ,JSSJ,GYFS,YPPKEY,HISYZMC,GYL,GYLDW,GYSD,GYSDDW,YYTJ,ND,YYBW,JSKS,YYYY,JFBZ,SCYZPKEY,XH,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG from HIS_OPA_ANES_MZYY where JGID=? and OPAPKEY=? and ANESPKEY=? order by YYLX,xh
PKEY
OPAPKEY
ANESPKEY
YYLX
JGID
12
12
12
select SMORDERPKEY,pkey from HIS_YZ_MXB where JGID=? and hzpkey=? and jzpkey=? and opapkey=? AND (YZZT=0 OR YZZT=1 or YZZT=2 OR YZZT=3)
12
12
12
12
select a.PKEY,a.HZPKEY,a.GHPKEY,a.JZLX,a.JZZT,a.JZZB,a.HZFB,a.JZJS,a.ISYB,a.ISZZ,a.YYLX,a.ISLG,a.ISGSSJJ,a.HZYBLX,a.JJKS,a.JJRQ,a.JJYS,a.FBRQ,a.ZYNUM,a.WARD,a.ROOM,a.BED,a.KZRQ,a.JSRQ,a.THRY,a.HDYY,a.HDRQ,a.MZNUM,a.CJR,a.CJRQ,a.JGID,a.JZNO,a.MZNO,a.ZYNO,a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YZMX,JZNO,OPAGL,SFSF,OPASTATE,OPAROOM,OPATYPE,SQKS,SQYS,HZDH,OPADATETIME,MZZS,MZLYTIME,MZBYHCSM,SFCFOPA,YJSC,SFMZ,MZPLAN,JHTC,ZDBZ,OPABW,OPATW,OPAYQ,SFGLOPA,SFTWXH,SFZTXHS,SFBX,SZBZ,XX,RH,HBSAG,HCVAB,HIVAB,MD,QTBZ,SFJZ,SSJ,OPATC,OPAPLANTIME,SFJB,QXHS,SFJQX,XHHS,SFXH,QXBZ,XHBZ,OPAROOMBZ,OPAROOMZYSX,OPABEGINTIME,OPAENDTIME,SFINROOMHC,INROOMTIME,INROOMMAN,SFOUTROOMHC,OUTROOMTIME,OUTROOMMAN,MZYS,MZZDYS,MZHS,MZASSISTANT,SFJMZS,MZGM,MZFF,MZSBZ,SFHZZY,YQJHZTIME,YQSHZTIME,JHZTIME,JHZMAN,JHZBDTIME,RSSJTIME,SHZTIME,SHZMAN,SHZBDTIME,CSSJTIME,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG,YZXZSJ,YZZXSJ from HIS_OPA_ORDER where JGID=? and hzpkey=? and jzpkey=? order by OPADATETIME
12
12
12