0 and CZRQ >=? and CZRQ <= ? ) zjsl,(select sum(jbsl) jssl from HIS_KSKCJL where JGID=a.JGID and DPTID=a.DPTID and SFX_BM=a.SFX_BM and SL <0 and CZRQ >=? and CZRQ <= ? ) jssl,b.KCFL,b.ybbm,b.ybmc from HIS_KSKC a left join HIS_SFX b on a.JGID=b.JGID and a.SFX_BM=b.BM left join HIS_MMS_WZZD c on c.WZBM=b.GLBM and c.JGID=b.JGID left join HIS_KSRKC d on a.SFX_BM=d.SFX_BM and a.JGID=d.JGID and a.DPTID=d.DPTID and d.RQVERSION=? left join HIS_KSRKC e on a.SFX_BM=e.SFX_BM and a.JGID=e.JGID and a.DPTID=e.DPTID and e.RQVERSION=? where a.JGID=? and b.GLLX='W' #select# order by a.SFX_BM,a.DPTID ]]>

93

93

93

93

12

12

12

12

12

12

93

? order by RQ ) where rownum=1 ]]>

12

12

12

93

=? and a.CZRQ <= ? order by a.CZRQ ]]>

12

12

12

93

93

0 and CZRQ >=? and CZRQ <= ? ) zjsl,(select sum(jbsl) jssl from HIS_KSKCJL where JGID=a.JGID and DPTID=a.DPTID and SFX_BM=a.SFX_BM and SL <0 and CZRQ >=? and CZRQ <= ? ) jssl,b.KCFL,b.ybbm,b.ybmc from HIS_KSKC a left join HIS_SFX b on a.JGID=b.JGID and a.SFX_BM=b.BM left join HIS_MMS_WZZD c on c.WZBM=b.GLBM and c.JGID=b.JGID where a.JGID=? and b.GLLX='W' #select# order by a.SFX_BM,a.DPTID ]]>

93

93

93

93

12

select '' ISSHOW,'' zt,a.PKEY,b.DPTID,a.JGID,a.KSKC_PKEY,a.PH,a.YXQ,a.SL,a.KYSL,a.DJSL,a.DJ,a.JBDJ,a.SJ,a.JBSJ,a.YSPKEY,a.LOCKFLAG,b.HWM_BM,c.bm,c.MC,c.JBDW,c.RKDW,c.ZHXS,d.WZGG,d.WZCS,c.KCFL,'' zhycgys,'' sxts,c.ybbm,c.ybmc from HIS_KSKC_PC a left join HIS_KSKC b on a.KSKC_PKEY=b.pkey and a.JGID=b.JGID left join HIS_SFX c on b.SFX_BM=c.bm and b.JGID=c.JGID left join HIS_MMS_WZZD d on d.WZBM=c.GLBM and d.JGID=c.JGID where a.JGID=? and c.GLLX='W' #select# and a.YXQ >? order by c.bm,a.ph

12

93

=? and CZRQ <= ? ) zxhsl,b.KCFL,'' rxhl,'' xql,b.ybbm,b.ybmc from HIS_KSKC a left join HIS_SFX b on a.JGID=b.JGID and a.SFX_BM=b.BM left join HIS_MMS_WZZD c on c.WZBM=b.GLBM and c.JGID=b.JGID where a.JGID=? and b.GLLX='W' #select# order by a.SFX_BM,a.DPTID ]]>

93

93

12

select JGID,BM,MC,JBDW,FYDL,FYZL,HSZFL,KJZFL,MZZFL,ZYZFL,BASYFL,KCFL,RKDW,ZHXS,MZFYDW,ZYFYDW,JG,SFYJ,SFXMSM,BZ,ZT,JBJG,YBBM,YBMC,GLLX,GLBM,GLRQ,DWVIEW,LOCKFLAG from HIS_SFX where JGID=? and (GLLX='Y' or GLLX='W') JGIDBM

12

0 #hzbq# and g.FYTIME >=? and g.FYTIME <=? order by a.bed,a.YZMX,e.zxtime ]]> PKEY
GG
PKEY
PKEY
PKEY

12

93

93

=? and g.FYRQ <=? order by g.FYRQ ]]> YZPKEYYZDJSLHZPKEYJZPKEYJGID
PKEYYZXYZMXJGIDHZPKEYJZPKEY

12

93

93

select a.PKEY,a.JGID,a.DJH,a.XH,a.SFX_BM,a.KSKC_PC_PKEY,a.DBSQMX_PKEY,a.SL,a.DW,a.DJ,a.SJ,a.JE,a.SJJE,b.MC,b.JBDW,b.RKDW,b.ZHXS,b.JG,b.JBJG,c.KYSL,c.PH,c.KSKC_PKEY,c.YXQ, b.DWVIEW,c.DJ PCDJ,c.JBDJ PCJBDJ,c.SJ PCSJ,c.JBSJ PCJBSJ,y.wzcs,y.wzgg,a.LOCKFLAG,b.ybbm,b.ybmc,dbd.SQKS,dbd.JSKS,dbd.ZYLX,dbd.CKRQ,y.ZCZH, rkd.gys from HIS_MMS_KC_DBD_MX a left join HIS_SFX b on a.JGID=b.JGID and a.SFX_BM=b.BM left join HIS_KSKC_PC c on a.JGID=c.JGID and c.PKEY=a.KSKC_PC_PKEY left join HIS_MMS_WZZD y on b.BM=y.WZBM left join HIS_MMS_KC_DBD dbd on a.djh=dbd.djh and a.JGID=dbd.JGID left join HIS_YFYK_DBD_LOG log on a.pkey=log.DBDMXPKEY and a.JGID=log.JGID left join HIS_MMS_KC_RKD_MX rkdmx on log.FIRST_KSKC_PC_PKEY = rkdmx.KSKC_PC_PKEY and rkdmx.JGID=log.JGID left join HIS_MMS_KC_RKD rkd on rkdmx.djh = rkd.djh and rkd.JGID=rkdmx.JGID where a.JGID=? and dbd.SHZT='1' and dbd.RKZT='1' order by a.djh,a.XH PKEYJGID

12

select a.PKEY,a.CJR,a.CJRQ,a.XGR,a.XGRQ,a.JGID,a.XH,a.SFX_BM,a.DJH,a.KSKC_PC_PKEY,a.DW,a.DJ,a.SJ,a.SL,a.JE,a.SJJE,b.MC,b.JBDW,b.RKDW,b.ZHXS,b.DWVIEW,c.wzcs,c.wzgg, e.PH,e.YXQ,e.SL PCSL,e.KYSL,e.DJ PCDJ,e.JBDJ PCJBDJ,e.SJ PCSJ,e.JBSJ PCJBSJ,a.LOCKFLAG,c.ZCZH,kctz.DPTID,kctz.SHRQ from HIS_MMS_KC_KCTZ_MX a left join HIS_SFX b on a.JGID=b.JGID and a.SFX_BM=b.BM left join HIS_MMS_WZZD c on c.WZBM=b.BM left join HIS_KSKC_PC e on a.JGID=e.JGID and e.PKEY=a.KSKC_PC_PKEY left join HIS_MMS_KC_KCTZ kctz on a.djh=kctz.djh and a.JGID=kctz.JGID where a.JGID=? order by a.djh,a.XH PKEY

12

select a.PKEY,a.CJR,a.CJRQ,a.XGR,a.XGRQ,a.JGID,a.XH,a.SFX_BM,a.DJH,a.KSKC_PC_PKEY,a.DW,a.DJ,a.SJ,a.SL,a.JE,a.SJJE,b.MC,b.JBDW,b.RKDW,b.JBJG,b.JG,b.ZHXS,c.wzcs,c.wzgg, e.PH,e.YXQ,e.SL PCSL,e.KYSL,e.DJ PCDJ,e.JBDJ PCJBDJ,e.SJ PCSJ,e.JBSJ PCJBSJ,b.DWVIEW,a.LOCKFLAG,c.ZCZH,kcsh.DPTID,kcsh.SHRQ from HIS_MMS_KC_KCSH_MX a left join HIS_SFX b on a.JGID=b.JGID and a.SFX_BM=b.BM left join HIS_MMS_WZZD c on c.WZBM=b.BM left join HIS_KSKC_PC e on a.JGID=e.JGID and e.PKEY=a.KSKC_PC_PKEY left join HIS_MMS_KC_KCSH kcsh on a.djh=kcsh.djh and a.JGID=kcsh.JGID where a.JGID=? order by a.djh,a.XH PKEY

12

select a.PKEY,a.JGID,a.DJH,a.XH,a.RKDMX_PKEY,a.SL,a.THYY,a.DW,a.DJ,a.SJ,a.JE,a.SJJE,a.FPHM,a.FPJE,a.PCJG,a.BZ,b.MC,b.JBDW,b.ZHXS,c.wzcs,r.SFX_BM,r.PH,r.YXQ,r.SL RKSL,r.KSKC_PC_PKEY,r.DPTID,r.DW RKDW,r.DJ RKDJ,r.SJ RKSJ,e.PKEY PCPKEY,e.KYSL,e.DJSL,e.KSKC_PKEY, b.DWVIEW,a.LOCKFLAG,c.ZCZH,thd.ZDRQ,thd.GYS from HIS_MMS_KC_THD_MX a left join HIS_YFYK_RKD_MX r on a.JGID=r.JGID and a.RKDMX_PKEY=r.PKEY left join HIS_SFX b on r.JGID=b.JGID and r.SFX_BM=b.BM left join HIS_MMS_WZZD c on c.WZBM=b.BM left join HIS_KSKC_PC e on r.JGID=e.JGID and e.PKEY=r.KSKC_PC_PKEY left join HIS_MMS_KC_THD thd on a.djh=thd.djh and a.JGID=thd.JGID where a.JGID=? order by a.djh,a.XH PKEY

12

0 AND YZSHZT='1' and yzxpkey=? ]]>

12

12

select a.DJH,a.SL,a.DW from HIS_MMS_KC_DBD_MX a left join HIS_MMS_KC_DBD b on a.DJH=b.DJH and a.JGID=b.JGID where b.JGID=? and b.SHZT=1 and b.RKZT=0 and a.sfx_bm=?

12

12

select a.DJH,a.SPS,a.DW,a.SYS,a.ZPS from HIS_MMS_KC_PD_MX a left join HIS_MMS_KC_PD b on a.DJH=b.DJH and a.JGID=b.JGID where b.JGID=? and b.WCZT=1 and b.SPZT=0 and a.sfx_bm=?

12

12

select a.DJH,a.SL,a.DW from HIS_MMS_KC_THD_MX a left join HIS_MMS_KC_THD b on a.DJH=b.DJH and a.JGID=b.JGID left join HIS_MMS_KC_RKD_MX c on a.RKDMX_PKEY =c.PKEY and a.JGID=c.JGID where b.JGID=? and b.WCZT=1 and b.SHZT=0 and c.sfx_bm=?

12

12

= ? and b.RKSHRQ <=? order by b.RKSHRQ,a.SFX_BM ]]>

12

12

12

93

93

0 and CZRQ >=? and CZRQ <= ? ) zjsl,(select sum(jbsl) jssl from HIS_KSKCJL where JGID=a.JGID and KSKC_PC_PKEY=pc.pkey and DPTID=a.DPTID and SFX_BM=a.SFX_BM and (LX != 8 and LX != 9 and LX != 10 and LX != 13 and LX != 14 ) and SL <0 and CZRQ >=? and CZRQ <= ? ) jssl,b.KCFL,b.ybbm,b.ybmc,pc.DJ,pc.JBDJ,pc.SJ,pc.JBSJ,pc.pkey kcpcpkey,(select sum(jbsl) zjsl from HIS_KSKCJL where JGID=a.JGID and KSKC_PC_PKEY=pc.pkey and DPTID=a.DPTID and SFX_BM=a.SFX_BM and (LX = 8 or LX = 9 or LX = 10 or LX = 13 or LX = 14 ) and SL >0 and CZRQ >=? and CZRQ <= ? ) pdzjsl,(select sum(jbsl) jssl from HIS_KSKCJL where JGID=a.JGID and KSKC_PC_PKEY=pc.pkey and DPTID=a.DPTID and SFX_BM=a.SFX_BM and (LX = 8 or LX = 9 or LX = 10 or LX = 13 or LX = 14 ) and SL <0 and CZRQ >=? and CZRQ <= ? ) pdjssl from HIS_KSKC a left join HIS_KSKC_PC pc on a.PKEY=pc.KSKC_PKEY and a.JGID=pc.JGID left join HIS_SFX b on a.JGID=b.JGID and a.SFX_BM=b.BM left join HIS_MMS_WZZD c on c.WZBM=b.GLBM and c.JGID=b.JGID left join HIS_KSRKC_PC d on a.SFX_BM=d.SFX_BM and d.KSKC_PC_PKEY=pc.pkey and a.JGID=d.JGID and a.DPTID=d.DPTID and d.RQVERSION=? left join HIS_KSRKC_PC e on a.SFX_BM=e.SFX_BM and e.KSKC_PC_PKEY=pc.pkey and a.JGID=e.JGID and a.DPTID=e.DPTID and e.RQVERSION=? where a.JGID=? and b.GLLX='W' #select# order by a.SFX_BM,a.DPTID ]]>

93

93

93

93

93

93

93

93

12

12

12