select PKEY,BYYYLX,BM,MC,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG from HIS_CP_SETUP_BYZD where JGID=? order by pkey PKEYBYYYLXJGID

12

select PKEY,LJLX,BM,MC,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG from HIS_CP_SETUP_LJBZ where JGID=? order by pkey PKEYLJLXJGID

12

select PKEY,BM,MC,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG from HIS_CP_SETUP_LJLX where JGID=? order by pkey PKEYJGID

12

select PKEY,LJLX,LJBZ,BM,MC,BZFF,BZZL,CKFY,CKTS,ISYX,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG from HIS_CP_SETUP_LJZD where JGID=? order by pkey PKEYJGID

12

select PKEY,XMDL,BM,MC,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG from HIS_CP_SETUP_XMFL where JGID=? order by pkey PKEYXMDLJGID

12

select PKEY,BM,MC,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG from HIS_CP_SETUP_LJLX where JGID=? order by pkey PKEYJGID

12

select PKEY,LJLX,BM,MC,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG from HIS_CP_SETUP_LJBZ where JGID=? order by pkey PKEYLJLXJGID

12

select PKEY,LJPKEY,JBLX,ICD,ICDNAME,OPAICD,OPAICDNAME,SFZXYZDZH,SFOPAZDZH,SFQY,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG from HIS_CP_SETUP_LJZRXX where JGID=? and LJPKEY=? order by pkey PKEYLJPKEYJGID

12

12

select PKEY,LJLX,LJBZ,BM,MC,BZFF,BZZL,CKFY,CKTS,ISYX,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG from HIS_CP_SETUP_LJZD where JGID=? order by pkey PKEYJGID

12

select PKEY,LJLX,LJBZ,BM,MC,BZFF,BZZL,CKFY,CKTS,ISYX,BBH,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG from HIS_CP_SETUP_LJZD where JGID=? and pkey=? PKEYJGID

12

12

select PKEY,LJPKEY,LJVERSION,LJVERSIONSTATE,LVERSIONHELP,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG from HIS_CP_SETUP_LJVERSION where JGID=? and PKEY=? order by pkey PKEYJGID

12

12

select PKEY,LJPKEY,LJVERSIONPKEY,PMEMO,PNAME,PXH,PDAYS,SFGJ,SFOPADAY,SFFIRSTDAY,SFYX,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG from HIS_CP_SETUP_LJPHASE where JGID=? and LJVERSIONPKEY=? order by pxh PKEYLJPKEYLJVERSIONPKEYJGID

12

12

select PKEY,LJPKEY,LJVERSIONPKEY,LJPHASEPKEY,XMDL,XMFL,XMMS,XH,ZXTS,SFMUST,SFYX,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG from HIS_CP_SETUP_LJPHASE_ITEMS where JGID=? and LJPKEY=? and LJVERSIONPKEY=? and LJPHASEPKEY=? and XMDL='001' order by XH PKEYLJPKEYLJVERSIONPKEYLJPHASEPKEYXMDLJGID

12

12

12

12

select PKEY,LJPKEY,LJVERSIONPKEY,LJPHASEPKEY,XMDL,XMFL,XMMS,XH,ZXTS,SFMUST,SFYX,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG from HIS_CP_SETUP_LJPHASE_ITEMS where JGID=? and LJPKEY=? and LJVERSIONPKEY=? and LJPHASEPKEY=? and XMDL='002' order by XH PKEYLJPKEYLJVERSIONPKEYLJPHASEPKEYXMDLJGID

12

12

12

12

select PKEY,LJPKEY,LJVERSIONPKEY,LJPHASEPKEY,XMDL,XMFL,XMMS,XH,ZXTS,SFMUST,SFYX,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG from HIS_CP_SETUP_LJPHASE_ITEMS where JGID=? and LJPKEY=? and LJVERSIONPKEY=? and LJPHASEPKEY=? and XMDL='003' order by XH PKEYLJPKEYLJVERSIONPKEYLJPHASEPKEYXMDLJGID

12

12

12

12

select PKEY,LJPKEY,LJVERSIONPKEY,LJPHASEPKEY,LJITEMPKEY,YZCL,YZLB,YZZL,YZMC,YZXPKEY,YZJL,YZJLDW,YZPC,YZTS,YZYF,YZLC,YZTZH,YZTBM,SFSXYZ,SFZYZ,SFYX,YZBZ,YZSFZYZ,YZXH,TYMPKEY,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG from HIS_CP_SETUP_LJORDERS where JGID=? and LJPKEY=? and LJVERSIONPKEY=? and LJPHASEPKEY=? and LJITEMPKEY =? order by YZXH PKEYLJPKEYLJVERSIONPKEYLJPHASEPKEYLJITEMPKEYJGID

12

12

12

12

12

select PKEY,LJPKEY,LJVERSION,LJVERSIONSTATE,LVERSIONHELP,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG from HIS_CP_SETUP_LJVERSION where JGID=? order by pkey PKEYJGID

12

select PKEY,LJPKEY,LJVERSION,LJVERSIONSTATE,LVERSIONHELP,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG from HIS_CP_SETUP_LJVERSION where 1=2 PKEYJGID
select PKEY,XMDL,BM,MC,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG from HIS_CP_SETUP_XMFL where JGID=? and XMDL=? order by pkey PKEYXMDLJGID

12

12

select PKEY,XMDL,BM,MC,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG from HIS_CP_SETUP_XMFL where JGID=? and XMDL='001' order by pkey PKEYXMDLJGID

12

select PKEY,XMDL,BM,MC,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG from HIS_CP_SETUP_XMFL where JGID=? and XMDL='002' order by pkey PKEYXMDLJGID

12

select PKEY,XMDL,BM,MC,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG from HIS_CP_SETUP_XMFL where JGID=? and XMDL='003' order by pkey PKEYXMDLJGID

12

select PKEY,HZPKEY,JZPKEY,LJPKEY,LJVERSIONPKEY,SFRJ,RJRQ,NORJREASON,NORJMEMO,RJZD,SFSQ,SQLX,SQZT,RJKS,RJYS,SHR,SHRQ,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG from HIS_CP_INPATH where JGID=? and hzpkey=? and jzpkey=? order by pkey PKEYJGID

12

12

12

select a.PKEY,a.LJPKEY,a.LJVERSION,a.LJVERSIONSTATE,a.LVERSIONHELP,a.CJR,a.CJRQ,a.XGR,a.XGRQ,a.JGID,a.LOCKFLAG,b.MC,b.bm,b.ljlx,b.ljbz from HIS_CP_SETUP_LJVERSION a left join HIS_CP_SETUP_LJZD b on a.ljpkey=b.pkey and a.JGID=b.JGID where a.JGID=? and a.LJVERSIONSTATE=1 order by a.pkey PKEYJGID

12

select PKEY,LJPKEY,JBLX,ICD,ICDNAME,OPAICD,OPAICDNAME,SFZXYZDZH,SFOPAZDZH,SFQY,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG from HIS_CP_SETUP_LJZRXX where JGID = ? and SFQY=1 PKEYJGID

12

select PKEY,BYYYLX,BM,MC,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG from HIS_CP_SETUP_BYZD where JGID=? and BYYYLX='002' order by pkey PKEYBYYYLXJGID

12

select a.PKEY,a.HZPKEY,a.JZPKEY,a.LJPKEY,a.LJVERSIONPKEY,a.SFRJ,a.RJRQ,a.NORJREASON,a.NORJMEMO,a.RJZD,a.SFSQ,a.SQLX,a.SQZT,a.RJKS,a.RJYS,a.SHR,a.SHRQ,a.CJR,a.CJRQ,a.XGR,a.XGRQ,a.JGID,a.LOCKFLAG,c.ZYNO,c.ZYBAH,b.xm,b.xb,c.jznl from HIS_CP_INPATH a left join HIS_HZINFO b on a.hzpkey=b.pkey and a.JGID=b.JGID left join HIS_JZ_BASEINFO c on a.jzpkey=c.pkey and a.JGID=c.JGID where a.JGID=? and a.hzpkey=? and a.jzpkey=? and a.SFSQ=1 order by a.pkey PKEYJGID

12

12

12

select a.PKEY,a.HZPKEY,a.JZPKEY,a.LJPKEY,a.LJVERSIONPKEY,a.SFRJ,a.RJRQ,a.NORJREASON,a.NORJMEMO,a.RJZD,a.SFSQ,a.SQLX,a.SQZT,a.RJKS,a.RJYS,a.SHR,a.SHRQ,a.CJR,a.CJRQ,a.XGR,a.XGRQ,a.JGID,a.LOCKFLAG,c.ZYNO,c.ZYBAH,b.xm,b.xb,c.jznl,a.INPATHSTATE,a.OUTPATHTIME,a.OUTPATHMAN,a.COMPLETETIME,a.COMPLETEMAN,a.OUTPATHREASON,a.OUTPATHMEMO from HIS_CP_INPATH a left join HIS_HZINFO b on a.hzpkey=b.pkey and a.JGID=b.JGID left join HIS_JZ_BASEINFO c on a.jzpkey=c.pkey and a.JGID=c.JGID where a.JGID=? and a.hzpkey=? and a.jzpkey=? and a.SFRJ=1 and a.SFSQ=0 order by a.pkey PKEYJGID

12

12

12

select PKEY,HZPKEY,JZPKEY,LJPKEY,LJVERSIONPKEY,INPATHPKEY,LJPHASEPKEY,INPATHSTATE,INPATHTIME,INPATHMAN,OUTPATHTIME,OUTPATHMAN,MEMO,INPATHKS,INPATHWARD,PHASEDAYS,PAHSEBEGIN,PHASEEND,CONFIRMFLAG,CONFIRMMAN,CONFIRMTIME,DOCTORSIGN,DOCTORSIGNTIME,NURSESIGN,NURSESIGNTIME,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG from HIS_CP_INPATH_PHASE where JGID=? and hzpkey=? and jzpkey=? and INPATHPKEY=? order by pkey PKEYJGID

12

12

12

12

select PKEY,HZPKEY,JZPKEY,LJPKEY,LJVERSIONPKEY,INPATHPKEY,INPHASEPKEY,LJITEMTYPE,LJITEMPKEY,YZMX,SAVETIME,SAVEMAN,ACTIONTIME,ACTIONDOCTOR,CANCELTIME,CANCELMAN,SFCANCEL,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG from HIS_CP_INPATH_ITEMACTION where JGID=? and hzpkey=? and jzpkey=? and INPATHPKEY=? and INPHASEPKEY=? AND LJITEMTYPE=? and SFCANCEL='0' order by pkey PKEYJGIDINPHASEPKEY

12

12

12

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,a.YZXH,a.PSJG,a.ZCYGLCZLX,a.YZZFR,a.YZZFSJ,a.YZZFYY,a.PSJGSJ,a.PSJGR,a.ISDPBCL,a.HZSZKS,a.LOCKFLAG,a.YFBDZYZPKEY,a.BDYF,a.BDEXECPKEY,a.BDZC,a.YPGZLX,a.SFQYKSS,a.KSSSQDPKEY,a.SFXSYZ,a.GLLX,a.OPAPKEY,a.ANESPKEY,a.ISOPAORDER,a.ISANESORDER,a.SMORDERPKEY,a.LMT_USED_FLAG,a.XZSYFW,a.CHRGITM_LV,a.YBBM,a.YBMC from HIS_YZ_MXB a where a.JGID=? and a.HZPKEY=? and a.JZPKEY=? and a.YZXZKS=? and (a.YZLX='0' or a.YZLX='5') and a.YZZT !='5' and a.YZSHZT=1 order by a.yzxh PKEYJGID

12

12

12

12

select PKEY,HZPKEY,JZPKEY,LJPKEY,LJVERSIONPKEY,INPATHPKEY,INPHASEPKEY,YZMX,YZMC,BYNR,BYYY,BYBZ,SAVETIME,SAVEMAN,CONFIRMDOCTOR,CANCELFLAG,CANCELMAN,CANCELTIME,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG from HIS_CP_OUTPATH_ORDERS where JGID=? and hzpkey=? and jzpkey=? and INPATHPKEY=? and INPHASEPKEY=? and CANCELFLAG='0' order by pkey PKEYJGID

12

12

12

12

12

select PKEY,LJPKEY,LJVERSIONPKEY,LJPHASEPKEY,LJITEMPKEY,YZCL,YZLB,YZZL,YZMC,YZXPKEY,YZJL,YZJLDW,YZPC,YZTS,YZYF,YZLC,YZTZH,YZTBM,SFSXYZ,SFZYZ,SFYX,YZBZ,YZSFZYZ,YZXH,TYMPKEY,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG from HIS_CP_SETUP_LJORDERS where JGID=? and LJPKEY=? and LJVERSIONPKEY=? and LJPHASEPKEY=? and SFYX=1 order by YZXH PKEYLJPKEYLJVERSIONPKEYLJPHASEPKEYLJITEMPKEYJGID

12

12

12

12

select PKEY,HZPKEY,JZPKEY,LJPKEY,LJVERSIONPKEY,INPATHPKEY,INPHASEPKEY,LJITEMTYPE,LJITEMPKEY,BYNR,BYYY,BYBZ,SAVETIME,SAVEMAN,CONFIRMDOCTOR,CANCELFLAG,CANCELMAN,CANCELTIME,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG from HIS_CP_INPATH_VARIANCE where JGID=? and hzpkey=? and jzpkey=? and INPATHPKEY=? and INPHASEPKEY=? and CANCELFLAG='0' order by pkey PKEYJGID

12

12

12

12

12

select PKEY,BYYYLX,BM,MC,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG from HIS_CP_SETUP_BYZD where JGID=? and BYYYLX='001' order by pkey PKEYBYYYLXJGID

12

select PKEY,BYYYLX,BM,MC,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG from HIS_CP_SETUP_BYZD where JGID=? and BYYYLX='003' order by pkey PKEYBYYYLXJGID

12

select PKEY,LJPKEY,LJVERSIONPKEY,LJPHASEPKEY,LJITEMPKEY,YZCL,YZLB,YZZL,YZMC,YZXPKEY,YZJL,YZJLDW,YZPC,YZTS,YZYF,YZLC,YZTZH,YZTBM,SFSXYZ,SFZYZ,SFYX,YZBZ,YZSFZYZ,YZXH,TYMPKEY,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG from HIS_CP_SETUP_LJORDERS where JGID=? and LJPKEY=? and LJVERSIONPKEY=? and LJPHASEPKEY=? order by LJITEMPKEY,YZXH PKEYLJPKEYLJVERSIONPKEYLJPHASEPKEYLJITEMPKEYJGID

12

12

12

12