select PKEY,KSPKEY,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG from HIS_TC_GLKS where JGID=?
12
select PKEY,BM,MC,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG from HIS_TC_FWZ where JGID=? order by CJRQ
12
select '' jh,a.JGID,a.BM,a.MC,a.YZDL,a.YZZL,a.ISDDYZ,a.ISXSYZ,a.ISMZSY,a.ISJZSY,a.ISZYSY,a.DCZDJL,a.MTZDJL,a.ZDL,a.SZSYTS,a.YF,a.LC,a.PC,a.ISMZPSYY,a.ISZYPSYY,a.ISMZSJL,a.ISZYSJL,a.JE,a.BZ,a.ZT,a.YZDW,a.ISDBWJFYC,a.ISAUTOSEND,a.ISSQD,a.GLLX,a.LOCKFLAG,a.LMT_USED_FLAG,a.XZSYFW,a.CHRGITM_LV,a.YBBM,a.YBMC,b.PKEY zlpkey from HIS_YZX a left join HIS_TC_ZLXM b on a.BM=b.yzxpkey and a.JGID=b.JGID where a.JGID=? and a.yzzl in (select YZZL from HIS_YZ_YZZLSZ where JGID=? and sztype ='020') order by a.bm
12
12
SELECT a.PKEY,a.YZXPKEY,a.ZLXJC,a.ZLFWZ,a.ISAUTOSEND,a.ZLZY,a.ZLSYZ,a.ZLJJ,a.CJR,a.CJRQ,a.XGR,a.XGRQ,a.JGID,a.LOCKFLAG,b.mc,b.yzzl,b.je,b.YZDW FROM HIS_TC_ZLXM a left join HIS_YZX b on a.yzxpkey=b.bm and a.JGID=b.JGID WHERE a.JGID=? AND a.YZXPKEY=?
12
12
select PKEY,YZXPKEY,ZLXMPKEY,FABT,FANR,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG from HIS_TC_ZLXM_FAMB where JGID=? and ZLXMPKEY=? order by CJRQ
12
12
select PKEY,BM,MC,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG from HIS_TC_FWZ where JGID=? order by CJRQ
12
select PKEY,BM,MC,KSSJ,JSSJ,JFJZTIME,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG from HIS_TC_FZ_SD where JGID=? order by CJRQ
12
select PKEY,YSPKEY,KSPKEY,FWZ,XQ,PBSD,ZYSL,KSSJ,JSSJ,JFJZTIME,QYBZ,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG from HIS_TC_FZ_PBMB where JGID = ? order by KSPKEY,YSPKEY
12
select a.DPTID,a.DPTCODE,a.DPTNAME,a.DPTRMARK,a.DPTADDR,a.DPTLAYER,a.DPTTYPE,a.DPTGPID,a.DPTSEX,a.DPTZJM,a.DPTBAGE,a.DPTEAGE,a.DPTTXMJC,a.DPTYBCODE,a.CJR,a.CJRQ,a.XGR,a.XGRQ,a.JGID,a.DPTFLAG from HIS_TC_GLKS b left join MAIN_KS a on a.DPTID=b.KSPKEY and a.JGID=b.JGID where a.JGID=? and a.DPTFLAG=1 order by a.DPTCODE
12
select PKEY,YSPKEY,KSPKEY,FWZ,XQ,PBSD,ZYSL,KSSJ,JSSJ,JFJZTIME,QYBZ,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG from HIS_TC_FZ_PBMB where JGID = ? and pkey=?
12
12
select PKEY,BM,MC,KSSJ,JSSJ,JFJZTIME,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG from HIS_TC_FZ_SD where JGID=? order by CJRQ
12
select PKEY,YSPKEY,KSPKEY,FWZ,ZLRQ,PBSD,ZLKSSJ,ZLJSSJ,JFJZRQ,ZYSL,CZZT,TZYY,TZPBKEY,TZPZR,PBBMPKEY,SHR,SHRQ,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG,KYZYSL from HIS_TC_FZ_PBINFO where JGID = ? and YSPKEY=? and KSPKEY = ? and PBSD = ? order by ZLRQ
12
12
12
12
select PKEY,YSPKEY,KSPKEY,FWZ,ZLRQ,PBSD,ZLKSSJ,ZLJSSJ,JFJZRQ,ZYSL,CZZT,TZYY,TZPBKEY,TZPZR,PBBMPKEY,SHR,SHRQ,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG,KYZYSL from HIS_TC_FZ_PBINFO where JGID=? and ZLRQ = ? order by KSPKEY,YSPKEY,PBSD
12
12
select PKEY,YSPKEY,KSPKEY,FWZ,ZLRQ,PBSD,ZLKSSJ,ZLJSSJ,JFJZRQ,ZYSL,CZZT,TZYY,TZPBKEY,TZPZR,PBBMPKEY,SHR,SHRQ,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG,KYZYSL from HIS_TC_FZ_PBINFO where JGID=? and PKEY = ?
12
12
select COUNT(*) num from HIS_TC_FZ_PBINFO where JGID=? and YSPKEY=? and KSPKEY=? and ZLRQ=? and PBSD=?
12
12
12
12
12
select PKEY,YZXPKEY,ZLXJC,ZLFWZ,ISAUTOSEND,ZLZY,ZLSYZ,ZLJJ,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG from HIS_TC_ZLXM where JGID=?
12
select PKEY,HZPKEY,JZPKEY,YZXPKEY,YZMX,ZLFL,ZLXM,ZLXMMC,SQDH,JSKS,ZLSL,DW,DJ,ZJE,YBBX,SQYS,SQTIME,SQKS,SQZT,ZLFAMB,ZLFA,ZLBZ,ZLBW,FWZ,SCFZJL,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG from HIS_TC_SQD where JGID=? and YZMX=?
12
12
select PKEY,KSPKEY,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG from HIS_TC_GLKS where JGID=?
12
select PKEY,YZXPKEY,ZLXMPKEY,FABT,FANR,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG from HIS_TC_ZLXM_FAMB where JGID=? and ZLXMPKEY=? order by CJRQ
12
12
SELECT DISTINCT a.PKEY,a.YZXPKEY,a.ZLXJC,a.ZLFWZ,a.ISAUTOSEND,a.ZLZY,a.ZLSYZ,a.ZLJJ,a.CJR,a.CJRQ,a.XGR,a.XGRQ,a.JGID,a.LOCKFLAG,b.mc,b.yzzl,b.je,b.YZDW FROM HIS_TC_ZLXM a left join HIS_YZX b on a.yzxpkey=b.bm and a.JGID=b.JGID left join HIS_YZX_ZJM c on b.BM=c.YZX_BM and b.JGID=c.JGID WHERE a.JGID=? AND b.yzzl like ? AND (c.PYM LIKE ? OR b.BM LIKE ? OR b.MC LIKE ?)
12
12
12
12
12
select distinct b.JZPKEY,b.HZPKEY,b.pkey,b.JZH,b.YZXZSJ,b.YZXPKEY,b.SQDTYPE,b.SQDPKEY,b.SQDJSPKEY,b.YZMC,c.JJRQ,c.JJKS,b.YZJE,b.yzsfzt,b.YZZT,c.jzlx,a.ZLFL,a.SQDH,a.SQZT from HIS_TC_SQD a left join HIS_YZ_MXB b on a.YZMX=b.pkey and a.JGID=b.JGID left join HIS_JZ_BASEINFO c on b.JZPKEY=c.pkey and b.JGID=c.JGID where a.JGID=? and b.HZPKEY=? and b.JZPKEY=? order by b.YZXZSJ desc
12
12
12
= ? and a.SQTIME <=? order by a.SQTIME desc
]]>
12
93
93
select a.PKEY,a.JZPKEY,a.HZPKEY,a.ZYNO,a.YZMX,a.YZXPKEY,a.ZXFLAG,a.ZXR,a.ZXTIME,a.ZXRKS,a.ZXRWARD,a.PRINTFLAG,a.PRINTMAN,a.PRINTTIME,a.BBCJFLAG,a.BBCJMAN,a.BBCJTIME,a.BBTM,a.QUERYCODE,a.SFFLAG,a.ZXSL,a.ZXDW,a.ZXJE,a.YZBEGINSJ,a.YZZXBEGINSJ,a.YZTZSJ,a.YZMS,a.JZBZ,a.ZDZBPKEY,a.CXR,a.CXSJ,a.TZR,a.TZSJ,a.CJR,a.CJRQ,a.XGR,a.XGRQ,a.JGID,a.CFH,a.YZMC,a.ISACTION,a.TYDNUM,a.YFBDZYZPKEY,a.BDYF,a.BDEXECPKEY,a.BDZC,a.CWJS,a.SFXSYZ,a.LOCKFLAG,a.LISCF,(select count(*) num from HIS_TC_SQD_FZQUEUE where JGID=a.JGID and EXEPKEY=a.pkey) fznum from HIS_YZ_EXEC a left join HIS_JZ_BASEINFO b on a.jzpkey=b.pkey and a.JGID=b.JGID where a.JGID=? and a.yzmx=? and ((b.JZLX='Z' and a.ZXFLAG='1') or b.jzlx !='Z') and a.ISACTION=0 order by a.ZXTIME
12
12
select PKEY,HZPKEY,JZPKEY,SQDPKEY,YZMX,EXEPKEY,FZPBINFOPKEY,ZLRQ,ZLSJ,ZLYS,ZLKS,PDZT,PDHM,HJZT,PDYXJ,PBSD,ZLKSSJ,ZLJSSJ,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG from HIS_TC_SQD_FZQUEUE where 1=2 order by CJRQ
select PKEY,YSPKEY,KSPKEY,FWZ,ZLRQ,PBSD,ZLKSSJ,ZLJSSJ,JFJZRQ,ZYSL,CZZT,TZYY,TZPBKEY,TZPZR,PBBMPKEY,SHR,SHRQ,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG,KYZYSL from HIS_TC_FZ_PBINFO where JGID=? and KSPKEY=? and FWZ=? and ZLRQ=? and CZZT='1' order by YSPKEY,PBSD
12
12
12
12
select a.PKEY,a.HZPKEY,a.JZPKEY,a.SQDPKEY,a.YZMX,a.EXEPKEY,a.FZPBINFOPKEY,a.ZLRQ,a.ZLSJ,a.ZLYS,a.ZLKS,a.PDZT,a.PDHM,a.HJZT,a.PDYXJ,a.PBSD,a.ZLKSSJ,a.ZLJSSJ,a.CJR,a.CJRQ,a.XGR,a.XGRQ,a.JGID,a.LOCKFLAG,b.jzno,c.xm,d.yzmc from HIS_TC_SQD_FZQUEUE a left join HIS_JZ_BASEINFO b on a.jzpkey=b.pkey and a.JGID=b.JGID left join HIS_HZINFO c on a.hzpkey=c.pkey and a.JGID=c.JGID left join HIS_YZ_MXB d on a.yzmx=d.pkey and a.JGID=d.JGID where a.JGID=? and a.SQDPKEY=? order by a.CJRQ
12
12
= ? and a.SQTIME <=? order by a.SQTIME desc) where fznum > 0
]]>
12
12
12
93
93
select PKEY,HZPKEY,JZPKEY,SQDPKEY,YZMX,EXEPKEY,FZPKEY,SFZJZX,ZLSJ,ZLYS,ZLKS,ZLBT,ZLJL,ZB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ID=c.JGID left join HIS_YZ_MXB d on a.yzmx=d.pkey and a.JGID=d.JGID where a.JGID=? and a.SQDPKEY=? order by a.CJRQ
12
12
select PKEY,HZPKEY,JZPKEY,SQDPKEY,YZMX,EXEPKEY,FZPKEY,SFZJZX,ZLSJ,ZLYS,ZLKS,ZLBT,ZLJL,ZBGZ,BLJL,ZYSX,ZLFS,ZLYQ,BWYS,JIAYA,JIANYA,ZLYL,YND,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG from HIS_TC_SQD_EXEC where JGID=? and PKEY=?
12
12
= ? and a.SQTIME <=? order by a.SQTIME desc
]]>
12
12
93
93
select a.PKEY,a.JZPKEY,a.HZPKEY,a.ZYNO,a.YZMX,a.YZXPKEY,a.ZXFLAG,a.ZXR,a.ZXTIME,a.ZXRKS,a.ZXRWARD,a.PRINTFLAG,a.PRINTMAN,a.PRINTTIME,a.BBCJFLAG,a.BBCJMAN,a.BBCJTIME,a.BBTM,a.QUERYCODE,a.SFFLAG,a.ZXSL,a.ZXDW,a.ZXJE,a.YZBEGINSJ,a.YZZXBEGINSJ,a.YZTZSJ,a.YZMS,a.JZBZ,a.ZDZBPKEY,a.CXR,a.CXSJ,a.TZR,a.TZSJ,a.CJR,a.CJRQ,a.XGR,a.XGRQ,a.JGID,a.CFH,a.YZMC,a.ISACTION,a.TYDNUM,a.YFBDZYZPKEY,a.BDYF,a.BDEXECPKEY,a.BDZC,a.CWJS,a.SFXSYZ,a.LOCKFLAG,a.LISCF,(select count(*) num from HIS_TC_SQD_EXEC where JGID=a.JGID and EXEPKEY=a.pkey) zlnum from HIS_YZ_EXEC a left join HIS_JZ_BASEINFO b on a.jzpkey=b.pkey and a.JGID=b.JGID where a.JGID=? and a.yzmx=? and ((b.JZLX='Z' and a.ZXFLAG='1') or b.jzlx !='Z') order by a.ZXTIME
12
12
select a.PKEY,a.HZPKEY,a.JZPKEY,a.SQDPKEY,a.YZMX,a.EXEPKEY,a.FZPKEY,a.SFZJZX,a.ZLSJ,a.ZLYS,a.ZLKS,a.ZLBT,a.ZLJL,a.ZBGZ,a.BLJL,a.ZYSX,a.ZLFS,a.ZLYQ,a.BWYS,a.JIAYA,a.JIANYA,a.ZLYL,a.YND,a.CJR,a.CJRQ,a.XGR,a.XGRQ,a.JGID,a.LOCKFLAG,b.jzno,c.xm,d.yzmc from HIS_TC_SQD_EXEC a left join HIS_JZ_BASEINFO b on a.jzpkey=b.pkey and a.JGID=b.JGID left join HIS_HZINFO c on a.hzpkey=c.pkey and a.JGID=c.JGID left join HIS_YZ_MXB d on a.yzmx=d.pkey and a.JGID=d.JGID where a.JGID=? and a.EXEPKEY=? order by a.CJRQ
12
12
select PKEY,HZPKEY,JZPKEY,YZXPKEY,YZMX,ZLFL,ZLXM,ZLXMMC,SQDH,JSKS,ZLSL,DW,DJ,ZJE,YBBX,SQYS,SQTIME,SQKS,SQZT,ZLFAMB,ZLFA,ZLBZ,ZLBW,FWZ,SCFZJL,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG from HIS_TC_SQD where JGID = ? and pkey=?
12
12