select JGMC,PKEY,JKPTJGBM from MAIN_YLJG where JKPTJGBM is not null select BM,MC,MS,PX,SFYX,ZJM,PRINTNAME,MRDS,JGID,YBBM,YBMC,JKPTBM,JKPTMC from HIS_YZ_YPYF where JGID=? order by px,bm BMJGID

12

select BM,MC,CS,PX,ZJM,SFYX,PRINTNAME,JGID,PCJZTS,JKPTBM,JKPTMC from HIS_YZ_PC where JGID=? order by PX BMMCJGID

12

select ZDZB_BH,BH,MC,PYM,WBM,VALUE1,VALUE2,XH,ZT from MAIN_ZDB where ZDZB_BH='000014' order by XH asc,BH asc ZDZB_BHBH
select p.PKEY scpkey,a.BM XMDM,'0' PTZXDM,a.MC XMMC,(case a.GLLX when 'Y' then y.GG when 'W' then w.WZGG else '' end ) XMGG,z.MC XMFL,dw.MC XMDW,a.JBJG XMDJ,'' ZGXJ,'1' JLZT,'' XMWSDM,z.VALUE3 SFXMLB,'0' YNZJBZ,'0' ZRCLBZ,'0' GHCBZ from HIS_SFX a left join JKPTSC p on a.JGID=p.JGID and p.PTBM='JC_SFXMML' and p.col1=a.BM left join HIS_YPXX y on a.BM=y.BM and a.GLLX='Y' left join HIS_MMS_WZZD w on a.BM=w.WZBM and a.GLLX='W' left join MAIN_JGZDB z on z.JGID=a.JGID and z.JGZDLB_BH='Z00004' and a.FYZL=z.BH left join MAIN_ZDB dw on dw.zdzb_bh='000014' and a.JBDW=dw.BH where a.zt='1' and nvl(p.ptsczt,'0')='0' and a.JGID=?

12

select p.PKEY scpkey,a.BM XMDM,'0' PTZXDM,a.MC XMMC,'' XMGG,dw.MC XMDW,a.JBJG XMDJ,'' ZGXJ,'1' JLZT from HIS_SFX a left join JKPTSC p on a.JGID=p.JGID and p.PTBM='JC_ZLXMML' and p.col1=a.BM left join MAIN_JGZDB z on z.JGID=a.JGID and z.JGZDLB_BH='Z00004' and a.FYZL=z.BH left join MAIN_ZDB dw on dw.zdzb_bh='000014' and a.JBDW=dw.BH where a.zt='1' and nvl(p.ptsczt,'0')='0' and a.JGID=? and z.VALUE3 in ('02','03','04','06','07','08','09','10','11','18','19','21','22','23','24')

12

select p.PKEY scpkey,a.WZBM CLDM,'0' PTZXDM,a.WZMC CLMC,a.CLFL CLFLDM,dw.MC CLDW,nvl(a.ISGZ,'0') GZHCBZ,'0' YZBXBZ,nvl(a.ISZR,'0') ZRWBZ,a.WZJJ JZJG,'' ZGXJ,'' GYSMC,'' GYSDM,'' SCPH,cs.MC SCCJMC,a.WZCD CD,'' SCRQ,''YXQ ,'1' JLZT from HIS_MMS_WZZD a left join JKPTSC p on a.JGID=p.JGID and p.PTBM='JC_CLML' and p.col1=a.WZBM left join MAIN_ZDB dw on dw.zdzb_bh='000014' and a.JBDW=dw.BH left join HIS_CSXX cs on a.WZCS=cs.BM where a.zt='1' and nvl(p.ptsczt,'0')='0' and a.CLFL is not null and a.JGID=?

12

select p.PKEY scpkey,a.YZX_BM LCXMDM,a.SFX_BM SFXMDM,'0' LCXMPTZXDM,'0' SFXMPTZXDM,a.SL DYXMSL,'0' JLZT from HIS_YZX_SFX a left join HIS_SFX b on a.JGID=b.JGID and a.SFX_BM=b.BM left join JKPTSC p on a.JGID=p.JGID and p.PTBM='JC_ZLSFXMDYB' and p.col1=a.YZX_BM and p.col2=a.SFX_BM where nvl(p.ptsczt,'0')='0' and a.JGID=?

12

select a.DISE_TYPE ZDLXDM,a.DISE_CODG YNZDDM,a.DISE_NAME YNZDMC,a.DISE_CODG PTZXDM,a.DISE_NAME PTZXMC,'1' JLZT from HIS_YB_JB a where a.DISE_TYPE='0' or a.DISE_TYPE='4' select a.DISE_CODG YNSSDM,a.DISE_NAME YNSSMC,a.DISE_CODG PTZXDM,a.DISE_NAME PTZXMC,'1' JLZT from HIS_YB_JB a where a.DISE_TYPE='6' select * from (select a.NATY,a.INSUTYPE,a.EMP_NAME from HIS_YB_DJ a left join HIS_JZ_BASEINFO j on a.JGID=j.JGID and a.KLS=j.PKEY where j.JGID=? and j.HZPKEY=? order by CZSJ desc) where rownum=1

12

12

12

93

select p.PKEY scpkey,a.USERID ZGBM,b.USERACCOUNT GH,b.NAME XM,b.SEX Xb,b.BIRTHDAY CSRQ,b.MZ MZDM,b.IDTYPE SFBSLBDM,b.IDENTITYID SFBSHM,d.DPTID SSKS,d.DPTNAME SSKSMC,y.VALUE3 SSZXKSDM,'90' RYLB,'0' Ghzt,'2' BZQK,'0' SJTRYBZ,'1' GZZT,'2' PXLB,'0' SFNRQKYSPX,d.DPTYBCODE from MAIN_JGYH a left join MAIN_YHXX b on a.EMPID=b.EMPID left join JKPTSC p on a.JGID=p.JGID and p.PTBM='JC_YHRYXXB' and p.col1=a.USERID left join MAIN_KS d on a.JGID=d.JGID and a.MRKS=d.DPTID left join HIS_YB_DMZDB y on y.LBBM='caty' and d.DPTYBCODE=y.BM where a.EFFICET='0' and nvl(p.ptsczt,'0')='0' and b.USERACCOUNT is not null and a.JGID=?

12

select p.PKEY scpkey,a.JGID,a.PKEY,a.SBH YQBH,a.YQMC from LIS_YQSBDJ a left join JKPTSC p on a.JGID=p.JGID and p.PTBM='JC_YQSBB' and p.col1=a.SBH where nvl(p.ptsczt,'0')='0' and a.JGID=?

12

select p.PKEY scpkey,a.DPTID KSDM,a.DPTNAME KSMC,y.VALUE3 WSJDM,y.VALUE3 SBJDM,'1' mzlx,'0' Ghzt,'0' ZYKSBZ from MAIN_KS a left join JKPTSC p on a.JGID=p.JGID and p.PTBM='JC_KSXXB' and p.col1=a.DPTID left join HIS_YB_DMZDB y on y.LBBM='caty' and a.DPTYBCODE=y.BM where a.DPTFLAG='1' and nvl(p.ptsczt,'0')='0' and a.JGID=?

12

select a.JGID,a.YBID,b.USERACCOUNT,b.NAME from MAIN_JGYH a left join MAIN_YHXX b on a.EMPID=b.EMPID where a.EFFICET='0' and a.JGID=?

12

select a.JGID,a.DPTID,a.DPTNAME,ISJZ from MAIN_KS a where a.JGID=?

12

12

93

select PKEY,HZPKEY,JZPKEY,CARDPKEY,JBLX,JBBM,JBMC,JBZS,JZZT,FBSJ,JZSJ,ZYZX,SFZZD,XH,CJR,CJRQ,JGID,YBJBBM,YBJBMC,ZDYS,ZDLX,ZDJB,ZDKS,YBZHBM,YBZHMC,YBJBLX from HIS_JZ_MZZD where JGID=? and hzpkey=? and jzpkey=? order by sfzzd desc,xh PKEYJGIDHZPKEYJZPKEY

12

12

12

12

93

select 编号,名称,cHosCode,PYM from 项目单位表 where cHosCode like ? order by 编号 编号cHosCode

12

12

93

select a.PKEY YZLSH,a.CFH,a.YZLB,a.YZXPKEY YZXMDM,a.YZMC YZXMMC,a.YZXPKEY FUXMYYDM,s.YBBM FUXMWUDM,s.YBBM FWXMDM,s.YBMC FWXMMC,y.JX,y.GG,y.MC YPMC,'-' SCPH,to_date('2039-12-12','yyyy-mm-dd') YXQ,a.YZJL JL,a.YZJLDW JLDW,a.YZSL YWSYZSL,a.YZYF,a.YZPC,a.YZDJ XMDJ,a.YZJE XMJE,a.PS PSPB from HIS_YZ_MXB a left join HIS_SFX s on a.JGID=s.JGID and a.YZXPKEY=s.BM left join HIS_YPXX y on a.YZXPKEY=y.BM where a.JGID=? and a.HZPKEY=? and a.JZPKEY=?

12

12

12

select PKEY,JGID,PTBM,COL1,COL2,COL3,PTSCZT from JKPTSC where 1=2 PKEY
select nvl(b.VALUE4,'15') FYLB,sum(A.DET_ITEM_FEE_SUMAMT) fyzje from HIS_YB_SCMX A left join HIS_SFX f on a.JGID=f.JGID and a.MEDINS_LIST_CODG=f.BM left join MAIN_JGZDB b on b.JGZDLB_BH='Z00002' and b.JGID=f.JGID and f.FYZL=b.BH where a.ZT='0' and a.JGID=? and a.MDTRT_ID=? and a.setl_id=? group by nvl(b.VALUE4,'15')

12

12

12

12

93

12

93

select e.PKEY,b.ZDZBPKEY CFH,fy.VALUE4 MXFYLB,b.FYDL MXXMLB,e.MEDINS_LIST_CODG MXXMBM,e.MED_LIST_CODG MXXMYBBM,e.MEDINS_LIST_NAME MXXMMC,'-' MXXMGG,f.JBDW MXXMDW,e.PRIC MXXMDJ,e.CNT MXXMSL,e.DET_ITEM_FEE_SUMAMT MXXMJE,'-' SCPH,to_date('2039-12-12','yyyy-mm-dd') YXQ from HIS_YB_SCMX e left join HIS_SFZD_SFXMXB b on e.JGID=b.JGID and b.PKEY=e.feedetl_sn and e.SETL_ID=b.SETL_ID left join HIS_SFX f on e.JGID=f.JGID and e.MEDINS_LIST_CODG=f.BM left join MAIN_JGZDB fy on fy.JGZDLB_BH='Z00002' and fy.JGID=b.JGID and b.FYZL=fy.BH where e.ZT='0' and e.JGID=? and e.MDTRT_ID=? and e.SETL_ID=?

12

12

12

12

93

select mdtrt_id from HIS_YB_DJ where JGID=? and IPT_NO=? and KLS=? and DJCXZT='0' order by CZSJ desc

12

12

12

select ZHXM,ZHXMMC from LIS_JYXMSQ where JGID=? and TMH=?

12

12

12

93

12

93

select PKEY,MC from HIS_BQ where JGID=?

12

select DISE_CODG,DISE_NAME,DISE_TYPE from HIS_YB_JB select NATY,INSUTYPE,EMP_NAME from HIS_YB_DJ where JGID=? and JZLX=? and IPT_NO=? and DJCXZT='0'

12

12

12

12

93

12

93

12

93

12

93

12

93

12

93

select e.PKEY SFMXID,e.INIT_FEEDETL_SN TFID,fy.VALUE4 MXFYLB,b.FYDL MXXMLB,b.JFRQ STFSJ,e.MEDINS_LIST_CODG MXXMBM,e.MED_LIST_CODG MXXMYBBM,e.MEDINS_LIST_NAME MXXMMC,yz.YZLB YZXMLXDM,'-' MXXMGG,f.JBDW MXXMDW,e.PRIC MXXMDJ,e.CNT MXXMSL,e.DET_ITEM_FEE_SUMAMT MXXMJE,'-' SCPH,to_date('2039-12-12','yyyy-mm-dd') YXQ from HIS_YB_SCMX e left join HIS_SFZD_SFXMXB b on e.JGID=b.JGID and b.PKEY=e.feedetl_sn and e.SETL_ID=b.SETL_ID left join HIS_YZ_MXB yz on b.JGID=yz.JGID and b.YZMX=yz.pkey left join HIS_SFX f on e.JGID=f.JGID and e.MEDINS_LIST_CODG=f.BM left join MAIN_JGZDB fy on fy.JGZDLB_BH='Z00002' and fy.JGID=b.JGID and b.FYZL=fy.BH where e.ZT='0' and e.JGID=? and e.MDTRT_ID=? and e.SETL_ID=?

12

12

12

12

93

12

93

select a.BH YZLB,b.bh,b.mc from MAIN_JGZDB a left join MAIN_ZDB b on zdzb_bh='CV06.00.229' and a.VALUE1=b.bh where a.JGID=? and a.JGZDLB_BH='Z00001'

12

select a.BH JX,b.BH,b.MC from MAIN_ZDB a left join MAIN_ZDB b on b.zdzb_bh='DBJ440100/T3-2007' and a.VALUE1=b.bh where a.ZDZB_BH='100159'

12

93

12

93

select YLJGDM,PTBM,YWKSSJ,YWJSSJ,YCZSL,MXSJSCBZ,MJ,TBRQ,XGBZ,SCZT,SJBZ,TJBZ,SCZSL,JYZT,PCH from TJ_SJL_JLHZ where YLJGDM like ? and PTBM=? and PCH like ? YLJGDMPTBMPCH

12

12

12

12

93

12

93

12

93

12

93