select 0 YGHS,A.PKEY,A.YSPKEY,A.KSPKEY,A.CZRQ,A.PBSD,A.CZKSSJ,A.CZJSSJ,A.GHZC,A.ZYZ,A.BZH,A.YYH,A.QSH,A.JH,A.JZZS,A.HYZTLB,A.CZZT,A.TZYY,A.TZPBKEY,A.TZPZR,A.PBBMPKEY,A.CJR,A.CJRQ,A.XGR,A.XGRQ,A.JGID,A.SHR,A.SHRQ,A.LOCKFLAG,B.ISJZ from HIS_GH_PBINFO A left join MAIN_KS B ON A.KSPKEY=B.DPTID AND A.JGID=B.JGID where A.JGID=? and A.CZRQ=? and A.CZZT='1' order by A.KSPKEY,A.YSPKEY,A.PBSD
12
12
select PKEY,JZPKEY,HZPKEY,GHNUM,FPHM,SFDYFP,GHLB,GHKS,GHSJ,GHRY,GHPBPKEY,JZJB,JZZS,JZSD,SFZZ,ZZKS,ZZYS,FPPKEY,YBZF,GRZF,GHYS,CJR,CJRQ,JGID,GHRQ from HIS_JZ_GHB where JGID=? and hzpkey=? and GHRQ=? order by PKEY
12
12
12
select PKEY,KH,KBM,PASSWORD,FKFS,KLX,ZJE,HFJE,SYJE,KZT,HZPKEY,KF,CJR,CJRQ,XGR,XGRQ,JGID,YJK from HIS_CARD_MANAGE where JGID=? and KH = ?
PKEY
KH
ZJE
HFJE
SYJE
KZT
HZPKEY
12
12
select DPTID,DPTCODE,DPTNAME,DPTRMARK,DPTADDR,DPTLAYER,DPTTYPE,DPTGPID,DPTSEX,DPTZJM,DPTBAGE,DPTEAGE,DPTTXMJC,DPTYBCODE,CJR,CJRQ,XGR,XGRQ,JGID,DPTFLAG,GHSYL from MAIN_KS where JGID=? and (DPTZJM like ? or DPTNAME like ? or DPTCODE like ? ) and DPTFLAG=1 order by GHSYL desc,DPTCODE
12
12
12
12
select distinct a.EMPID,b.USERACCOUNT,b.NAME,b.SEX,b.PYM from MAIN_JGYH a left join MAIN_YHXX b on a.EMPID=b.EMPID left join MAIN_YHGLKS c on a.EMPID=c.EMPID where a.JGID=? and nvl(b.USERACCOUNT,' ') !=' ' and (b.PYM like ? or b.USERACCOUNT like ? or b.NAME like ? ) and c.ksbm like ? and a.EFFICET='0'
12
12
12
12
12
select A.PKEY,A.YSPKEY,A.KSPKEY,A.CZRQ,A.PBSD,A.CZKSSJ,A.CZJSSJ,A.GHZC,A.ZYZ,A.BZH,A.YYH,A.QSH,A.JH,A.JZZS,A.HYZTLB,A.CZZT,A.TZYY,A.TZPBKEY,A.TZPZR,A.PBBMPKEY,A.CJR,A.CJRQ,A.XGR,A.XGRQ,A.JGID,A.SHR,A.SHRQ,A.LOCKFLAG,B.ISJZ from HIS_GH_PBINFO A left join MAIN_KS B ON A.KSPKEY=B.DPTID AND A.JGID=B.JGID where A.JGID=? and A.PKEY=? and A.CZZT='1'
12
12
select JGID,BM,MC,YZDL,YZZL,ISDDYZ,ISXSYZ,ISMZSY,ISJZSY,ISZYSY,DCZDJL,MTZDJL,ZDL,SZSYTS,YF,LC,PC,ISMZPSYY,ISZYPSYY,ISMZSJL,ISZYSJL,JE,BZ,ZT,YZDW,LOCKFLAG from HIS_YZX where JGID=? and BM in(#)
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.YZX_BM,B.SL,A.LOCKFLAG from HIS_SFX A left join HIS_YZX_SFX B on A.JGID=B.JGID AND A.BM=B.SFX_BM LEFT JOIN HIS_YZX C ON B.JGID=C.JGID AND B.YZX_BM=C.BM where A.JGID=? and C.BM in (#)
12
select PKEY,PBINFOPKEY,GHLX,SL,QSH,JSH,CJR,CJRQ,XGR,XGRQ,JGID,HYZTLB,LOCKFLAG from HIS_GH_PBINFOXE where JGID=? and PKEY=? order by GHLX
12
12
select PKEY,HZPKEY,GHPKEY,JZLX,JZZT,JZZB,HZFB,J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MXB where yzmx=a.yzmx and JGID=a.JGID) wzsfsl,c.JZZDPKEY,a.LOCKFLAG,b.YPFYSJMS from HIS_SFZD_YZMXB a left join HIS_YZ_MXB b on a.YZMX=b.pkey and a.JGID=b.JGID left join HIS_SFZD_ZB c on a.JGID=c.JGID and a.ZDZBPKEY=c.pkey where a.JGID=? and a.ZDZBPKEY=?
12
12
select a.PKEY,a.ZDZBPKEY,a.YZX,a.YZMX,a.SFX,a.SFXDJ,a.SFXSL,a.SFXZKL,a.SFXZFY,a.SFXZKFY,a.HZYBZF,a.HZZFZF,a.JFRQ,a.CJR,a.CJRQ,a.JGID,a.FYDL,a.FYZL,b.YZFJSM,a.LOCKFLAG,a.SFXSJZFY,a.SCZT,a.MDTRT_ID,a.SETL_ID,a.HCDJPKEY,b.cfh from HIS_SFZD_SFXMXB a left join HIS_YZ_MXB b on a.JGID=b.JGID and a.YZMX=b.pkey where a.JGID=? and a.ZDZBPKEY=?
12
12
select PKEY,JZPKEY,HZPKEY,GHNUM,FPHM,SFDYFP,GHLB,GHKS,GHSJ,GHRY,GHPBPKEY,JZZS,JZSD,SFZZ,ZZKS,ZZYS,SFZDPKEY,YBZF,GRZF,GHYS,CJR,CJRQ,JGID,GHRQ,YYPKEY,SFYY,MZJSPKEY,SFJH,CFH,CARDPKEY,JZKH,GHSFMS,THSJ,THRY,GHZT,JZSJ,JZRY,FZSJ,FZRY,SFJZ,SFFZ,EMSSDJBPKEY,LOCKFLAG,SFBD,SFXZLHFF from HIS_JZ_GHB where JGID=? and PKEY=?
GHZT
PKEY
JZPKEY
HZPKEY
JGID
12
12
? and CJRQ <=?]]>
GHZT
PKEY
JZPKEY
HZPKEY
JGID
12
12
12
select PKEY,JZPKEY,HZPKEY,GHPKEY,JZSJ,JZYS,PDZT,PDHM,GHLB,HJZT,PDYXJ,CJR,CJRQ,JGID,LOCKFLAG from HIS_JZ_GHQUEUE where JGID=? and JZPKEY=? and GHPKEY=?
PKEY
JZPKEY
HZPKEY
GHPKEY
PDZT
HJZT
PDYXJ
12
12
12
select D.JZZT,A.PKEY GHPKEY,D.JZNO,A.GHLB,A.GHKS,A.JZZS,B.PDZT,C.JSZT,D.JZKH,D.PKEY JZPKEY,C.HZZFE,A.GHPBPKEY,A.GHRQ,A.YYPKEY,D.MZNO,A.FPHM,A.GHRY,A.HZPKEY,A.GHYS,E.PKEY MZFPPKEY,A.SFXZLHFF from HIS_JZ_GHB A left join HIS_JZ_GHQUEUE B on A.JGID=B.JGID AND A.PKEY=B.GHPKEY LEFT JOIN HIS_SFZD_ZB C ON A.JGID=C.JGID AND A.SFZDPKEY=C.PKEY LEFT JOIN HIS_JZ_BASEINFO D ON A.JGID=D.JGID AND A.PKEY=D.GHPKEY left join HIS_MZJS_MZFPZB E on C.PKEY=E.GLZDBPKEY AND C.JGID=E.JGID WHERE A.JGID=? AND A.HZPKEY=? AND A.GHRQ=? AND D.JZZT='P' AND A.GHSFMS='1' ORDER BY A.CJRQ desc
12
12
12
select PKEY,HZPKEY,CARDPKEY,ZHPKEY,FPZBPKEY,CZRY,CZRQ,ZFJE,ZHYE,ZFKS,CJR,CJRQ,JGID,PJH,JZPKEY,FPZFFSPKEY,JKTYPE,ZFLX,LOCKFLAG from HIS_HZZH_KZFLS where 1=2
select PKEY,GLZDBPKEY,SJPKEY,CLOSEPKEY,JZZT,JZRQ,CHFPHM,CHPKEY,FPHM,HZPKEY,PJLX,SFRY,SFRQ,SFZT,FPLX,FPDRYY,YBLX,YBZFJE,SFJE,YBJSB,CHYY,JZPKEY,SFDZP,CJR,CJRQ,JGID,SFDYFP,SFJZDY,PJZT,TFHSF,SFKS,LOCKFLAG,JJZF,GRZH,YYBC,GRPAY,SYJE,YSSFJE,TCZF,DBBX,YLJZ,GWYBZ,QYBC from HIS_MZJS_MZFPZB where 1=2
select PKEY,MZFPPKEY,FYLBBM,FYLBMC,FYLBJE,CJR,CJRQ,JGID,LOCKFLAG from HIS_MZJS_MZFPSFLBB where 1=2
//PKEY,MZFPPKEY,F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LX,FPDRYY,YBLX,YBZFJE,SFJE,YBJSB,CHYY,JZPKEY,SFDZP,CJR,CJRQ,JGID,SFDYFP,SFJZDY,PJZT,TFHSF,SFKS,LOCKFLAG,JJZF,GRZH,YYBC,GRPAY,SYJE,YSSFJE,TCZF,DBBX,YLJZ,GWYBZ,QYBC from HIS_MZJS_MZFPZB where JGID=? and GLZDBPKEY=? and JZPKEY=? and HZPKEY=?
PKEY
GLZDBPKEY
JZPKEY
JGID
HZPKEY
TFHSF
JZZT
SFZT
12
12
12
12
select
t.PKEY
,t.MZFPPKEY
,t.ZFXH
,t.ZFLX
,t.ZFZPM
,t.ZFBANK
,t.PJZT
,t.JZPKEY
,t.CJR
,t.CJRQ
,t.JGID
,t.ZFJE
,t.LOCKFLAG
,t.PAY_ORD_PKEY
,(select p.TRANS_STATUS from PAY_ORD p where p.JGID = t.JGID and p.PKEY = t.PAY_ORD_PKEY) as TRANS_STATUS
from HIS_MZJS_MZFPZFFSB t
where t.JGID=?
and t.MZFPPKEY=?
and t.JZPKEY=?
PKEY
MZFPPKEY
JZPKEY
JGID
//PKEY,MZFPPKEY,ZFXH,ZFLX,ZFZPM,ZFBANK,PJZT,JZPKEY,CJR,CJRQ,JGID,ZFJE
12
12
12
select
p.PKEY
,p.TRANS_STATUS
from HIS_MZJS_MZFPZFFSB t
left join HIS_MZJS_MZFPZB fp on fp.JGID = t.JGID and fp.PKEY = t.MZFPPKEY
left join HIS_MZJS_MZFPZB fpt on fpt.JGID = fp.JGID and fpt.PKEY = fp.CHPKEY
right join HIS_MZJS_MZFPZFFSB tt on tt.JGID = fpt.JGID and tt.MZFPPKEY = fpt.PKEY and tt.ZFLX = '800'
left join PAY_ORD p on p.JGID = tt.JGID and p.PKEY = tt.PAY_ORD_PKEY
where t.JGID = ?
and t.MZFPPKEY = ?
and t.JZPKEY = ?
12
12
12
select PKEY,MZFPPKEY,FYLBBM,FYLBMC,FYLBJE,CJR,CJRQ,JGID,LOCKFLAG from HIS_MZJS_MZFPSFLBB where JGID=? and MZFPPKEY=? order by FYLBBM
//PKEY,MZFPPKEY,FYLBBM,FYLBMC,FYLBJE,CJR,CJRQ,JGID
12
12
select z.VALUE2 zyfb,sum(m.DET_ITEM_FEE_SUMAMT) zyje from HIS_YB_SCMX m
left join HIS_YB_JSB j on m.JGID=j.JGID and m.SETL_ID=j.SETL_ID and m.MDTRT_ID=j.MDTRT_ID and m.IPT_OTP_NO=j.IPT_NO
left join HIS_SFX s on s.JGID=m.JGID and m.MEDINS_LIST_CODG=s.BM
left join MAIN_JGZDB z on z.JGID=m.JGID and z.JGZDLB_BH='Z00005' and s.HSZFL=z.BH
where m.ZT='0' and j.CXZT='0' and m.JGID=? and j.ZDZBPKEY=?
group by z.VALUE2
12
12
select PKEY,HZPKEY,CARDPKEY,ZHPKEY,FPZBPKEY,CZRY,CZRQ,ZFJE,ZHYE,ZFKS,CJR,CJRQ,JGID,PJH,JZPKEY,FPZFFSPKEY,JKTYPE,ZFLX,LOCKFLAG from HIS_HZZH_KZFLS where JGID=? and FPZBPKEY=? and FPZFFSPKEY=?
PKEY
FPZBPKEY
JGID
FPZFFSPKEY
12
12
12
select PKEY,HZPKEY,CARDPKEY,ZHPKEY,FPZBPKEY,CZRY,CZRQ,ZFJE,ZHYE,ZFKS,CJR,CJRQ,JGID,PJH,JZPKEY,FPZFFSPKEY,JKTYPE,ZFLX,LOCKFLAG from HIS_HZZH_KZFLS where JGID=? and HZPKEY=? and JZPKEY=? and FPZBPKEY=? order by zflx
//PKEY,HZPKEY,CARDPKEY,ZHPKEY,FPZBPKEY,CZRY,CZRQ,ZFJE,ZHYE,ZFKS,CJR,CJRQ,JGID,PJH,JZPKEY,FPZFFSPKEY,JKTYPE,ZFLX
12
12
12
12
select A.PKEY GHPKEY,D.JZNO,A.GHLB,A.GHKS,A.JZZS,B.PDZT,C.JSZT,D.JZKH,D.PKEY JZPKEY,C.HZZFE,A.GHPBPKEY,A.GHRQ,A.YYPKEY,D.MZNO,A.FPHM,A.GHRY,A.HZPKEY,A.GHYS from HIS_JZ_GHB A left join HIS_JZ_GHQUEUE B on A.JGID=B.JGID AND A.PKEY=B.GHPKEY LEFT JOIN HIS_SFZD_ZB C ON A.JGID=C.JGID AND A.SFZDPKEY=C.PKEY LEFT JOIN HIS_JZ_BASEINFO D ON A.JGID=D.JGID AND A.PKEY=D.GHPKEY WHERE A.JGID=? AND A.HZPKEY=? AND A.PKEY=? AND A.GHSFMS='1'
12
12
12
select COUNT(*) num from HIS_GH_PBINFO where JGID=? and YSPKEY=? and KSPKEY=? and CZRQ=? and PBSD=?
12
12
12
12
12
select A.GHKS,A.JZZS,A.GHYS,D.JJKS,D.JJYS from HIS_JZ_GHB A left join HIS_JZ_GHQUEUE B on A.JGID=B.JGID AND A.PKEY=B.GHPKEY LEFT JOIN HIS_SFZD_ZB C ON A.JGID=C.JGID AND A.SFZDPKEY=C.PKEY LEFT JOIN HIS_JZ_BASEINFO D ON A.JGID=D.JGID AND A.PKEY=D.GHPKEY left join HIS_MZJS_MZFPZB E on C.PKEY=E.GLZDBPKEY AND C.JGID=E.JGID WHERE A.JGID=? AND A.HZPKEY=? AND A.GHRQ=? AND (D.JZZT='P' OR D.JZZT='J') ORDER BY A.CJRQ desc
12
12
12
select DPTID,DPTCODE,DPTNAME,DPTRMARK,DPTADDR,DPTLAYER,DPTTYPE,DPTGPID,DPTSEX,DPTZJM,DPTBAGE,DPTEAGE,DPTTXMJC,DPTYBCODE,CJR,CJRQ,XGR,XGRQ,JGID,DPTFLAG from MAIN_KS where JGID=? and ISMZ=1 and (DPTCODE like ? or DPTNAME like ? or DPTZJM like ?) and DPTFLAG=1 order by DPTCODE
12
12
12
12
? and a.SFRQ <=? order by a.SFRY,a.SFRQ
]]>
12
12
93
93
? and a.SFRQ <=? order by a.SFRY,a.SFRQ
]]>
12
12
93
93
select a.PKEY,a.ZDZBPKEY,a.YZX,a.YZMX,a.SFX,a.SFXDJ,a.SFXSL,a.SFXZKL,a.SFXZFY,a.SFXZKFY,a.HZYBZF,a.HZZFZF,a.JFRQ,a.CJR,a.CJRQ,a.JGID,a.FYDL,a.FYZL,b.YZFJSM,a.LOCKFLAG,a.SFXSJZFY,a.SCZT,a.MDTRT_ID,a.SETL_ID,a.HCDJPKEY,b.cfh from HIS_SFZD_SFXMXB a left join HIS_YZ_MXB b on a.JGID=b.JGID and a.YZMX=b.pkey where a.JGID=? and a.YZMX=?
12
12
12
select PKEY,HZPKEY,JZPKEY,ZDJFLX,JFYBLX,HZRYLX,HZINTIME,HZOUTTIME,KSSJ,JSSJ,JFZJE,JFZKE,JFZKLX,JFJZE,HZPAYSELF,HZZFE,HZZFEORIGN,JFLX,ISHC,HCDJPKEY,JSZT,CJR,CJRQ,JGID,SFZXTFHSF,TFHSFZDPKEY,JZZDPKEY,LOCKFLAG,ZTJS,ZTJSCFZZD from HIS_SFZD_ZB where JGID=? and ISHC=0 and TFHSFZDPKEY=? and JZPKEY=?
PKEY
HZPKEY
JZPKEY
JSZT
JGID
SFZXTFHSF
12
12
12
select distinct a.jjrq,a.jjks,a.jjys,a.fbrq,a.jzno,b.xm,b.xb,b.csrq,a.jznl,b.zy,b.xzdz,b.phone,a.JZZB,c.ZS,c.XBS,c.JWS,c.GMS,c.SSY,c.SZY,c.TW,c.MB,c.HX,c.XT,c.CLCS,c.FZJC,c.TGJC,b.LXR,b.LXRDH,b.sfzh,a.HZLX,d.JBBM,d.JBMC from HIS_JZ_BASEINFO a left join HIS_HZINFO b on a.hzpkey=b.pkey and a.JGID=b.JGID left join HIS_JZ_MZBL c on a.pkey=c.jzpkey and a.JGID=c.JGID left join HIS_JZ_MZZD d on a.pkey = d.jzpkey and a.JGID=d.JGID where a.JZLX='M' and a.JZZT='J' and d.SFZZD='1' AND a.JGID=? order by a.JJRQ
12
select PKEY,HZPKEY,GHPKEY,JZLX,JZZT,JZZB,HZFB,JZJS,ISYB,ISZZ,YYLX,ISLG,ISGSSJJ,HZYBLX,JJKS,JJRQ,JJYS,FBRQ,ZYNUM,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