select
PKEY,BM,MC,SJBM,LZTYPE,XH,BZ,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG
from
HIS_MMS_DJLZ where JGID=? and lztype=? order by bm
12
12
select distinct b.BM,b.MC,b.JBDW,b.ZHXS,b.RKDW,b.JBJG,b.JG,c.WZCS
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' AND a.DPTID like ? and (b.BM like ? or b.MC
like ? or EXISTS (SELECT 1 FROM HIS_SFX_ZJM z WHERE z.SFX_BM = b.BM
and z.JGID=b.JGID and z.PYM like ?))
12
12
12
12
12
select
a.PKEY,a.DJH,a.DPTID,a.ZDRQ,a.ZDR,a.SHRQ,a.SHR,a.WCZT,a.SHZT,a.JE,a.SJJE,a.BZ,a.WZLZ,a.CJR,a.CJRQ,a.XGR,a.XGRQ,a.JGID,a.LOCKFLAG
from HIS_MMS_KC_CGJH a where a.JGID=? #select#
12
select
a.PKEY,a.CGJHPKEY,a.DJH,a.XH,a.SFX_BM,a.SL,a.DW,a.DJ,a.SJ,a.JE,a.SJJE,a.GYS,a.CJR,a.CJRQ,a.XGR,a.XGRQ,a.JGID,a.LOCKFLAG,b.MC,c.WZCS,b.DWVIEW
from HIS_MMS_KC_CGJH_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
where a.JGID=?
and a.CGJHPKEY=? order by a.XH
12
12
select
PKEY,DJH,DPTID,ZDRQ,ZDR,SHRQ,SHR,WCZT,SHZT,JE,SJJE,BZ,WZLZ,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG,sysdate
打印日期,'' 大写总金额 from HIS_MMS_KC_CGJH where JGID=? and DJH=?
12
12
select
PKEY,DJH,DPTID,GYS,WZLZ,ZDRQ,HB,RATE,ZXF,ZDR,SHZT,WCZT,SHR,SHRQ,JYRQ,JE,BZ,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG,sysdate
打印日期,'' 大写总金额 from HIS_MMS_KC_DD where JGID=? and DJH=?
12
12
select distinct
b.DPTID,b.DPTCODE,b.DPTNAME,b.DPTZJM,b.JGID,a.KSPKEY
from
HIS_MMS_KSGLLZ a left join MAIN_KS b on
a.JGID=b.JGID and
b.DPTID=a.KSPKEY where b.DPTFLAG = '1' and a.JGID=?
12
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.WZCS,b.WZGG,a.DWVIEW,b.WZJJ,b.ZBGYS,b.ZBPSS,(select
sum(SL) SL from HIS_KSKC where sfx_bm=a.bm and JGID=a.JGID)
sl,a.YBBM,a.YBMC from HIS_SFX a
left join HIS_MMS_WZZD b on
a.GLBM=b.WZBM
where a.JGID=? and a.GLLX='W' and b.WZLZ like ? and
(a.BM like ? or a.MC
like ? or EXISTS (SELECT 1 FROM HIS_SFX_ZJM b
WHERE b.SFX_BM = a.BM
and b.JGID=a.JGID and b.PYM like ?))
12
12
12
12
12
select
PKEY,DJH,DPTID,GYS,WZLZ,ZDRQ,DD_DJH,DDPKEY,RKLX,HB,RATE,ZXF,ZDR,SHZT,WCZT,SHR,SHRQ,JE,SJJE,BZ,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG,sysdate
打印日期,'' 大写总金额 from HIS_MMS_KC_RKD where JGID=? and DJH=?
12
12
select
a.PKEY,a.DJH,a.DPTID,a.GYS,a.WZLZ,a.ZDRQ,a.HB,a.RATE,a.ZXF,a.ZDR,a.SHZT,a.WCZT,a.SHR,a.SHRQ,a.JYRQ,a.JE,a.BZ,a.CJR,a.CJRQ,a.XGR,a.XGRQ,a.JGID,a.LOCKFLAG
from HIS_MMS_KC_DD a where a.JGID=? #select#
12
select
a.PKEY,a.DDPKEY,a.DJH,a.DPTID,a.XH,a.SFX_BM,a.DHRQ,a.QQDHSL,a.SJDHSL,a.SJJHSL,a.DW,a.DJ,a.JE,a.CGJHMX_PKEY,a.BZ,a.CJR,a.CJRQ,a.XGR,a.XGRQ,a.JGID,a.LOCKFLAG,b.MC,c.WZCS,b.DWVIEW
from HIS_MMS_KC_DD_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
where a.JGID=? and a.DDPKEY=? order by a.XH
12
12
=? and ZDRQ <=?]]>
12
93
93
select
a.PKEY,a.RKDPKEY,a.DJH,a.DPTID,a.XH,a.SFX_BM,a.KSKC_PC_PKEY,a.PH,a.YXQ,a.DW,a.SL,a.DJ,a.SJ,a.JE,a.SJJE,a.ZK,a.FPHM,a.FPJE,a.PCJG,a.DDMX_PKEY,a.BZ,a.CJR,a.CJRQ,a.XGR,a.XGRQ,a.JGID,a.LOCKFLAG,b.MC,b.JBDW,b.ZHXS,c.WZCS,b.DWVIEW,a.SCRQ
from HIS_MMS_KC_RKD_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 where a.JGID=?
and a.DJH=? order by a.XH
12
12
select
PKEY,DJH,DPTID,GYS,RK_DJH,WZLZ,ZDRQ,ZDR,SHZT,WCZT,SHR,SHRQ,JE,SJJE,BZ,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG,sysdate
打印日期,'' 大写总金额 from HIS_MMS_KC_THD where JGID=? and DJH=?
12
12
select
JGID,DJH,DPTID,GYS,WZLZ,RK_DJH,ZDRQ,ZDR,SHZT,WCZT,SHR,SHRQ,JE,SJJE,BZ
from HIS_MMS_KC_THD a
where a.JGID=? and a.ZDRQ between ? and ?
12
93
93
select a.PKEY,a.THDPKEY,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,a.CJR,a.CJRQ,a.XGR,a.XGRQ,a.JGID,a.LOCKFLAG,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 from HIS_MMS_KC_THD_MX a left join HIS_MMS_KC_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 where a.JGID=? and a.DJH=? order by a.XH
12
12
select PKEY,DJH,DPTID,WZLZ,SHZT,WCZT,SHR,SHRQ,TZYY,JE,SJJE,BZ,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG,sysdate 打印日期,'' 大写总金额 from HIS_MMS_KC_KCTZ where JGID=? and DJH=?
12
12
select a.PKEY,a.THDPKEY,a.DJH,a.XH,a.SFX_BM,a.KSKC_PC_PKEY,a.DW,a.DJ,a.SJ,a.SL,a.JE,a.SJJE,a.CJR,a.CJRQ,a.XGR,a.XGRQ,a.JGID,a.LOCKFLAG,a.YXQ,a.SCRQ,b.MC,b.JBDW,b.RKDW,b.ZHXS,b.DWVIEW,c.WZCS,c.WZGG,
e.PH,e.SL PCSL,e.KYSL,e.DJ PCDJ,e.JBDJ PCJBDJ,e.SJ PCSJ,e.JBSJ PCJBSJ,a.TZPH
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
where a.JGID=? and a.DJH=? order by a.XH
12
12
= ? and CJRQ <=?
]]>
12
93
93
0 and c.GLLX='W' and y.WZLZ=? and (c.BM like ? or c.MC like ? or EXISTS (SELECT 1 FROM HIS_SFX_ZJM z WHERE z.SFX_BM = c.BM and z.JGID=c.JGID and z.PYM like ?))
]]>
12
12
12
12
12
12
select PKEY,DJH,DPTID,WZLZ,SHZT,WCZT,SHR,SHRQ,TZYY,JE,SJJE,BZ,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG,sysdate 打印日期,'' 大写总金额 from HIS_MMS_KC_KCSH where JGID=? and DJH=?
12
12
select a.PKEY,a.KCSHPKEY,a.XH,a.SFX_BM,a.DJH,a.KSKC_PC_PKEY,a.DW,a.DJ,a.SJ,a.SL,a.JE,a.SJJE,a.CJR,a.CJRQ,a.XGR,a.XGRQ,a.JGID,a.LOCKFLAG,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
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
where a.JGID=? and a.DJH=? order by a.XH
12
12
= ? and CJRQ <=?
]]>
12
93
93
select PKEY,DJH,SQKS,JSKS,WZLZ,ZDRQ,ZDR,WCZT,JE,SJJE,SHZT,SHR,SHRQ,BZ,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG,sysdate 打印日期,'' 大写总金额 from HIS_MMS_KC_DBSQ where JGID=? and DJH=?
12
12
select a.PKEY,a.DBSQPKEY,a.DJH,a.XH,a.SFX_BM,a.KSKC_PC_PKEY,a.SL,a.SJDBSL,a.DW,a.DJ,a.SJ,a.JE,a.SJJE,a.CJR,a.CJRQ,a.XGR,a.XGRQ,a.JGID,a.LOCKFLAG,b.MC,b.JBDW,b.ZHXS,b.RKDW,b.JG,b.JBJG,c.WZCS,b.DWVIEW
,e.DJ PCDJ,e.JBDJ PCJBDJ,e.SJ PCSJ,e.JBSJ PCJBSJ,e.PH,e.YXQ,c.WZGG
from HIS_MMS_KC_DBSQ_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_MMS_KC_DBSQ d on a.JGID=d.JGID and a.DJH=d.DJH
left join HIS_KSKC_PC e on a.JGID=e.JGID and e.PKEY=a.KSKC_PC_PKEY
where a.JGID=? and a.DJH=? order by a.XH
12
12
= ? and a.ZDRQ <= ? #select#
]]>
12
93
93
select PKEY,DJH,SQDJH,SQKS,JSKS,WZLZ,CKRQ,CKR,CKSHRQ,CKSHR,RKSHRQ,RKSHR,WCZT,SHZT,RKZT,ZYLX,JE,SJJE,ZT,BZ,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG,sysdate 打印日期,'' 大写总金额 from HIS_MMS_KC_DBD where JGID=? and DJH=?
12
12
select a.PKEY,a.DBDPKEY,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,a.CJR,a.CJRQ,a.XGR,a.XGRQ,a.JGID,a.LOCKFLAG,b.MC,b.JBDW,b.RKDW,b.ZHXS,b.JG,b.JBJG,c.KYSL,c.PH,c.KSKC_PKEY,c.YXQ,
b.DWVIEW,sq.SL SQSL,sq.SJDBSL,sq.DW SQDW,c.DJ PCDJ,c.JBDJ PCJBDJ,c.SJ PCSJ,c.JBSJ PCJBSJ,y.WZCS,y.WZGG,b.ybbm,b.ybmc
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_KC_DBSQ_MX sq on a.JGID=sq.JGID and a.DBSQMX_PKEY=sq.PKEY
left join HIS_MMS_WZZD y on b.BM=y.WZBM
where a.JGID=? and a.DJH=?
12
12
= ? and CKRQ <=?
]]>
12
93
93
select a.PKEY,a.DBSQPKEY,a.DJH,a.XH,a.SFX_BM,a.KSKC_PC_PKEY,a.SL,a.SJDBSL,a.DW,a.DJ,a.SJ,a.JE,a.SJJE,a.CJR,a.CJRQ,a.XGR,a.XGRQ,a.JGID,a.LOCKFLAG,b.MC,b.JBDW,b.ZHXS,b.RKDW,b.JG,b.JBJG,c.WZCS,c.WZGG,d.SQKS,d.JSKS,b.DWVIEW,
d.WZLZ,pc.PH,pc.YXQ,pc.DJ PCDJ,pc.JBDJ PCJBDJ,pc.SJ PCSJ,pc.JBSJ PCJBSJ,pc.KYSL
from HIS_MMS_KC_DBSQ_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_MMS_KC_DBSQ d on a.JGID=d.JGID and a.DJH=d.DJH
left join HIS_KSKC_PC pc on a.JGID=pc.JGID and pc.PKEY=a.KSKC_PC_PKEY
where a.JGID=? and a.DJH=? order by a.XH
12
12
select PKEY,DJH,DPTID,WCZT,SPZT,SHZT,SHR,SHRQ,TZDJH,QSHW,JSHW,WZLZ,KCFL,BHBKY,JBKY,FLKC,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG,sysdate 打印日期,'' 大写总金额 from HIS_MMS_KC_PD where JGID=? and DJH=?
12
12
select a.PKEY,a.PDPKEY,a.XH,a.SFX_BM,a.DJH,a.KSKC_PC_PKEY,a.DW,a.ZPS,a.RKDWZPS,a.ZPSJ,a.SPS,a.SPSJ,a.SPR,a.SYS,a.KCTZ_PKEY,a.CJR,a.CJRQ,a.XGR,a.XGRQ,a.JGID,a.LOCKFLAG,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,b.DWVIEW,e.DJ PCDJ,e.JBDJ PCJBDJ,e.SJ PCSJ,e.JBSJ PCJBSJ
from HIS_MMS_KC_PD_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.GLBM
left join HIS_KSKC_PC e on a.JGID=e.JGID and e.PKEY=a.KSKC_PC_PKEY
where a.JGID=? and a.DJH=?
12
12
SELECT a.PKEY,a.LZPKEY,a.KCFLPKEY,a.LZTYPE,a.CJR,a.CJRQ,a.XGR,a.XGRQ,a.JGID,a.LOCKFLAG,b.mc FROM HIS_MMS_LZGLKCFL a left join MAIN_JGZDB b on a.JGID=b.JGID and b.JGZDLB_BH='Z00008' and a.KCFLPKEY=b.bh WHERE a.JGID=? AND a.LZPKEY=? ORDER BY a.PKEY
12
12
select b.PKEY,b.PH,b.YXQ,b.SL,b.KYSL,b.DJSL,c.BM,c.MC,c.JBDW,c.ZHXS,c.RKDW,c.JG,c.JBJG,y.WZCS,y.WZGG,c.DWVIEW
from HIS_KSKC a
left join HIS_KSKC_PC b on a.JGID=b.JGID and a.PKEY=b.KSKC_PKEY
left join HIS_SFX c on a.JGID=c.JGID and a.SFX_BM=c.BM
left join HIS_MMS_WZZD y on c.GLBM=y.WZBM
where a.JGID=? and c.GLLX='W' and a.DPTID=? #select#
12
12
=? and CJRQ <=? ORDER BY CJRQ
]]>
12
93
93
select a.PKEY,a.PDPKEY,a.XH,a.SFX_BM,a.DJH,a.KSKC_PC_PKEY,a.DW,a.ZPS,a.RKDWZPS,a.ZPSJ,a.SPS,a.SPSJ,a.SPR,a.SYS,a.KCTZ_PKEY,a.CJR,a.CJRQ,a.XGR,a.XGRQ,a.JGID,a.LOCKFLAG,b.MC,b.JBDW,b.RKDW,b.JBJG,b.JG,b.ZHXS,c.WZCS,c.WZGG,e.PH,e.YXQ,b.DWVIEW from HIS_MMS_KC_PD_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.GLBM left join HIS_KSKC_PC e on a.JGID=e.JGID and e.PKEY=a.KSKC_PC_PKEY where a.JGID=? and a.DJH=? and a.SFX_BM=?
12
12
12
select a.XH,a.SFX_BM,b.MC,b.JBDW,b.RKDW,b.JBJG,b.JG,b.ZHXS,c.WZCS,c.WZGG,e.PH,e.YXQ,b.DWVIEW
from HIS_MMS_KC_PD_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.GLBM
left join HIS_KSKC_PC e on a.JGID=e.JGID and e.PKEY=a.KSKC_PC_PKEY
where a.JGID=? and a.DJH=? and (a.SFX_BM like ? or b.MC like ? or EXISTS (SELECT 1 FROM HIS_SFX_ZJM z WHERE z.SFX_BM = b.BM and z.JGID=b.JGID and z.PYM like ?))
12
12
12
12
12
12
select distinct b.BM,b.MC
from HIS_MMS_KC_PD_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.GLBM
where a.JGID=? and a.DJH=? and (b.BM like ? or b.MC like ? or EXISTS (SELECT 1 FROM HIS_SFX_ZJM z WHERE z.SFX_BM = b.BM and z.JGID=b.JGID and z.PYM like ?))
12
12
12
12
12
select a.JGID,a.PKEY,a.SFX_BM,a.SL,a.KYSL,a.DJSL,a.HWM_BM,b.MC,b.JBDW,b.ZHXS,b.RKDW,b.JG,b.JBJG,c.WZGG,c.WZCS,b.DWVIEW,c.WZLZ,c.KCFL,a.DPTID,b.ZT,b.ybbm,b.ybmc,a.LOCKFLAG,c.ZCZH
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
where a.JGID=? and b.GLLX='W'
12
select a.PKEY,a.JGID,a.KSKC_PKEY,a.PH,a.YXQ,a.SCRQ,a.SL,a.KYSL,a.DJSL,a.DJ,a.JBDJ,a.SJ,a.JBSJ,a.YSPKEY,a.LOCKFLAG,a.FIRST_KSKC_PC_PKEY,a.CGSHRQ,b.DWVIEW
,a.ZJPCTJBM
,log.DJ as LOG_DJ
,log.JBDJ as LOG_JBDJ
,log.SJ as LOG_SJ
,log.JBSJ as LOG_JBSJ
from HIS_KSKC_PC a
left join HIS_KSKC c on c.JGID=a.JGID and c.PKEY=a.KSKC_PKEY
left join HIS_SFX b on c.JGID=b.JGID and c.SFX_BM=b.BM
left join HIS_KSKC_PC_TJ_LOG log on log.JGID = a.JGID and log.TJPCBM = a.ZJPCTJBM
where a.JGID=? and a.KSKC_PKEY=? and b.GLLX='W' order by a.CGSHRQ
12
12
select distinct b.BM,b.MC,b.JBDW,b.ZHXS,b.RKDW,b.JBJG,b.JG,c.WZCS
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' AND a.DPTID like ? and (b.BM like ? or b.MC like ? or EXISTS (SELECT 1 FROM HIS_SFX_ZJM z WHERE z.SFX_BM = b.BM and z.JGID=b.JGID and z.PYM like ?))
12
12
12
12
12
select count(*) num 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 b.GLBM=c.WZBM where a.JGID=? and c.WZBM=?
12
12
select PKEY,HZPKEY,JZPKEY,MZFPPKEY,ZDZBPKEY,FYCK,FYYF,FYZT,SFDY,SFTY,CFH,PYZT,SHZT,CJR,CJRQ,XGR,XGRQ,JGID,PYR,PYRQ,SHR,SHRQ,FYR,FYRQ from HIS_MMS_MZDFYZB where 1=2
select PKEY,YZX,YZMX,YZDJ,YZSL,DFYPKEY,FYMXPKEY,HZBQ,HZKS,FYKS,HZPKEY,YPFL,JZPKEY,TYPE,CJR,CJRQ,XGR,XGRQ,JGID,YZDL,TYSL,SFSL,SFLYSH,SFYSSH,LYSHR,LYSHRQ,YSSHR,YSSHRQ,FYZT,FYCX,PYLX,JSYBH,LOCKFLAG from HIS_MMS_PYB where 1=2
select JG,JBJG from HIS_SFX
where JGID=? and BM=?
12
12
SELECT a.LZPKEY,a.KCFLPKEY,b.mc,b.BH FROM HIS_MMS_LZGLKCFL a left join MAIN_JGZDB b on b.BH=a.KCFLPKEY and a.JGID=b.JGID and b.JGZDLB_BH='Z00008' left join HIS_MMS_DJLZ c on a.lzpkey=c.pkey and a.JGID =c.JGID WHERE a.JGID=? AND c.bm like ? ORDER BY a.PKEY
12
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,YBPKEY from HIS_SFX where JGID=? and GLBM=?
12
12
select a.PKEY,a.YZX,a.YZMX,a.YZDJ,a.YZSL,a.DFYPKEY,a.FYMXPKEY,a.HZBQ,a.HZKS,a.FYKS,a.HZPKEY,a.YPFL,a.JZPKEY,a.TYPE,a.CJR,a.CJRQ,a.XGR,a.XGRQ,a.JGID,a.YZDL,a.TYSL,a.SFSL,a.SFLYSH,a.SFYSSH,a.LYSHR,a.LYSHRQ,a.YSSHR,a.YSSHRQ,a.FYZT,d.ward,d.bed,d.jjys,f.xm,e.zxtime,a.yzsl*b.YZJZZHXS jzyzsl,b.YPYZJBDW,b.YZJZZHXS,b.YZMC,c.WZGG,b.YZJL,b.YZJLDW,b.YZPC,b.yzcl,e.zxflag,a.FYCX from HIS_MMS_PYB a left join HIS_YZ_MXB b on a.YZMX=b.PKEY and a.JGID=b.JGID left join HIS_MMS_WZZD c on a.YZX=c.WZBM and a.JGID=c.JGID left join HIS_JZ_BASEINFO d on a.JZPKEY=d.pkey and a.JGID=d.JGID left join HIS_YZ_EXEC e on a.DFYPKEY=e.pkey and a.JGID=e.JGID left join HIS_HZINFO f on a.hzpkey=f.pkey and a.JGID=f.JGID where a.JGID=? and a.hzpkey=? and a.JZPKEY =? AND a.TYPE='Z' and d.JZLX='Z' AND d.JZZT='Z' and a.FYCX=0 and a.FYZT=0 and e.zxflag=1 and a.YZMX=? and a.DFYPKEY=?
PKEY
YZMX
DFYPKEY
FYCX
FYZT
12
12
12
12
12
select kcpc.PH,kcpc.YXQ,kcpc.SL,kcpc.KYSL,kcpc.DJSL,kcpc.DJ,kcpc.JBDJ,kcpc.SJ,kcpc.JBSJ,kcpc.JGID,a.SFX_BM,b.MC,b.JBDW,b.ZHXS,b.RKDW,b.JG,b.JBJG,c.WZGG,c.WZCS,b.DWVIEW,c.WZLZ,c.KCFL,a.DPTID,b.ZT,b.ybbm,b.ybmc,a.LOCKFLAG
from HIS_KSKC_PC kcpc left join HIS_KSKC a on kcpc.KSKC_PKEY=a.pkey and kcpc.JGID=a.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
where a.JGID=? and b.GLLX='W' and kcpc.SL > 0
12
0)
]]>
12
12
12
12
12
select PKEY,SFX_BM,DJH,TJRQ,JHSXRQ,SXRQ,TJR,TJDW,TQSJ,THSJ,CJ,QTTQSJ,QTTHSJ,QTCJ,TJYY,ZT,BZ,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG from HIS_MMS_KC_TJB where JGID=? and DJH=? and SFX_BM=?
12
12
12
select PKEY,SFX_BM,DJH,TJDJH,KSKC_PC_PKEY,SL,JBSL,DW,JE,BZ,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG from HIS_MMS_KC_TJB_SY where 1=2
= ? and a.TJRQ <= ?
order by a.DJH,a.CJRQ
]]>
12
93
93
12
12
12
select PKEY,KSPKEY,CGRYPKEY,ISMR,ISJH,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG from HIS_MMS_KSCGY where JGID=? and KSPKEY=? order by pkey
12
12
select PKEY,KCFL,FYZL,HSZL,KJZL,MZZL,ZYZL,BASYFL,YZZL,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG from HIS_MMS_KCFLGLQTFL where JGID=? order by pkey
12
select PKEY,BM,MC,SJBM,LZTYPE,XH,BZ,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG from HIS_MMS_DJLZ where JGID=? and lztype=? and SJBM like ? order by bm
12
12
12
SELECT PKEY,LZPKEY,KCFLPKEY,LZTYPE,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG FROM HIS_MMS_LZGLKCFL WHERE JGID=? AND LZPKEY=? ORDER BY PKEY
12
12
select JGID,JGZDLB_BH,BH,MC,PYM,WBM,VALUE1,VALUE2,XH,ZT,VALUE3,VALUE4,VALUE5 from MAIN_JGZDB where JGID=? and JGZDLB_BH='Z00008' and BH not in (select KCFLPKEY from HIS_MMS_LZGLKCFL where JGID=? and LZTYPE=?) and (MC like ? or PYM like ? or WBM like ?) order by XH asc
12
12
12
12
12
12
select PKEY,KSPKEY,LZBH,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG from HIS_MMS_KSGLLZ where JGID=? and kspkey=?
12
12
select PKEY,RYPKEY,LZBH,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG from HIS_MMS_RYGLLZ where JGID=? and rypkey=?
12
12
SELECT PKEY,JBDW,RKDW,KCFL,LZ,ZYFS,PC,XQ,JC,TM,JJ,SJ,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG FROM HIS_MMS_MUSTINPUT WHERE JGID=?
12
select PKEY,BM,MC,ISQY,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG from HIS_MMS_DECIMAL where JGID=? order by pkey
12
select PKEY,GZPKEY,XX,SX,GZWS,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG from HIS_MMS_DECIMAL_DETAIL where JGID=? and gzpkey=? order by pkey
12
12
SELECT PKEY,BM,MC,ISQY,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG FROM HIS_MMS_DJLX WHERE JGID=? ORDER BY PKEY
12
select PKEY,DJLXPKEY,DECIMALPKEY,BM,MC,GZXX,GZSX,JCL,JCE,ZGJCL,ZGJCE,ISQY,BZ,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG from HIS_MMS_DJLX_DJGZ where JGID=? and DJLXPKEY=? order by pkey
12
12
select PKEY,BM,MC,ISQY,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG from HIS_MMS_DECIMAL where JGID=? and ISQY=1 order by pkey
12
select a.PKEY,a.WZBM,a.WZMC,a.WZGG,a.WZXH,a.WZPP,a.WZJC,a.JBDW,a.RKDW,a.ZHXS,a.WZLZ,a.KCFL,a.ISPHYQ,a.ISXQYQ,a.XQCD,a.ZBFL,a.JGJB,a.BWM,a.WZBZ,a.ISSF,a.WZJJ,a.WZSJ,a.JGSXRQ,a.WJWJH,a.DJLX,a.WJBARQ,a.SFLX,a.WZCS,a.ZCZH,a.ZCZYXRQ,a.ZCZFZRQ,a.ZCZMC,a.ZBMC,a.ZBGYS,a.ZBPSS,a.ZBJB,a.ZBRQ,a.ZBJJ,a.WZGB,a.WZTM,a.WZCD,a.ZGSJ,a.MJFL,a.MJSJCD,a.ZLCC,a.ZBBH,a.ZD,a.ISJK,a.ISGZ,a.ISYCX,a.ISZR,a.ISJJQL,a.CCTJPKEY,a.QQLX,a.ZT,a.CJR,a.CJRQ,a.XGR,a.XGRQ,a.JGID,a.LOCKFLAG,a.CLFL,b.ybbm,b.ybmc,b.JG,b.JBJG from HIS_MMS_WZZD a left join HIS_SFX b on a.WZBM=b.GLBM and a.JGID=b.JGID where a.JGID=? order by a.pkey
12
select WZBM,MINWD,MAXWD,MINSD,MAXSD,ISCW,ISNC,ISGZ,ISBG,ISTF,ISYL,ISLA,ISMB,ISRF,ISMF,ISFFS,ISLD,ISFC,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG from HIS_MMS_CCTJ where JGID=? and WZBM=?
12
12
select PKEY,WZBM,PYM,FLAG,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG from HIS_MMS_ZJM where JGID=? and wzbm=? order by pkey
12
12
SELECT PKEY,JBDW,RKDW,KCFL,LZ,ZYFS,PC,XQ,JC,TM,JJ,SJ,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG FROM HIS_MMS_MUSTINPUT WHERE JGID=?
12
select a.PKEY,a.RKDPKEY,a.DJH,a.DPTID,a.XH,a.SFX_BM,a.KSKC_PC_PKEY,a.PH,a.YXQ,a.DW,a.SL,a.DJ,a.SJ,a.JE,a.SJJE,a.ZK,a.FPHM,a.FPJE,a.PCJG,a.DDMX_PKEY,a.BZ,a.CJR,a.CJRQ,a.XGR,a.XGRQ,a.JGID,a.LOCKFLAG,b.MC,b.JBDW,b.ZHXS,c.WZCS,b.DWVIEW,b.RKDW,c.wzgg,b.ybbm,b.ybmc,a.SCRQ from HIS_MMS_KC_RKD_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 where a.JGID=? and a.DJH=? order by a.XH
12
12
select PKEY,WZBM,WZMC,WZGG,WZXH,WZPP,WZJC,JBDW,RKDW,ZHXS,WZLZ,KCFL,ISPHYQ,ISXQYQ,XQCD,ZBFL,JGJB,BWM,WZBZ,ISSF,WZJJ,WZSJ,JGSXRQ,WJWJH,DJLX,WJBARQ,SFLX,WZCS,ZCZH,ZCZYXRQ,ZCZFZRQ,ZCZMC,ZBMC,ZBGYS,ZBPSS,ZBJB,ZBRQ,ZBJJ,WZGB,WZTM,WZCD,ZGSJ,MJFL,MJSJCD,ZLCC,ZBBH,ZD,ISJK,ISGZ,ISYCX,ISZR,ISJJQL,CCTJPKEY,QQLX,ZT,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG,CLFL from HIS_MMS_WZZD where 1=2
select PKEY,CGJHPKEY,DPTID,CGDH,DDH,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG from HIS_MMS_KC_CGJH_DD where JGID=? and DPTID=? and CGDH=?
12
12
12
select a.PKEY,a.DDPKEY,a.DJH,a.DPTID,a.XH,a.SFX_BM,a.DHRQ,a.QQDHSL,a.SJDHSL,a.SJJHSL,a.DW,a.DJ,a.JE,a.CGJHMX_PKEY,a.BZ,a.CJR,a.CJRQ,a.XGR,a.XGRQ,a.JGID,a.LOCKFLAG,b.MC,c.WZCS,b.DWVIEW
from HIS_MMS_KC_DD_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
where a.JGID=? and a.DDPKEY=? #select# order by a.XH
12
12
0 and (b.BM like ? or b.MC like ? or EXISTS (SELECT 1 FROM HIS_SFX_ZJM z WHERE z.SFX_BM = b.BM and z.JGID=b.JGID and z.PYM like ?))
]]>
12
12
12
12
12
12
12
select a.PKEY,a.RKDPKEY,a.DJH,a.DPTID,a.XH,a.SFX_BM,a.KSKC_PC_PKEY,a.PH,a.YXQ,a.DW,a.SL,a.DJ,a.SJ,a.JE,a.SJJE,a.ZK,a.FPHM,a.FPJE,a.PCJG,a.DDMX_PKEY,a.BZ,a.CJR,a.CJRQ,a.XGR,a.XGRQ,a.JGID,a.LOCKFLAG,b.MC,b.JBDW,b.ZHXS,c.WZCS,b.DWVIEW,b.RKDW from HIS_MMS_KC_RKD_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_YFYK_RKD d on a.JGID=d.JGID and a.DJH=d.DJH
left join HIS_KSKC_PC e on a.JGID=e.JGID and e.PKEY=a.KSKC_PC_PKEY where a.JGID=? and a.DJH=? and e.KYSL>0 order by a.XH
12
12
= ? and a.SHRQ <=? and a.DPTID like ? and a.GYS like ? and a.DJH like ? and exists(select 1 from HIS_MMS_KC_RKD_MX b
left join HIS_KSKC_PC c on b.JGID=c.JGID and c.PKEY=b.KSKC_PC_PKEY where a.JGID=b.JGID and a.DJH=b.DJH and c.KYSL>0)
]]>
12
93
93
12
12
12
= ? and SXRQ <= ?]]>
12
12
93
93
select DJH from HIS_MMS_KC_TJB where JGID =? and SFX_BM=? and (ZT='1' or ZT='2')
12
12
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.WZCS,b.WZGG,a.DWVIEW,b.WZJJ,b.ZBGYS,b.ZBPSS,(select sum(SL) SL from HIS_KSKC where sfx_bm=a.bm and JGID=a.JGID) sl,a.YBBM,a.YBMC,c.LASTJJ,kc.sl kcsl from HIS_SFX a
left join HIS_MMS_WZZD b on a.GLBM=b.WZBM
left join HIS_YFYK_YPJJ c on a.bm=c.SFX_BM and a.JGID=c.JGID
left join HIS_KSKC kc on a.GLBM=kc.SFX_BM and a.JGID=kc.JGID and kc.DPTID=?
where a.JGID=? and a.GLLX='W' and b.zt=1 and b.WZLZ like ? and (a.BM like ? or a.MC like ? or EXISTS (SELECT 1 FROM HIS_SFX_ZJM b WHERE b.SFX_BM = a.BM and b.JGID=a.JGID and b.PYM like ?))
12
12
12
12
12
12
select a.PKEY,a.WZBM,a.WZMC,a.WZGG,a.WZXH,a.WZPP,a.WZJC,a.JBDW,a.RKDW,a.ZHXS,a.WZLZ,a.KCFL,a.ISPHYQ,a.ISXQYQ,a.XQCD,a.ZBFL,a.JGJB,a.BWM,a.WZBZ,a.ISSF,a.WZJJ,a.WZSJ,a.JGSXRQ,a.WJWJH,a.DJLX,a.WJBARQ,a.SFLX,a.WZCS,a.ZCZH,a.ZCZYXRQ,a.ZCZFZRQ,a.ZCZMC,a.ZBMC,a.ZBGYS,a.ZBPSS,a.ZBJB,a.ZBRQ,a.ZBJJ,a.WZGB,a.WZTM,a.WZCD,a.ZGSJ,a.MJFL,a.MJSJCD,a.ZLCC,a.ZBBH,a.ZD,a.ISJK,a.ISGZ,a.ISYCX,a.ISZR,a.ISJJQL,a.CCTJPKEY,a.QQLX,a.ZT,a.CJR,a.CJRQ,a.XGR,a.XGRQ,a.JGID,a.LOCKFLAG,a.CLFL,b.ybbm,b.ybmc,b.JG,b.JBJG from HIS_MMS_WZZD a left join HIS_SFX b on a.WZBM=b.GLBM and a.JGID=b.JGID where a.JGID=? and EXISTS (SELECT 1 FROM HIS_MMS_ZJM c WHERE c.WZBM = a.WZBM and c.JGID=a.JGID and c.PYM like ?)order by a.pkey
12
12
12
12