SELECT PKEY,TZBM,TZMC,TZSX,ZCZBEGIN,ZCZEND,LOWERROR,HIGHERROR,DAYCS,ISYE,ISQXMS,ISQY,BLNBBS,BLSJYBS,ISSCD,ISHLWS,ITEMDW,ITEMTYPE,USER24H,ISMUST,PATTERN,DICDAO,CJR,CJRQ,XGR,XGRQ,JGID FROM HIS_ZY_SIGN_ITEMSETUP WHERE JGID=? ORDER BY TZSX
12
select PKEY,EVENTMC,EEVENTTYPE,EVENTPARAMS,TIMETYPE,SHOWLOCATION,ISSHOWTIME,CJR,CJRQ,XGR,XGRQ,JGID from HIS_ZY_SIGN_EVENTSETUP where JGID=? order by pkey
12
SELECT PKEY,HZPKEY,JZPKEY,ZYNO,ZYBAH,DAYSTR,DAY,TZTYPE,C1,C2,C3,C4,C5,C6,CJR,CJRQ,XGR,XGRQ,JGID FROM HIS_ZY_SIGN_DATAS WHERE JGID=? AND HZPKEY=? AND JZPKEY=? AND DAYSTR=? ORDER BY PKEY
PKEY
HZPKEY
JZPKEY
JGID
DAYSTR
12
12
12
12
select PKEY,HZPKEY,JZPKEY,ZYNO,ZYBAH,CSRQ,SJTYPE,DAYSTR,CJR,CJRQ,XGR,XGRQ,JGID from HIS_ZY_SIGN_EVENTS where JGID=? and hzpkey=? and jzpkey=? order by csrq
12
12
12
SELECT PKEY,HZPKEY,JZPKEY,ZYNO,ZYBAH,DAYSTR,DAY,TZTYPE,C1,C2,C3,C4,C5,C6,CJR,CJRQ,XGR,XGRQ,JGID FROM HIS_ZY_SIGN_DATAS WHERE JGID=? AND JZPKEY in(#jzpkey#) AND DAYSTR=? ORDER BY PKEY
PKEY
HZPKEY
JZPKEY
JGID
DAYSTR
12
12
select max(day) maxday,min(day) minday from HIS_ZY_SIGN_DATAS where JGID=? and hzpkey=? and jzpkey=?
12
12
12
select max(CSRQ) maxday,min(CSRQ) minday from HIS_ZY_SIGN_EVENTS where JGID=? and hzpkey=? and jzpkey=?
12
12
12
=? and DAY <=? order by DAYSTR,TZTYPE]]>
12
12
12
93
93
=? and CSRQ <=? order by CSRQ]]>
12
12
12
93
93
select * from (SELECT PKEY,HZPKEY,JZPKEY,ZYNO,ZYBAH,DAYSTR,DAY,TZTYPE,C1,C2,C3,C4,C5,C6,CJR,CJRQ,XGR,XGRQ,JGID FROM HIS_ZY_SIGN_DATAS WHERE JGID=? AND HZPKEY=? AND JZPKEY=? and TZTYPE=? and (c1 is not null or c2 is not null or c3 is not null or c4 is not null or c5 is not null or c6 is not null ) ORDER BY DAYSTR desc) where rowNum = 1
PKEY
HZPKEY
JZPKEY
JGID
DAYSTR
12
12
12
12
SELECT PKEY,HZPKEY,JZPKEY,HLYZ,YSYZ,YLYZ,XDJCYZ,TSHLYZ,CJR,CJRQ,XGR,XGRQ,JGID FROM HIS_ZY_YZSHOW WHERE JGID=? AND HZPKEY=? AND JZPKEY=?
PKEY
HZPKEY
JZPKEY
HLYZ
YSYZ
YLYZ
XDJCYZ
TSHLYZ
JGID
12
12
12
SELECT a.PKEY,a.LXPKEY,a.YZXPKEY,b.mc FROM HIS_ZY_CZGLMX a left join MAIN_ZDB b on a.LXPKEY=b.BH and b.ZDZB_BH='100064' WHERE a.JGID=?
12
select PKEY,LXPKEY,YZXPKEY,CJR,CJRQ,XGR,XGRQ,JGID from HIS_ZY_TSYZMX where JGID=?
12
SELECT PKEY,TZBM,TZMC,TZSX,ZCZBEGIN,ZCZEND,LOWERROR,HIGHERROR,DAYCS,ISYE,ISQXMS,ISQY,BLNBBS,BLSJYBS,ISSCD,ISHLWS,ITEMDW,ITEMTYPE,USER24H,ISMUST,PATTERN,DICDAO,CJR,CJRQ,XGR,XGRQ,JGID FROM HIS_ZY_SIGN_ITEMSETUP WHERE JGID=? and ISSCD=1 and ISQY=1 ORDER BY TZSX
12
SELECT PKEY,TZBM,TZMC,TZSX,ZCZBEGIN,ZCZEND,LOWERROR,HIGHERROR,DAYCS,ISYE,ISQXMS,ISQY,BLNBBS,BLSJYBS,ISSCD,ISHLWS,ITEMDW,ITEMTYPE,USER24H,ISMUST,PATTERN,DICDAO,CJR,CJRQ,XGR,XGRQ,JGID FROM HIS_ZY_SIGN_ITEMSETUP WHERE JGID=? and ISHLWS=1 and ISQY=1 ORDER BY TZSX
12
SELECT PKEY,MC,BZ,CJR,CJRQ,XGR,XGRQ,JGID FROM HIS_EMR_HLWS_ZB_ZDZB WHERE JGID=? ORDER BY PKEY
12
select PKEY,ZBPKEY,BH,MC,CJR,CJRQ,XGR,XGRQ,JGID from HIS_EMR_HLWS_ZB_ZDB where JGID=? and ZBPKEY=? order by PKEY
12
12