select PKEY,NAME,ISAUTO,JGSJ,SJLX,ISCYCLE,KSSJ,JSSJ,ISRANGE,CLASSNAME,CJR,CJRQ,XGR,JGID,XGRQ,LOCKFLAG from HIS_AUTOTASK_SETUP where JGID=? order by CJRQ PKEYJGID

12

select PKEY,NAME,ISAUTO,JGSJ,SJLX,ISCYCLE,KSSJ,JSSJ,ISRANGE,CLASSNAME,CJR,CJRQ,XGR,JGID,XGRQ,LOCKFLAG from HIS_AUTOTASK_SETUP order by CJRQ PKEYJGID
select distinct a.pkey basejzpkey,a.HZPKEY,a.ZYNUM,a.JJKS,a.WARD,a.zyno,a.BED,a.HZZYZT,c.pkey,c.JZPKEY,c.LASTRQ,c.JGID,c.LOCKFLAG,a.JJRQ from HIS_JZ_BASEINFO a left join HIS_ZY_AUTO_CWJS_LOCK c on a.pkey=c.jzpkey and a.JGID=c.JGID where a.JGID=? and a.JZLX='Z' and a.JZZT='Z' HZPKEY
PKEYJZPKEYJGID

12

PKEYJGID

12

93

93

PKEYJGID

12

93

93

select a.PKEY,a.HZPKEY,a.GHPKEY,a.JZLX,a.JZZT,a.JZZB,a.HZFB,a.JZJS,a.ISYB,a.ISZZ,a.YYLX,a.ISLG,a.ISGSSJJ,a.HZYBLX,a.JJKS,a.JJRQ,a.JJYS,a.FBRQ,a.ZYNUM,a.WARD,a.ROOM,a.BED,a.KZRQ,a.JSRQ,a.THRY,a.HDYY,a.HDRQ,a.MZNUM,a.CJR,a.CJRQ,a.JGID,a.JZNO,a.MZNO,a.ZYNO,a.JZKH,a.CARDPKEY,a.JZNL,a.ISJZ,a.ZYLX,a.ZYHZLY,a.ZYYYRQ,a.CYRQ,a.CYYS,a.ZYNOOLD,a.SCZYRQ,a.ISGL,a.ISSJ,b.HZLX,a.GRLX,a.QTGRLX,a.CWFJLX,a.YSLX,a.MQJZINFO,a.ZKRQ,a.RYTJ,a.RYBQ,a.RYJZINFO,a.RYYS,a.RYQK,a.JZZL,a.JYYJ,a.ZYBZ,a.RYZD,a.RYZDMS,a.ZYBAH,a.RYNL,a.RYXSENLD,a.RYXSENLH,a.RYXSENLS,a.ZYZH,a.JZKLX,a.CRFS,a.OTHERCRFS,a.MAINBLYS,a.MAINBLXS,a.MOTHERJZPKEY,a.ZKDATE,a.RQDATE,b.XM,b.XB,b.CSRQ,b.SFZH,b.ZJLX,b.ZJHM,b.TEL,b.EMAIL,b.PIC,b.SIGNPIC,b.ZT,b.MZ,b.NL,b.HYZK,b.YBKH,b.ZY,b.GZDW,b.PHONE,b.BGDH,b.ZGGH,b.HZMJ,b.HZJB,b.LXRGX,b.LXR,b.LXRDH,b.LXRZJLX,b.LXRZJHM,b.GJ,b.XZDZ,b.XZDZJGH,b.JGDZ,b.JGDZJGH,b.CSDZ,b.CSDZJGH,b.YBLX,a.ZYBQ,a.ISZYHLTX from HIS_JZ_BASEINFO a left join HIS_HZINFO b on a.hzpkey=b.pkey and a.JGID=b.JGID where a.JGID=? and a.JZLX='Z' and a.JZZT='Z' and a.ISZYHLTX='0' PKEYHZPKEYJGIDISZYHLTX

12

=? and b.SHRQ <= ? order by b.SHRQ desc,a.SFX_BM ]]>

12

93

93

select JGID,BM,MC,JBDW,FYDL,FYZL,HSZFL,KJZFL,MZZFL,ZYZFL,BASYFL,KCFL,RKDW,ZHXS,MZFYDW,ZYFYDW,JG,JBJG,SFYJ,SFXMSM,BZ,ZT,YBPKEY,GLLX from HIS_SFX where JGID=? and GLLX='Y' JGIDBM

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.zt='2' JGIDSFX_BMDJH

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,b.SFX_BM,c.JBDW,c.RKDW,c.ZHXS,c.DWVIEW 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 where a.JGID=? and a.sl > 0 order by a.YXQ,a.ph PKEYJGIDKSKC_PKEYSLKYSLDJSL

12

select JGID,BM,MC,JBDW,FYDL,FYZL,HSZFL,KJZFL,MZZFL,ZYZFL,BASYFL,KCFL,RKDW,ZHXS,MZFYDW,ZYFYDW,JG,JBJG,SFYJ,SFXMSM,BZ,ZT,YBPKEY,GLLX from HIS_SFX where JGID=? and GLLX='W' JGIDBM

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_MMS_KC_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' JGIDSFX_BMDJH

12

select to_char(YZXZSJ,'yyyy-mm-dd')||yzxpkey xzsjpkey,to_char(YZXZSJ,'yyyy-mm-dd') xzsj,yzxpkey from his_yz_mxb where JGID=? and hzpkey=? and jzpkey=? and YZCL='2' and yzzt !='5'

12

12

12