=? AND C.GHSJ <= ? order by A.JZSJ desc,A.PDYXJ desc,A.PDHM ]]> GHZTGHPKEYJZPKEYHZPKEYJGID
PKEYJZPKEYPDZTHJZTPDYXJJGID

12

12

93

93

select PKEY,BM,MC,ZJM,BZ,SFBD,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG from HIS_GH_FZQ where JGID=? order by pkey PKEYJGID

12

select PKEY,FZQPKEY,ZSPKEY,BZ,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG from HIS_GH_FZQZSDY where JGID=? and FZQPKEY=? order by PKEY PKEYJGID

12

12

select '' VALUE,a.PKEY,a.FZQPKEY,a.ZSPKEY,a.BZ,a.CJR,a.CJRQ,a.XGR,a.XGRQ,a.JGID,a.LOCKFLAG,b.BM,b.MC,b.ZJM,b.ZSDZ from HIS_GH_FZQZSDY a left join HIS_GH_KSZS b on a.ZSPKEY=b.pkey and a.JGID=b.JGID where a.JGID=? and a.FZQPKEY=? order by a.PKEY PKEYJGID

12

12

select PKEY,FZQPKEY,CZYPKEY,BZ,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG from HIS_GH_FZQCZYDY where JGID=? and fzqpkey=? PKEYJGID

12

12

select a.PKEY,a.FZQPKEY,a.LBGLYSPKEY,a.SFBD,a.SFQY,a.CJR,a.CJRQ,a.XGR,a.XGRQ,a.JGID,a.LOCKFLAG,b.LBPKEY,b.KSPKEY,b.YSPKEY from HIS_GH_FZQLBYSDY a left join HIS_GH_LBGLYS b on a.LBGLYSPKEY=b.pkey and a.JGID=b.JGID where a.JGID=? and a.fzqpkey=? order by a.pkey PKEYJGID

12

12

select '' VALUE,a.PKEY,a.FZQPKEY,a.LBGLYSPKEY,a.SFBD,a.SFQY,a.CJR,a.CJRQ,a.XGR,a.XGRQ,a.JGID,a.LOCKFLAG,b.LBPKEY,b.KSPKEY,b.YSPKEY from HIS_GH_FZQLBYSDY a left join HIS_GH_LBGLYS b on a.LBGLYSPKEY=b.pkey and a.JGID=b.JGID where a.JGID=? and a.fzqpkey=? order by a.pkey PKEYJGID

12

12

select PKEY,ZSPKEY,PCBM,PCMC,PCIP,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG from HIS_GH_ZSPC where JGID=? order by pkey PKEYJGID

12

select PKEY,BM,MC,ZJM,ZSDZ,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG from HIS_GH_KSZS where JGID=? and pkey not in (select ZSPKEY from HIS_GH_FZQZSDY where JGID=?) order by pkey PKEYJGID

12

12

select a.PKEY,a.YSPKEY,a.LBPKEY,a.CJR,a.CJRQ,a.XGR,a.XGRQ,a.JGID,b.NAME,a.KSPKEY,a.ISMR from HIS_GH_LBGLYS a left join MAIN_YHXX b on a.yspkey=b.USERACCOUNT where a.JGID=? and a.pkey not in (select LBGLYSPKEY from HIS_GH_FZQLBYSDY where JGID=?) order by a.KSPKEY,a.YSPKEY,a.LBPKEY desc PKEYYSPKEYJGID

12

12

select a.PKEY,a.FZQPKEY,a.CZYPKEY,a.BZ,a.CJR,a.CJRQ,a.XGR,a.XGRQ,a.JGID,a.LOCKFLAG,b.bm,b.MC from HIS_GH_FZQCZYDY a left join HIS_GH_FZQ b on a.FZQPKEY=b.pkey and a.JGID=b.JGID where a.JGID=? and a.CZYPKEY=? order by a.FZQPKEY PKEYJGID

12

12

select '' VALUE,PKEY,YSPKEY,LBPKEY,CJR,CJRQ,XGR,XGRQ,JGID,KSPKEY,ISMR,LOCKFLAG from HIS_GH_LBGLYS where JGID=? and KSPKEY=? and LBPKEY=? order by YSPKEY PKEYJGID

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.CZZT='1' and A.CZRQ=? and A.KSPKEY=? and A.YSPKEY=? and A.PBSD=? and A.GHZC=? PKEYJGIDLOCKFLAG

12

12

12

12

12

12

select '' VALUE,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' #select# order by A.KSPKEY,A.YSPKEY,A.PBSD PKEYJGIDLOCKFLAG

12

12

PKEYJZPKEYGHPKEYPDZTHJZTPDYXJJGID

12

12