select
a.JGID,a.SFX_BM,a.DJH,a.TJDW,a.SXRQ,a.THSJ,a.QTTHSJ,a.ZT,b.JBDW
from HIS_YFYK_TJB a
left join HIS_SFX b on a.JGID=b.JGID and
a.SFX_BM=b.BM
where a.JGID =? and a.ZT='2' and a.JHSXRQ between ?
and ?
12
93
93
select JGID,DJH,DPTID,GYS,LZ,ZDRQ,HB,RATE,ZXF,ZDR,SHZT,WCZT,SHR,SHRQ,JYRQ,JE,BZ,LOCKFLAG,sysdate 打印日期,'' 大写总金额 from HIS_YFYK_DD where JGID=? and DJH=?
12
12
select a.PKEY,a.JGID,a.DPTID,a.DJH,a.XH,a.SFX_BM,a.DHRQ,a.QQDHSL,a.SJDHSL,a.SJJHSL,a.DW,a.DJ,a.JE,a.CGJHMX_PKEY,a.BZ,b.MC,c.CSXX,b.DWVIEW,a.LOCKFLAG
from HIS_YFYK_DD_MX a
left join HIS_SFX b on a.JGID=b.JGID and a.SFX_BM=b.BM
left join HIS_YPXX c on c.BM=b.BM
where a.JGID=? and a.DJH=? order by a.XH
12
12
select PKEY,JGID,SFX_BM,DPTID,SL,KYSL,DJSL,HWM_BM,KCXX,KCSX,BZKC,BCKCFS,LOCKFLAG from HIS_KSKC where JGID=? and DPTID=? and SFX_BM=?
12
12
12
select a.PKEY,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,a.FIRST_KSKC_PC_PKEY,a.CGSHRQ,a.SCRQ from HIS_KSKC_PC a where a.JGID=? and a.KSKC_PKEY=? and PH=?
12
12
12
select a.PKEY,a.JGID,a.KSKC_PKEY,a.PH,a.SCRQ,a.YXQ,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 from HIS_KSKC_PC a where a.JGID=? and a.PKEY=?
12
12
select a.PKEY,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,a.FIRST_KSKC_PC_PKEY,a.CGSHRQ from HIS_KSKC_PC a where a.JGID=? and a.KSKC_PKEY=? and a.YSPKEY=?
12
12
12
select PKEY,JGID,SFX_BM,DPTID,KSSL,JSSL,RQ,RQVERSION,LOCKFLAG from HIS_KSRKC where JGID=? and DPTID=? and SFX_BM=? and RQ between ? and ?
PKEY
JGID
SFX_BM
DPTID
RQ
JSSL
12
12
12
93
93
select PKEY,JGID,SFX_BM,DPTID,KSKC_PC_PKEY,KSSL,JSSL,RQ,RQVERSION,LOCKFLAG from HIS_KSRKC_PC where JGID=? and DPTID=? and KSKC_PC_PKEY=? and RQ between ? and ?
PKEY
JGID
SFX_BM
DPTID
KSKC_PC_PKEY
RQ
JSSL
12
12
12
93
93
select PKEY,JGID,DPTID,SFX_BM,KSKC_PC_PKEY,CZRQ,CZR,DJH,LX,SL,DW,DJ,JE,JYSL,LOCKFLAG,JBDW,JBSL,JBJYSL,HZPKEY,JZPKEY,EXEPKEY,YZMX,FYMXBPKEY from HIS_KSKCJL where 1=2
0]]>
12
0]]>
12
12
select JGID,DJH,SQDJH,SQKS,JSKS,LZ,CKRQ,CKR,CKSHRQ,CKSHR,RKSHRQ,RKSHR,WCZT,SHZT,RKZT,ZYLX,JE,SJJE,ZT,BZ,LOCKFLAG,DBTYPE,sysdate 打印日期,'' 大写总金额
from HIS_YFYK_DBD where JGID=? and DJH=?
12
12
select a.PKEY,a.JGID,a.DJH,row_number() over(order by a.SFX_BM) 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,sq.SL SQSL,sq.SJDBSL,sq.DW SQDW,c.DJ PCDJ,c.JBDJ PCJBDJ,c.SJ PCSJ,c.JBSJ PCJBSJ,y.CSXX,y.GG,a.LOCKFLAG,b.ybbm,b.ybmc,c.FIRST_KSKC_PC_PKEY
from HIS_YFYK_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_YFYK_DBSQ_MX sq on a.JGID=sq.JGID and a.DBSQMX_PKEY=sq.PKEY
left join HIS_YPXX y on b.BM=y.BM
where a.JGID=? and a.DJH=? order by XH asc
//PKEY,JGID,DJH,XH,SFX_BM,KSKC_PC_PKEY,DBSQMX_PKEY,SL,DW,DJ,SJ,JE,SJJE,
12
12
select JGID,DJH,SQDJH,SQKS,JSKS,LZ,CKRQ,CKR,CKSHRQ,CKSHR,RKSHRQ,RKSHR,WCZT,SHZT,RKZT,ZYLX,JE,SJJE,ZT,BZ
from HIS_YFYK_DBD where JGID=? and DBTYPE = ? and CKRQ between ? and ?
12
12
93
93
12
93
93
12
12
12
12
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
0 and c.KCFL in (select bh from MAIN_JGZDB where JGID=a.JGID and jgzdlb_bh='Z00008' and value2 like ?) 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
0 order by PKEY asc]]>
12
12
12
0 order by PKEY asc]]>
12
12
12
12
select JGID,DJH,DPTID,GYS,LZ,ZDRQ,DD_DJH,RKLX,HB,RATE,ZXF,ZDR,SHZT,WCZT,SHR,SHRQ,JE,SJJE,BZ,LOCKFLAG,sysdate 打印日期,'' 大写总金额,'' 零进差价合计 from HIS_YFYK_RKD where JGID=? and DJH=?
12
12
select a.PKEY,a.JGID,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,b.MC,b.JBDW,b.ZHXS,c.CSXX,b.DWVIEW,b.RKDW,a.LOCKFLAG,c.GG
,'' 零进差价,d.value2 kclz,b.ybbm,b.ybmc,c.ZCZH,a.SCRQ from HIS_YFYK_RKD_MX a
left join HIS_SFX b on a.JGID=b.JGID and a.SFX_BM=b.BM
left join HIS_YPXX c on c.BM=b.BM
left join MAIN_JGZDB d on b.kcfl=d.bh and d.jgzdlb_bh='Z00008' and d.JGID=b.JGID
where a.JGID=? and a.DJH=? order by a.pkey
12
12
select JGID,DJH,DPTID,GYS,LZ,ZDRQ,ZDR,SHZT,WCZT,SHR,SHRQ,JE,SJJE,RK_DJH,BZ,LOCKFLAG,sysdate 打印日期,'' 大写总金额 from HIS_YFYK_THD where JGID=? and DJH=?
//JGID,DJH,DPTID,GYS,ZDRQ,ZDR,SHZT,WCZT,SHR,SHRQ,JE,SJJE,BZ,
12
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.CSXX,r.SFX_BM,r.PH,r.YXQ,r.SL RKSL,a.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.GG
from HIS_YFYK_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_YPXX c on c.BM=b.BM
left join HIS_KSKC_PC e on r.JGID=e.JGID and e.PKEY=a.KSKC_PC_PKEY
where a.JGID=? and a.DJH=? order by a.XH
12
12
select PKEY,JGID,SFX_BM,DPTID,SL,KYSL,DJSL,HWM_BM,KCXX,KCSX,BZKC,BCKCFS,LOCKFLAG from HIS_KSKC where JGID=? and PKEY=?
PKEY
JGID
SFX_BM
SL
KYSL
DJSL
//PKEY,JGID,SFX_BM,DPTID,SL,KYSL,DJSL,HWM_BM,KCXX,KCSX,BZKC,BCKCFS
12
12
select PKEY,JGID,KSKC_PKEY,PH,YXQ,SL,KYSL,DJSL,LOCKFLAG,FIRST_KSKC_PC_PKEY from HIS_KSKC_PC where JGID=? and PKEY=?
PKEY
JGID
KSKC_PKEY
SL
KYSL
DJSL
//PKEY,JGID,KSKC_PKEY,PH,YXQ,SL,KYSL,DJSL
12
12
select PKEY,JGID,SFX_BM,DPTID,KSSL,JSSL,RQ,RQVERSION,LOCKFLAG from HIS_KSRKC where JGID=? and DPTID=? and SFX_BM=? and RQVERSION=?
PKEY
JGID
SFX_BM
DPTID
KSSL
JSSL
//PKEY,JGID,SFX_BM,DPTID,KSSL,JSSL,RQ,RQVERSION
12
12
12
12
select PKEY,JGID,SFX_BM,DPTID,KSKC_PC_PKEY,KSSL,JSSL,RQ,RQVERSION,LOCKFLAG from HIS_KSRKC_PC where JGID=? and DPTID=? and SFX_BM=? and KSKC_PC_PKEY=? and RQVERSION=?
PKEY
JGID
SFX_BM
DPTID
KSKC_PC_PKEY
KSSL
JSSL
RQVERSION
//PKEY,JGID,SFX_BM,DPTID,KSKC_PC_PKEY,KSSL,JSSL,RQ,RQVERSION
12
12
12
12
12
select JGID,DJH,DPTID,LZ,ZDRQ,ZDR,SHRQ,SHR,WCZT,SHZT,JE,SJJE,BZ,LOCKFLAG from HIS_YFYK_CGJH where JGID=?
12
select a.PKEY,a.JGID,a.DJH,a.XH,a.SFX_BM,a.SL,a.DW,a.DJ,a.SJ,a.JE,a.SJJE,a.GYS,b.MC,c.CSXX,b.DWVIEW,a.LOCKFLAG
from HIS_YFYK_CGJH_MX a
left join HIS_SFX b on a.JGID=b.JGID and a.SFX_BM=b.BM
left join HIS_YPXX c on c.BM=b.BM
where a.JGID=? and a.DJH=? order by a.XH
12
12
select PKEY,CJR,CJRQ,XGR,XGRQ,JGID,DJH,DPTID,LZ,SHZT,WCZT,SHR,SHRQ,TZYY,JE,SJJE,BZ,LOCKFLAG,sysdate 打印日期,'' 大写总金额 from HIS_YFYK_KCTZ where JGID=? and DJH=?
12
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.CSXX,c.GG,
e.PH,a.YXQ,e.SL PCSL,e.KYSL,e.DJ PCDJ,e.JBDJ PCJBDJ,e.SJ PCSJ,e.JBSJ PCJBSJ,a.LOCKFLAG,a.SCRQ,a.TZPH
from HIS_YFYK_KCTZ_MX a
left join HIS_SFX b on a.JGID=b.JGID and a.SFX_BM=b.BM
left join HIS_YPXX c on c.BM=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
select PKEY,CJR,CJRQ,XGR,XGRQ,JGID,DJH,DPTID,LZ,SHZT,WCZT,SHR,SHRQ,TZYY,JE,SJJE,BZ from HIS_YFYK_KCTZ where JGID=? and CJRQ between ? and ?
//PKEY,CJR,CJRQ,XGR,XGRQ,JGID,DJH,DPTID,SHZT,WCZT,SHR,SHRQ,TZYY,BZ
12
93
93
select b.KYSL,c.JBDW,c.ZHXS,c.RKDW
from HIS_KSKC_PC b
left join HIS_KSKC a 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
where b.JGID=? and b.PKEY=?
12
12
select PKEY,CJR,CJRQ,XGR,XGRQ,JGID,DJH,DPTID,LZ,SHZT,WCZT,SHR,SHRQ,TZYY,JE,SJJE,BZ,LOCKFLAG,sysdate 打印日期,'' 大写总金额 from HIS_YFYK_KCSH where JGID=? and DJH=?
12
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.CSXX,c.GG,
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
from HIS_YFYK_KCSH_MX a
left join HIS_SFX b on a.JGID=b.JGID and a.SFX_BM=b.BM
left join HIS_YPXX c on c.BM=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
select PKEY,CJR,CJRQ,XGR,XGRQ,JGID,DJH,DPTID,LZ,SHZT,WCZT,SHR,SHRQ,TZYY,JE,SJJE,BZ from HIS_YFYK_KCSH where JGID=? and CJRQ between ? and ?
//PKEY,CJR,CJRQ,XGR,XGRQ,JGID,DJH,DPTID,SHZT,WCZT,SHR,SHRQ,TZYY,BZ
12
93
93
select PKEY,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG,DJH,DPTID,WCZT,SPZT,SHZT,TZDJH,QSHW,JSHW,LZ,KCFL,BHBKY,JBKY,FLKC,sysdate 打印日期,'' 大写总金额 from HIS_YFYK_PD where JGID=? and DJH=?
12
12
select a.PKEY,a.CJR,a.CJRQ,a.XGR,a.XGRQ,a.JGID,a.LOCKFLAG,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,b.MC,b.JBDW,b.RKDW,b.JBJG,b.JG,b.ZHXS,c.CSXX,c.GG,
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_YFYK_PD_MX a
left join HIS_SFX b on a.JGID=b.JGID and a.SFX_BM=b.BM
left join HIS_YPXX c on c.BM=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=?
12
12
select PKEY,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG,DJH,DPTID,WCZT,SPZT,SHZT,TZDJH,QSHW,JSHW,LZ,KCFL,BHBKY,JBKY,FLKC from HIS_YFYK_PD where JGID=? and DPTID=? and CJRQ between ? and ? and (WCZT like ? or SPZT like ? or SHZT like ?)
12
12
93
93
12
12
12
select PKEY,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG,DJH,DPTID,WCZT,SPZT,SHZT,TZDJH,QSHW,JSHW,LZ,KCFL,BHBKY,JBKY,FLKC from HIS_YFYK_PD where JGID=? and DPTID=? and CJRQ between ? and ? and SPZT='1'
12
12
93
93
12
12
12
12
12
select PKEY,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG,SFX_BM,DJH,TJDJH,KSKC_PC_PKEY,SL,JBSL,DW,JE,BZ from HIS_YFYK_TJB_SY where 1=2
select JGID,SFX_BM,DJH,TJRQ,JHSXRQ,SXRQ,TJR,TJDW,TQSJ,THSJ,CJ,QTTQSJ,QTTHSJ,QTCJ,TJYY,ZT,BZ from HIS_YFYK_TJB where JGID=? and DJH=? and SFX_BM=?
12
12
12
0
]]>
12
12
0]]>
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.JGID,a.KSKC_PKEY,a.PH,a.YXQ,a.SL,a.KYSL,a.DJSL,a.LOCKFLAG from HIS_KSKC_PC a where a.JGID=? and a.PKEY=?
12
12
select PKEY,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG,DPTID,SFX_BM,KSKC_PC_PKEY,DJH,DW,SL,LX,ZT
from HIS_KCDJMX where JGID=? and DPTID=? and SFX_BM=? and KSKC_PC_PKEY=? and DJH like ? and ZT=?
12
12
12
12
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.CSXX,y.GG,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_YPXX y on c.BM=y.BM
where a.JGID=? AND c.GLLX='Y' and a.DPTID=? #select#
12
12
select JGID,DJH,SQKS,JSKS,LZ,ZDRQ,ZDR,WCZT,JE,SJJE,SHZT,SHR,SHRQ,BZ,LOCKFLAG,sysdate 打印日期,'' 大写总金额 from HIS_YFYK_DBSQ where JGID=? and DJH=?
12
12
select a.PKEY,a.JGID,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,b.MC,b.JBDW,b.ZHXS,b.RKDW,b.JG,b.JBJG,c.CSXX,b.DWVIEW
,e.DJ PCDJ,e.JBDJ PCJBDJ,e.SJ PCSJ,e.JBSJ PCJBSJ,a.LOCKFLAG
from HIS_YFYK_DBSQ_MX a
left join HIS_SFX b on a.JGID=b.JGID and a.SFX_BM=b.BM
left join HIS_YPXX c on c.BM=b.BM
left join HIS_YFYK_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=?
12
12
select JGID,DJH,DPTID,LZ,ZDRQ,ZDR,SHRQ,SHR,WCZT,SHZT,JE,SJJE,BZ from HIS_YFYK_CGJH a
where JGID=? and ZDRQ between ? and ?
and exists (select 1 from HIS_YFYK_CGJH_MX b where a.JGID=b.JGID and a.DJH=b.DJH and b.GYS like ? and b.SFX_BM like ?)
12
93
93
12
12
select JGID,DJH,DPTID,LZ,ZDRQ,ZDR,SHRQ,SHR,WCZT,SHZT,JE,SJJE,BZ,sysdate 打印日期,'' 大写总金额 from HIS_YFYK_CGJH where JGID=? and DJH=?
12
12
select PKEY,JGID,DPTID,CGDH,DDH,LOCKFLAG from HIS_YFYK_CGJH_DD where JGID=? and DPTID=? and CGDH=?
12
12
12
12
93
93
12
12
12
12
12
12
12
select JG,JBJG from HIS_SFX
where JGID=? and BM=?
12
12
select PKEY,SFX_BM,LASTJJ,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG from HIS_YFYK_YPJJ where JGID=? and SFX_BM=?
12
12
0
and t.YZSHZT = '1'
and t.JGID = ?
and t.YZXPKEY = ?
]]>
12
12
select a.DJH,a.SL,a.DW,b.SHZT from HIS_YFYK_DBD_MX a left join HIS_YFYK_DBD b on a.DJH=b.DJH and a.JGID=b.JGID where b.JGID=? and b.RKZT=0 and a.sfx_bm=?
12
12
select a.DJH,a.SPS,a.DW,a.SYS,a.ZPS from HIS_YFYK_PD_MX a left join HIS_YFYK_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_YFYK_THD_MX a left join HIS_YFYK_THD b on a.DJH=b.DJH and a.JGID=b.JGID left join HIS_YFYK_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
select a.JGID,a.SFX_BM,a.DJH,a.TJRQ,a.JHSXRQ,a.SXRQ,a.TJR,a.TJDW,a.TQSJ,a.THSJ,a.CJ,a.QTTQSJ,a.QTTHSJ,a.QTCJ,a.TJYY,a.ZT,a.BZ,b.MC,b.JBDW,b.ZHXS,b.RKDW,b.DWVIEW,to_char(a.TJRQ,'yyyy-mm-dd') pdrq,b.KCFL
from HIS_YFYK_TJB a
left join HIS_SFX b on a.JGID=b.JGID and a.SFX_BM=b.BM
where a.JGID=? and a.TJRQ between ? and ?
12
93
93
select DJH from HIS_YFYK_TJB where JGID =? and SFX_BM=? and SXRQ between ? and ?
12
12
93
93
select DJH from HIS_YFYK_TJB where JGID =? and SFX_BM=? and (ZT='1' or ZT='2')
12
12
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.CSXX,y.GG,a.LOCKFLAG,b.ybbm,b.ybmc,dbd.SQKS,dbd.JSKS,dbd.ZYLX,dbd.CKRQ,y.ZCZH, rkd.gys
from HIS_YFYK_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_YPXX y on b.BM=y.BM
left join HIS_YFYK_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_YFYK_RKD_MX rkdmx on log.FIRST_KSKC_PC_PKEY = rkdmx.KSKC_PC_PKEY and rkdmx.JGID=log.JGID
left join HIS_YFYK_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
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.CSXX,c.GG,
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_YFYK_KCTZ_MX a
left join HIS_SFX b on a.JGID=b.JGID and a.SFX_BM=b.BM
left join HIS_YPXX c on c.BM=b.BM
left join HIS_KSKC_PC e on a.JGID=e.JGID and e.PKEY=a.KSKC_PC_PKEY
left join HIS_YFYK_KCTZ kctz on a.djh=kctz.djh and a.JGID=kctz.JGID
where a.JGID=? order by a.djh,a.XH
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.CSXX,c.GG,
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_YFYK_KCSH_MX a
left join HIS_SFX b on a.JGID=b.JGID and a.SFX_BM=b.BM
left join HIS_YPXX c on c.BM=b.BM
left join HIS_KSKC_PC e on a.JGID=e.JGID and e.PKEY=a.KSKC_PC_PKEY
left join HIS_YFYK_KCSH kcsh on a.djh=kcsh.djh and a.JGID=kcsh.JGID
where a.JGID=? order by a.djh,a.XH
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.CSXX,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_YFYK_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_YPXX c on c.BM=b.BM
left join HIS_KSKC_PC e on r.JGID=e.JGID and e.PKEY=r.KSKC_PC_PKEY
left join HIS_YFYK_THD thd on a.djh=thd.djh and a.JGID=thd.JGID
where a.JGID=? order by a.djh,a.XH
12
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_YPXX c on c.BM=b.BM
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='Y' #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
select a.PKEY,a.JGID,a.DPTID,a.SFX_BM,a.KSKC_PC_PKEY,a.CZRQ,a.CZR,a.DJH,a.LX,a.SL,a.DW,a.DJ,a.JE,a.JYSL,a.LOCKFLAG,a.JBDW,a.JBSL,a.JBJYSL,b.JBDW sfxjbdw,b.RKDW sfxrkdw,b.ZHXS,b.GLLX from HIS_KSKCJL a left join HIS_SFX b on a.SFX_BM=b.BM and a.JGID=b.JGID where a.JGID=?
12
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_YPXX c on c.BM=b.BM
where a.JGID=? and b.GLLX='Y' #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.GG,d.CSXX,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_YPXX d on c.bm=d.bm where a.JGID=? and c.GLLX='Y' #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_YPXX c on c.BM=b.BM
where a.JGID=? and b.GLLX='Y' #select# order by a.SFX_BM,a.DPTID
]]>
93
93
12
= ? and b.RKSHRQ <=? order by b.RKSHRQ,a.SFX_BM
]]>
12
12
12
93
93
select ZDZB_BH,BH,MC,PYM,WBM,VALUE1,VALUE2,XH,ZT from MAIN_ZDB where ZDZB_BH='100157' and zt=1 order by XH asc,BH asc
select ZDZB_BH,BH,MC,PYM,WBM,VALUE1,VALUE2,XH,ZT from MAIN_ZDB where ZDZB_BH='100158' and zt=1 order by XH asc,BH asc
select a.YZX_BM,sum(a.SL*b.JG) JE from HIS_YZX_SFX a
left join HIS_SFX b on a.JGID=b.JGID and a.SFX_BM=b.BM
where a.JGID=? and a.YZX_BM=?
group by a.YZX_BM
12
12
select a.YZX_BM from HIS_YZX_SFX a where a.JGID=? and a.SFX_BM=?
12
12
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_YPXX c on c.BM=b.BM
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='Y' #select# order by a.SFX_BM,a.DPTID
]]>
93
93
93
93
93
93
93
93
12
12
12
12
12
12
12
93
? order by RQ ) where rownum=1
]]>
12
12
12
12
93
select distinct a.BM,a.MC,a.TYM,a.GG,a.JBDW,a.DXSL,a.DXDW,a.CSXX,a.ZH,a.ZCZH,a.YPBWM,a.GZFL,a.GWJB,a.WHODDD,a.WHODDDDW,a.DDD,a.WHONET,a.OTC,a.GJZLYM,a.YWGJFZLYM,a.ISKJY,a.ISGJJBYW,a.ISPS,a.ISJK,a.ZT,a.JX,b.BM tybm,b.YPCF_BM,b.MC tymc,b.JX tyjx,c.YZDL,c.YZZL,f.JG,f.RKDW,f.KCFL,c.JGID,g.YXFL_BM,f.YBBM,f.YBMC,f.YBPKEY,a.YPBIEMING,f.JBJG,f.ZHXS from HIS_YPXX a left join HIS_TYMC b on a.TYM=b.BM inner join HIS_YZX c on a.BM=c.BM left join HIS_SFX f on a.BM=f.BM left join HIS_TYMC tym on a.TYM=tym.BM left join HIS_YP_YXFL g on tym.YPCF_BM=g.YPCF_BM WHERE c.JGID=? and f.JGID=? #select# order by a.bm
12
12