SQL Id | SQL Text |
03d55jtyrc4fd | select distinct yjxxb0_.ID as ID261_, yjxxb0_.DATAVERSION as DATAVERS2_261_, yjxxb0_.DXBH as DXBH261_, yjxxb0_.DXLX as DXLX261_, yjxxb0_.YJDW as YJDW261_, yjxxb0_.YJJZSJ as YJJZSJ261_, yjxxb0_.YJZQX as YJZQX261_, yjxxb0_.YJZQXDW as YJZQXDW261_, yjxxb0_.JSSJ as JSSJ261_, yjxxb0_.YJJSLX as YJJSLX261_, yjxxb0_.YJDQSJ as YJDQSJ261_, yjxxb0_.YJZT as YJZT261_, yjxxb0_.CQZT as CQZT261_, yjxxb0_.SCBJ as SCBJ261_, yjxxb0_.OPERATETIME as OPERATE15_261_, yjxxb0_.OPERATERCODE as OPERATE16_261_, yjxxb0_.DELFLAG as DELFLAG261_, yjxxb0_.ORGID as ORGID261_, yjxxb0_.CQDM as CQDM261_, yjxxb0_.CQMC as CQMC261_, yjxxb0_.AJBH as AJBH261_, yjxxb0_.ZBH as ZBH261_, yjxxb0_.CQID as CQID261_, yjxxb0_.YJTSXX as YJTSXX261_, yjxxb0_.CQTSXX as CQTSXX261_ from T_YJ_YJXXB yjxxb0_, T_AJ_BAZCYXX bazcyxx1_, T_AJ_BAZ baz2_ where yjxxb0_.ZBH=bazcyxx1_.ZBH and bazcyxx1_.ZBH=baz2_.ZBH and yjxxb0_.SCBJ='1' and bazcyxx1_.SFZAIB='1' and bazcyxx1_.BAMJZH=:1 |
05rff3mapgk7u |
SELECT COUNT(*) as CT FROM (select distinct ajbh, ajmc, cbdw, cbr, ajlx, operatetime from (select xs.ajbh, xs.ajmc, decode(xs.yscbdw, null, xs.cbdw, xs.yscbdw) as cbdw, decode(xs.yscbr, null, xs.cbr, xs.yscbr) as cbr, cast('01' as varchar2(2)) as ajlx, xs.operatetime from t_aj_xsajfaxx xs where xs.ajzt <> '2904' and exists (select 1 from T_AJ_Baz baz, T_AJ_Bazcyxx bazcyxx where baz.zbh = bazcyxx.zbh and baz.ajbh = xs.ajbh and bazcyxx.bamjzh = :1) and xs.ajmc like :2 union all select xs.ajbh, xs.ajmc, decode(xs.yscbdw, null, xs.cbdw, xs.yscbdw) as cbdw, decode(xs.yscbr, null, xs.cbr, xs.yscbr) as cbr, cast('01' as varchar2(2)) as ajlx, xs.operatetime from t_aj_xsajfaxx xs where xs.ajzt <> '2904' and exists (select 1 from t_doc_processinstance ce, t_doc_processinstanceex ex, t_doc_approvalrecord app where ce.id = ex.processinstanceid and ce.id = app.instanceid and app.approvalstage in ('01', '02', '06') and ce.status = '99' and ex.exkey = 'AJBH' and ex.exvalue = xs.ajbh and app.operatercode = :3 ) and xs.ajmc like :4 union all select xz.ajbh, xz.ajmc, decode(xz.yscbdw, null, xz.cbdw, xz.yscbdw), decode(xz.yscbr, null, xz.zbmj, xz.yscbr), cast('02' as varchar2(2)) as ajlx, xz.operatetime from t_aj_xzajfaxx xz where xz.ajzt <> '3210' and exists (select 1 from T_AJ_Baz baz, T_AJ_Bazcyxx bazcyxx where baz.zbh = bazcyxx.zbh and baz.ajbh = xz.ajbh and bazcyxx.bamjzh = :5) and xz.
ajmc like :6 union all select xz.ajbh, xz.ajmc, decode(xz.yscbdw, null, xz.cbdw, xz.yscbdw), decode(xz.yscbr, null, xz.zbmj, xz.yscbr), cast('02' as varchar2(2)) as ajlx, xz.operatetime from t_aj_xzajfaxx xz where xz.ajzt <> '3210' and exists (select 1 from t_doc_processinstance ce, t_doc_processinstanceex ex, t_doc_approvalrecord app where ce.id = ex.processinstanceid and ce.id = app.instanceid and app.approvalstage in ('01', '02', '06') and (ce.status = '99' or ce.status = '98' and ce.processcode = 'CQTZSPB') and ex.exkey = 'AJBH' and ex.exvalue = xz.ajbh and app.operatercode = :7 ) and xz.ajmc like :8 ) ) |
063ubyj5jwwya | insert into T_DOC_PARAVALUES (INSTANCEID, PARAID, GROUPID, PARACODE, PARAVALUE, CLOBVALUE, OPERATERCODE, OPERATETIME, DOCID, ID) values (:1, :2, :3, :4, :5, :6, :7, :8, :9, :10) |
06qnhmt8hmh7z |
SELECT COUNT(*) as CT FROM (select distinct ajbh, ajmc, cbdw, cbr, ajlx, operatetime from (select xs.ajbh, xs.ajmc, decode(xs.yscbdw, null, xs.cbdw, xs.yscbdw) as cbdw, decode(xs.yscbr, null, xs.cbr, xs.yscbr) as cbr, cast('01' as varchar2(2)) as ajlx, xs.operatetime from t_aj_xsajfaxx xs where xs.ajzt <> '2904' and exists (select 1 from T_AJ_Baz baz, T_AJ_Bazcyxx bazcyxx where baz.zbh = bazcyxx.zbh and baz.ajbh = xs.ajbh and bazcyxx.bamjzh = :1) and exists (select 1 from t_aj_xsajrydy rydy inner join t_ry_saryjbxx ryxx on rydy.rybh = ryxx.rybh where xs.ajbh = rydy.ajbh and ryxx.ryxm like '%???%' ) union all select xs.ajbh, xs.ajmc, decode(xs.yscbdw, null, xs.cbdw, xs.yscbdw) as cbdw, decode(xs.yscbr, null, xs.cbr, xs.yscbr) as cbr, cast('01' as varchar2(2)) as ajlx, xs.operatetime from t_aj_xsajfaxx xs where xs.ajzt <> '2904' and exists (select 1 from t_doc_processinstance ce, t_doc_processinstanceex ex, t_doc_approvalrecord app where ce.id = ex.processinstanceid and ce.id = app.instanceid and app.approvalstage in ('01', '02', '06') and ce.status = '99' and ex.exkey = 'AJBH' and ex.exvalue = xs.ajbh and app.operatercode = :2 and exists (select 1 from t_aj_xsajrydy rydy inner join t_ry_saryjbxx ryxx on rydy.rybh = ryxx.rybh where xs.ajbh = rydy.ajbh and ryxx.ryxm like '%???%' ) ) union all select xz.ajbh, xz.ajmc, decode(xz.yscbdw, null, xz.cbdw, xz.yscbdw), decode(xz.ysc
br, null, xz.zbmj, xz.yscbr), cast('02' as varchar2(2)) as ajlx, xz.operatetime from t_aj_xzajfaxx xz where xz.ajzt <> '3210' and exists (select 1 from T_AJ_Baz baz, T_AJ_Bazcyxx bazcyxx where baz.zbh = bazcyxx.zbh and baz.ajbh = xz.ajbh and bazcyxx.bamjzh = :3) and exists (select 1 from t_aj_xzajrydy rydy inner join t_ry_saryjbxx ryxx on rydy.rybh = ryxx.rybh where xz.ajbh = rydy.ajbh and ryxx.ryxm like '%???%' ) union all select xz.ajbh, xz.ajmc, decode(xz.yscbdw, null, xz.cbdw, xz.yscbdw), decode(xz.yscbr, null, xz.zbmj, xz.yscbr), cast('02' as varchar2(2)) as ajlx, xz.operatetime from t_aj_xzajfaxx xz where xz.ajzt <> '3210' and exists (select 1 from t_doc_processinstance ce, t_doc_processinstanceex ex, t_doc_approvalrecord app where ce.id = ex.processinstanceid and ce.id = app.instanceid and app.approvalstage in ('01', '02', '06') and (ce.status = '99' or ce.status = '98' and ce.processcode = 'CQTZSPB') and ex.exkey = 'AJBH' and ex.exvalue = xz.ajbh and app.operatercode = :4 and exists (select 1 from t_aj_xzajrydy rydy inner join t_ry_saryjbxx ryxx on rydy.rybh = ryxx.rybh where xz.ajbh = rydy.ajbh and ryxx.ryxm like '%???%' ) ) ) ) |
08g4uzgf4ccqm |
SELECT COUNT(*) as CT FROM (select distinct ajbh, ajmc, cbdw, cbr, ajlx, operatetime from (select xs.ajbh, xs.ajmc, decode(xs.yscbdw, null, xs.cbdw, xs.yscbdw) as cbdw, decode(xs.yscbr, null, xs.cbr, xs.yscbr) as cbr, cast('01' as varchar2(2)) as ajlx, xs.operatetime from t_aj_xsajfaxx xs where xs.ajzt <> '2904' and exists (select 1 from T_AJ_Baz baz, T_AJ_Bazcyxx bazcyxx where baz.zbh = bazcyxx.zbh and baz.ajbh = xs.ajbh and bazcyxx.bamjzh = :1) and exists (select 1 from t_aj_xsajrydy rydy inner join t_ry_saryjbxx ryxx on rydy.rybh = ryxx.rybh where xs.ajbh = rydy.ajbh and ryxx.ryxm like '%???%' ) union all select xs.ajbh, xs.ajmc, decode(xs.yscbdw, null, xs.cbdw, xs.yscbdw) as cbdw, decode(xs.yscbr, null, xs.cbr, xs.yscbr) as cbr, cast('01' as varchar2(2)) as ajlx, xs.operatetime from t_aj_xsajfaxx xs where xs.ajzt <> '2904' and exists (select 1 from t_doc_processinstance ce, t_doc_processinstanceex ex, t_doc_approvalrecord app where ce.id = ex.processinstanceid and ce.id = app.instanceid and app.approvalstage in ('01', '02', '06') and ce.status = '99' and ex.exkey = 'AJBH' and ex.exvalue = xs.ajbh and app.operatercode = :2 and exists (select 1 from t_aj_xsajrydy rydy inner join t_ry_saryjbxx ryxx on rydy.rybh = ryxx.rybh where xs.ajbh = rydy.ajbh and ryxx.ryxm like '%???%' ) ) union all select xz.ajbh, xz.ajmc, decode(xz.yscbdw, null, xz.cbdw, xz.yscbdw), decode(xz.ysc
br, null, xz.zbmj, xz.yscbr), cast('02' as varchar2(2)) as ajlx, xz.operatetime from t_aj_xzajfaxx xz where xz.ajzt <> '3210' and exists (select 1 from T_AJ_Baz baz, T_AJ_Bazcyxx bazcyxx where baz.zbh = bazcyxx.zbh and baz.ajbh = xz.ajbh and bazcyxx.bamjzh = :3) and exists (select 1 from t_aj_xzajrydy rydy inner join t_ry_saryjbxx ryxx on rydy.rybh = ryxx.rybh where xz.ajbh = rydy.ajbh and ryxx.ryxm like '%???%' ) union all select xz.ajbh, xz.ajmc, decode(xz.yscbdw, null, xz.cbdw, xz.yscbdw), decode(xz.yscbr, null, xz.zbmj, xz.yscbr), cast('02' as varchar2(2)) as ajlx, xz.operatetime from t_aj_xzajfaxx xz where xz.ajzt <> '3210' and exists (select 1 from t_doc_processinstance ce, t_doc_processinstanceex ex, t_doc_approvalrecord app where ce.id = ex.processinstanceid and ce.id = app.instanceid and app.approvalstage in ('01', '02', '06') and (ce.status = '99' or ce.status = '98' and ce.processcode = 'CQTZSPB') and ex.exkey = 'AJBH' and ex.exvalue = xz.ajbh and app.operatercode = :4 and exists (select 1 from t_aj_xzajrydy rydy inner join t_ry_saryjbxx ryxx on rydy.rybh = ryxx.rybh where xz.ajbh = rydy.ajbh and ryxx.ryxm like '%???%' ) ) ) ) |
0jhw1t0g019uu |
select count(*) from (select distinct(ssajbh), ssajmc, ssajlx, ssr, ssdw, ssrq, OPERATETIME from (select ssajbh, ssajmc, ssajlx, ssr, ssdw, ssrq, OPERATETIME, flag from (select s.ssajbh, s.ssajmc, s.ssajlx, s.ssr, s.ssdw, s.ssrq, s.OPERATETIME, p.PROCESSCODE, p.WSKJZT as flag from T_AJ_SSAJXX s inner join T_AJ_SSAJRYDY ry on s.ssajbh=ry.ssajbh inner join T_RY_WFFZRYXX w on ry.rybh=w.rybh inner join T_DOC_PROCESSINSTANCE p on p.id=w.dqty where (w.sczt='06' or (w.sazt='03' and w.sczt='05' and (p.PROCESSCODE in ('CQJLBGS', 'CQDBBGS', 'CQJSJZBGS', 'CQQBHSBGS', 'CQXZJL', 'CQXZJLBCFK', 'BPBFY', 'BPBFH', 'CQZDJSJSJZBGS') or p.wskjzt <> 2)) or (w.sczt='08' and (select exvalue from t_doc_processinstanceex ex where ex.processinstanceid = p.id and exkey='busiArea')='500')) and exists(select 1 from T_AJ_BAZ baz, T_AJ_BAZCYXX bazcyxx where baz.zbh=bazcyxx.zbh and baz.ajbh=s.ssajbh and baz.xjbs='1' and bazcyxx.sfzaib='1' and bazcyxx.bamjzh=:1) and not exists(select 1 from t_ry_jcyyjxx jcy where jcy.cqid=p.id and jcy.jcyjd='501')) where (PROCESSCODE in ('CQJLBGS', 'CQDBBGS', 'CQJSJZBGS', 'CQQBHSBGS', 'CQXZJL', 'CQXZJLBCFK', 'BPBFY', 'BPBFH', 'CQZDJSJSJZBGS')) or (PROCESSCODE not in ('CQJLBGS', 'CQDBBGS', 'CQJSJZBGS', 'CQQBHSBGS', 'CQXZJL', 'CQXZJLBCFK', 'BPBFY', 'BPBFH', 'CQZDJSJSJZBGS') and (flag=0 or flag=1))) )
|
0mgqtg7zbtf7y |
SELECT COUNT(*) as CT FROM (select distinct ajbh, ajmc, cbdw, cbr, ajlx, operatetime from (select xs.ajbh, xs.ajmc, decode(xs.yscbdw, null, xs.cbdw, xs.yscbdw) as cbdw, decode(xs.yscbr, null, xs.cbr, xs.yscbr) as cbr, cast('01' as varchar2(2)) as ajlx, xs.operatetime from t_aj_xsajfaxx xs where xs.ajzt <> '2904' and exists (select 1 from T_AJ_Baz baz, T_AJ_Bazcyxx bazcyxx where baz.zbh = bazcyxx.zbh and baz.ajbh = xs.ajbh and bazcyxx.bamjzh = :1) and exists (select 1 from t_aj_xsajrydy rydy inner join t_ry_saryjbxx ryxx on rydy.rybh = ryxx.rybh where xs.ajbh = rydy.ajbh and ryxx.ryxm like '%?%' ) union all select xs.ajbh, xs.ajmc, decode(xs.yscbdw, null, xs.cbdw, xs.yscbdw) as cbdw, decode(xs.yscbr, null, xs.cbr, xs.yscbr) as cbr, cast('01' as varchar2(2)) as ajlx, xs.operatetime from t_aj_xsajfaxx xs where xs.ajzt <> '2904' and exists (select 1 from t_doc_processinstance ce, t_doc_processinstanceex ex, t_doc_approvalrecord app where ce.id = ex.processinstanceid and ce.id = app.instanceid and app.approvalstage in ('01', '02', '06') and ce.status = '99' and ex.exkey = 'AJBH' and ex.exvalue = xs.ajbh and app.operatercode = :2 and exists (select 1 from t_aj_xsajrydy rydy inner join t_ry_saryjbxx ryxx on rydy.rybh = ryxx.rybh where xs.ajbh = rydy.ajbh and ryxx.ryxm like '%?%' ) ) union all select xz.ajbh, xz.ajmc, decode(xz.yscbdw, null, xz.cbdw, xz.yscbdw), decode(xz.yscbr,
null, xz.zbmj, xz.yscbr), cast('02' as varchar2(2)) as ajlx, xz.operatetime from t_aj_xzajfaxx xz where xz.ajzt <> '3210' and exists (select 1 from T_AJ_Baz baz, T_AJ_Bazcyxx bazcyxx where baz.zbh = bazcyxx.zbh and baz.ajbh = xz.ajbh and bazcyxx.bamjzh = :3) and exists (select 1 from t_aj_xzajrydy rydy inner join t_ry_saryjbxx ryxx on rydy.rybh = ryxx.rybh where xz.ajbh = rydy.ajbh and ryxx.ryxm like '%?%' ) union all select xz.ajbh, xz.ajmc, decode(xz.yscbdw, null, xz.cbdw, xz.yscbdw), decode(xz.yscbr, null, xz.zbmj, xz.yscbr), cast('02' as varchar2(2)) as ajlx, xz.operatetime from t_aj_xzajfaxx xz where xz.ajzt <> '3210' and exists (select 1 from t_doc_processinstance ce, t_doc_processinstanceex ex, t_doc_approvalrecord app where ce.id = ex.processinstanceid and ce.id = app.instanceid and app.approvalstage in ('01', '02', '06') and (ce.status = '99' or ce.status = '98' and ce.processcode = 'CQTZSPB') and ex.exkey = 'AJBH' and ex.exvalue = xz.ajbh and app.operatercode = :4 and exists (select 1 from t_aj_xzajrydy rydy inner join t_ry_saryjbxx ryxx on rydy.rybh = ryxx.rybh where xz.ajbh = rydy.ajbh and ryxx.ryxm like '%?%' ) ) ) ) |
0n4au49czfqra |
update BJCICBB.T_INFO_CRIMINALBASEINFOR@BJCIC tardata set (PEOPLENO, NAME, SEXID, BIRTHDAY, AGE, NICKNAME, EDUCATIONLEVELID, STATUSID, SPECIALSTATUSID, POLITICALAPPEARANCEID, RACEID, NATIONALITYID, HOUSINGREASONID, DEPARTMENT, DUTYID, REGISTEREDADDRESSID, DETAILADDRESS, JAILNO, PRESENTADDRESSID, PRESENTDETAILADDRESS, HOUSINGPOLICESID, ABODETYPEID, DEADREASONID, DEADDATE, CRIMINALTYPEID, CRIMINALSITUATIONID, ISILLPREGNANTID, GATHERREASONID, ISDRUGGERID, STATUREUPPERLIMIT, STATURELOWERLIMIT, PERSONIDENTIFIERID, ACCENTID, BLOODTYPEID, BODILYFORMID, COMPLEXIONID, HAIRSTYLEID, FACESTYLEID, EYEBOWID, EYEID, MOUTHID, NOSEID, LIPID, TOOTHID, CHINID, BEARDID, EARID, ATTIRECHARACTERID, CASETOOLID, CASEMETHODID, CASECHARACTERF, SUPPLYMETHOD, CASETOOLF, SPECIALITYID, CASEREASONID, FINGERPOINTCODE, DISPOSALMETHODID, DISPOSALAREAID, FLEEAREA, DISPOSALDETAILAREA, FIRSTFEAKOUTTIME, FEAKOUTDEGREE, COSTINSTANCE, FEAKOUTINSTANCE, FEAKOUTREASONID, FEAKOUTTYPEID, POSIONSORTID, RESUMETIMES, RESUMEINTERVALID, FEAKOUTRESULTID, MAININCOMEFORMID, FEAKOUTPLACE, SUSPICIONNO, FEAKOUTENVIRONMENTID, DNANO, ECONOMYSTATUS, MOBILE, TEL, RESUME, REMARK, ENGLISHNAME, PAPERKINDID, PAPERNUMBER, VISAKINDID, VISADEADTIMES, ENTERPORTID, ENTERTIME, SUBJECTPOLICESID, VISADEADTIMEE, DELFLAG, OPERATETIME, OPERATERID, CHOOSEPARTID, CHOOSEOBJECTID, CHOOSELACATIONID, CASECHARACTERID, OTHERPART, NATIVEPLACEID, ISTRANSFER, CASEDIFLABOR, ISTEMPREGID, TEMPREGNUM, TEMPREGDEPID, RECORDEPTID, RECORDER, RECORDDATE, FRIMPEOPLENO, P
HOTOID, STATUSOUTID, NAMESPELL, JINGDU, WEIDU, RMK1, RMK2, RMK3, RMK4, RMK5, LJLGLS, RYZT, SQ, ARRESTDATE, ARRESTDEPARTMENTID, DATALEVEL, ISSECRECY, WORKTYPEID, LJSJ, CID) = (select RYBH, SUBSTRB(XM, 1, 52), XBID, to_char(CSRQ, 'yyyymmdd'), NL, BM, BJCICBB.transCode@BJCIC('WHCD', JYCDID), SFID, BJCICBB.transCode@BJCIC('TSSF', TSSFID), BJCICBB.transCode@BJCIC('ZZMM', ZZMMID), MZID, GJID, BJCICBB.transCode@BJCIC('JLYY', JLYYID), GZDW, BJCICBB.transCode@BJCIC('ZW', ZWID), HJDID, HJDXZ, RSBH, ZZDID, ZZDXZ, BJCICBB.transCode@BJCIC('SSPCS', JZDSSPCSID), JSLXID, SWYYID, to_char(SWRQ, 'yyyymmdd'), AFLXID, AFZKID, SFBCY, CJYYID, SFXD, SGSX, SGXX, RYBS, KYID, XXID, BJCICBB.transCode@BJCIC('TMTZ', TXID), BJCICBB.transCode@BJCIC('TMTZ', FSID), BJCICBB.transCode@BJCIC('TMTZ', FXID), BJCICBB.transCode@BJCIC('TMTZ', NXID), BJCICBB.transCode@BJCIC('TMTZ', MID), BJCICBB.transCode@BJCIC('TMTZ', YID), BJCICBB.transCode@BJCIC('TMTZ', ZID), BJCICBB.transCode@BJCIC('TMTZ', BID), BJCICBB.transCode@BJCIC('TMTZ', CID), BJCICBB.transCode@BJCIC('TMTZ', YAID), BJCICBB.transCode@BJCIC('TMTZ', XBAID), BJCICBB.transCode@BJCIC('TMTZ', HXID), BJCICBB.transCode@BJCIC('TMTZ', ERID), BJCICBB.transCode@BJCIC('TMTZ', QTTMTZID), ZAGJID, BJCICBB.transCode@BJCIC('ZASD', ZASDID), ZATD1, BCSD, ZAGJ1, TSZCID, ZAYYID, ZWM, XZFFID, XZQYID, LCQY, XZDQXZ, to_char(to_date(SCXDSJ, 'yyyy-mm-dd hh24:mi:ss'), 'yyyymmddhh24mi'), DYCD, HFQK, XSQK, XDYYID, XDFSID, DPZLID, FXCS, FXJGID, XSHGID, ZYJJLYID, XSDD, XYBH, XSHJID, DNAID,
JJZK, SJ1, ZJ2, JL, BZ, YWM, BJCICBB.transCode@BJCIC('ZJZL', QTZJZL), QTZJHM, QZZLID, to_char(to_date(QZYXQKS, 'yyyy-mm-dd hh24:mi:ss'), 'yyyymmdd'), RJKAID, to_char(to_date(RJSJ, 'yyyy-mm-dd hh24:mi:ss'), 'yyyymmddhh24mi'), BJCICBB.transCode@BJCIC('SSPCS', SSPCS), to_char(to_date(QZYXQJZ, 'yyyy-mm-dd hh24:mi:ss'), 'yyyymmdd'), 'U', CAST(OPERATETIME AS DATE), BJCICBB.transCode@BJCIC('ZZYID', OPERATERCODE), SUBSTRB(XZBWID, 1, 20), XZDXID, BJCICBB.transCode@BJCIC('XZCS', XZCSID), ZATDID, QTBW, JGID, SFYJ, ZAFG, SFBLZZZ, ZZZHM, BJCICBB.transCode@BJCIC('ZZJG', ZZZBLDWID), BJCICBB.transCode@BJCIC('ZZJG', LRDWID), SUBSTRB(LRR, 1, 32), to_char(LRRQ, 'yyyymmdd'), case when RDRYBH is null then 'R' else RDRYBH end, FILEID, SWSFID, SUBSTRB(XMPYM, 1, 32), JD, WD, BYZD1, BYZD2, BYZD3, BYZD4, BYZD5, LJLGLS, RYZT, SQ, to_char(JHRQ, 'yyyymmdd'), BJCICBB.transCode@BJCIC('ZZJG', JHDWID), BJCICBB.transCode@BJCIC('BMJB', BMJB), SFBM, ZAFGID, LJSJ, case when ZJZLID='111' then ZJHM else '' end from (select wfry.*, flmap.FILEID from T_RY_WFFZRYXX wfry left join T_TB_UPLOADFILESMAP flmap on wfry.ZPID=flmap.DATAID) srcdata where srcdata.RYBH = tardata.PEOPLENO) where exists(select 1 from BJCICBB.T_TB_TBHC@BJCIC tbhc where tbhc.TABMAPID='WFFZRYXXTAB0001' and tbhc.DELFLAG='U' and tbhc.BUSINO0 = tardata.PEOPLENO)
|
0njuzwx3kctc8 | insert into BJCICBB.T_INFO_COIN@BJCIC(ID, GOODSID, GOODSNO, GOODSNAME, CLASSID, COINTYPEID, COINVALUEID, SUM, VALUE, COPEID, COPETIME, REMARK, DELFLAG, OPERATETIME, OPERATERID, ORGID, CASENO, CASEID, RECORDEPTID, RECORDDATE, RECORDER, RECORDERNO) select BJCICBB.HIBERNATE_SEQUENCE.NEXTVAL@BJCIC, -1, WPBH, WPMC, WPFLID, BZID, MZID, ZS, JZ, WPCLID, to_char(CLSJ, 'yyyymmddhh24mi'), BZ, 'A', CAST(OPERATETIME AS DATE), BJCICBB.transCode@BJCIC('ZZYID', OPERATERCODE), BJCICBB.transCode@BJCIC('ORGID', ORGID), AJBH, -1, BJCICBB.transCode@BJCIC('ZZJG', LRDW), to_char(LRRQ, 'yyyymmdd'), SUBSTRB(LRR, 1, 32), BJCICBB.transCode@BJCIC('ZZYZH', LRRZH) from T_WP_HBXX srcdata where exists(select 1 from T_TB_TBHC tbhc where tbhc.TABMAPID='HBXXTAB0001' and tbhc.DELFLAG='A' and tbhc.DATAID=srcdata.ID) and OperateTime<=:1 |
0nqk5kdupgp9x |
SELECT COUNT(*) as CT FROM (select distinct ajbh, ajmc, cbdw, cbr, ajlx, operatetime from (select xs.ajbh, xs.ajmc, decode(xs.yscbdw, null, xs.cbdw, xs.yscbdw) as cbdw, decode(xs.yscbr, null, xs.cbr, xs.yscbr) as cbr, cast('01' as varchar2(2)) as ajlx, xs.operatetime from t_aj_xsajfaxx xs where xs.ajzt <> '2904' and exists (select 1 from T_AJ_Baz baz, T_AJ_Bazcyxx bazcyxx where baz.zbh = bazcyxx.zbh and baz.ajbh = xs.ajbh and bazcyxx.bamjzh = :1) and exists (select 1 from t_aj_xsajrydy rydy inner join t_ry_saryjbxx ryxx on rydy.rybh = ryxx.rybh where xs.ajbh = rydy.ajbh and ryxx.rybh = 'R1101084500002013110043' ) union all select xs.ajbh, xs.ajmc, decode(xs.yscbdw, null, xs.cbdw, xs.yscbdw) as cbdw, decode(xs.yscbr, null, xs.cbr, xs.yscbr) as cbr, cast('01' as varchar2(2)) as ajlx, xs.operatetime from t_aj_xsajfaxx xs where xs.ajzt <> '2904' and exists (select 1 from t_doc_processinstance ce, t_doc_processinstanceex ex, t_doc_approvalrecord app where ce.id = ex.processinstanceid and ce.id = app.instanceid and app.approvalstage in ('01', '02', '06') and ce.status = '99' and ex.exkey = 'AJBH' and ex.exvalue = xs.ajbh and app.operatercode = :2 and exists (select 1 from t_aj_xsajrydy rydy inner join t_ry_saryjbxx ryxx on rydy.rybh = ryxx.rybh where xs.ajbh = rydy.ajbh and ryxx.rybh = 'R1101084500002013110043' ) ) union all select xz.ajbh, xz.ajmc, decode(xz.yscbdw, null, xz.cb
dw, xz.yscbdw), decode(xz.yscbr, null, xz.zbmj, xz.yscbr), cast('02' as varchar2(2)) as ajlx, xz.operatetime from t_aj_xzajfaxx xz where xz.ajzt <> '3210' and exists (select 1 from T_AJ_Baz baz, T_AJ_Bazcyxx bazcyxx where baz.zbh = bazcyxx.zbh and baz.ajbh = xz.ajbh and bazcyxx.bamjzh = :3) and exists (select 1 from t_aj_xzajrydy rydy inner join t_ry_saryjbxx ryxx on rydy.rybh = ryxx.rybh where xz.ajbh = rydy.ajbh and ryxx.rybh = 'R1101084500002013110043' ) union all select xz.ajbh, xz.ajmc, decode(xz.yscbdw, null, xz.cbdw, xz.yscbdw), decode(xz.yscbr, null, xz.zbmj, xz.yscbr), cast('02' as varchar2(2)) as ajlx, xz.operatetime from t_aj_xzajfaxx xz where xz.ajzt <> '3210' and exists (select 1 from t_doc_processinstance ce, t_doc_processinstanceex ex, t_doc_approvalrecord app where ce.id = ex.processinstanceid and ce.id = app.instanceid and app.approvalstage in ('01', '02', '06') and (ce.status = '99' or ce.status = '98' and ce.processcode = 'CQTZSPB') and ex.exkey = 'AJBH' and ex.exvalue = xz.ajbh and app.operatercode = :4 and exists (select 1 from t_aj_xzajrydy rydy inner join t_ry_saryjbxx ryxx on rydy.rybh = ryxx.rybh where xz.ajbh = rydy.ajbh and ryxx.rybh = 'R1101084500002013110043' ) ) ) )
|
0sd1g1j3m12rz | insert into BJCICBB.T_TB_TBHC@BJCIC(ID, TABMAPID, ROWNO, DATAID, ORADATAID, BUSINO0, BUSINO1, BUSINO2, BUSINO3, BUSINO4, BUSINO5, BUSIID0, BUSIID1, BUSIID2, BUSIID3, BUSIID4, BUSIID5, OPERATERCODE, OPERATETIME, DELFLAG, ORGID, DATAVERSION) select sys_guid(), 'XSAJRYDYTAB1001', ROWNUM ROWNO, ID DATAID, null, AJBH, RYBH, null, null, null, null, null, null, null, null, null, null, null, OPERATETIME, 'A', null, 0 from T_AJ_XSAJRYDY rydy where rydy.RYLX='04' and rydy.RYBH in (select RYBH from T_RY_RYCLXX rycl where rycl.CLJD in ('CQBYCF', 'CQCHBGS', 'CQCHSPB', 'CQDBBGS', 'CQFK', 'CQJCBGS', 'CQJG', 'CQJLBGS', 'CQJSJZBGS', 'CQQBHSBGS', 'CQSCBZJBGS', 'CQXZJL', 'CQXZJLBCFK', 'JXPWSPB')) and rydy.AJBH in (select AJBH from T_AJ_XSAJPAXX paxx where paxx.BCZT='1' and paxx.OPERATETIME>:1 and paxx.OPERATETIME<=:2) |
0zd5zj0dw280w | SELECT COUNT(*) as CT from t_aj_xsajfaxx xs where xs.ajzt <> '2904' and xs.ajmc like :1 and exists (select 1 from t_aj_baz baz inner join t_aj_bazcyxx cy on cy.zbh = baz.zbh inner join t_sys_organization org on org.orgcode = cy.dwid where baz.ajbh = xs.ajbh and org.treepath like :2) |
1f5vm39gzbru8 | insert into T_SYS_AUDITRECORD ( ENTITYPRIMARYKEY, ID, IP, OPERATERID, OPERATIONTYPE, OPERATIONUSERLOGINID, RECORDTIME, SYSSIGN, TABLENAME) values (:1, system_sequence.nextval, :2, :3, :4, :5, :6, :7, :8) |
1n9rx4st6xwmf | insert into BJCICBB.T_INFO_PUNISHMENTINFOR@BJCIC(ID, PEOPLENO, OPERATETIME, DELFLAG, ORGID, SHAREID, TIME, TREATMENTDEPARTMENTID, IDTYPE, TREATMENTFORMID, EXPLANAION) select ORADATAID, RYBH, CAST(OPERATETIME AS DATE), 'A', BJCICBB.transCode@BJCIC('ORGID', ORGID), -1, to_char(PZSJ, 'yyyymmddhh24mi'), BJCICBB.transCode@BJCIC('ZZJG', ZXDW), 'crim', BJCICBB.transCode@BJCIC('RYCLFS', CLJD), SUBSTRB(JTQK, 1, 1000) from (select rycl.*, tbhc.ORADATAID from T_RY_RYCLXX rycl left join T_TB_TBHC tbhc on rycl.ID=tbhc.DATAID) srcdata where exists(select 1 from T_TB_TBHC tbhc where tbhc.TABMAPID='RYCLXXTAB0001' and tbhc.DELFLAG='A' and tbhc.DATAID=srcdata.ID) and OperateTime<=:1 |
1nqzd7xqqn3v7 | SELECT * FROM H_AJ_JJDJ
WHERE operatetime >=:1
and delflag='D'
order by operatetime asc |
1pnmwm33adsay | insert into T_DOC_WSQX (DATAVERSION, ASJBH, DXBH, DXLX, PROID, DOCID, TEMID, CQLX, CQDX, WSLX, CZLX, DWID, TREEPATH, GDID, OPERATERCODE, OPERATETIME, DELFLAG, ORGID, DOCNUMBERCODE, DOCNUM, DXMC, MBCODE, MBMC, PROCESSCODE, STATUS, OWNER, STARTTIME, ENDER, ENDTIME, FEATURENAME, USERNAME, LOGINORGCODE, LOGINORGNAME, GSDW, KJRNAME, KJSJ, TEMPLATEATTR, RELATIONTYPE, ID) values (:1, :2, :3, :4, :5, :6, :7, :8, :9, :10, :11, :12, :13, :14, :15, :16, :17, :18, :19, :20, :21, :22, :23, :24, :25, :26, :27, :28, :29, :30, :31, :32, :33, :34, :35, :36, :37, :38, :39) |
1qg27cput4c46 | SELECT * FROM T_DOC_DOCNUMBER
WHERE operatetime >=:1
order by operatetime asc
|
1srrbb2r23an4 | SELECT * FROM H_WP_ZDWPXX
WHERE operatetime >=:1
and delflag='D'
and operatetime >= TO_DATE('2012-01-01 20:00:00', 'yyyy-mm-dd hh24:mi:ss') |
1whqjdyh7b383 |
select 'T_AJBL_BLGL' as src_tablename , max(operatetime) as src_maxtime, sysdate as src_sjc from T_AJBL_BLGL union
select 'T_AJ_XSAJPAXX' as src_tablename , max(operatetime) as src_maxtime, sysdate as src_sjc from T_AJ_XSAJPAXX union
select 'T_AJ_XSAJRYDY' as src_tablename , max(operatetime) as src_maxtime, sysdate as src_sjc from T_AJ_XSAJRYDY union
select 'T_AJ_XZAJFAXX' as src_tablename , max(operatetime) as src_maxtime, sysdate as src_sjc from T_AJ_XZAJFAXX union
select 'T_AJ_XZAJRYDY' as src_tablename , max(operatetime) as src_maxtime, sysdate as src_sjc from T_AJ_XZAJRYDY union
select 'T_DC_BADD' as src_tablename , max(operatetime) as src_maxtime, sysdate as src_sjc from T_DC_BADD union
select 'T_DC_BBXX' as src_tablename , max(operatetime) as src_maxtime, sysdate as src_sjc from T_DC_BBXX union
select 'T_RY_RYZPDY' as src_tablename , max(operatetime) as src_maxtime, sysdate as src_sjc from T_RY_RYZPDY union
select 'T_RY_SATHSD' as src_tablename , max(operatetime) as src_maxtime, sysdate as src_sjc from T_RY_SATHSD union
select 'T_RY_SATXL' as src_tablename , max(operatetime) as src_maxtime, sysdate as src_sjc from T_RY_SATXL union
select 'T_RY_WFFZRYXX' as src_tablename , max(operatetime) as src_maxtime, sysdate as src_sjc from T_RY_WFFZRYXX union
select 'T_RY_ZHXX' as src_tablename , max(operatetime) as src_maxtime, sysdate as src_sjc from T_RY_ZHXX union
select 'T_SJ_DSWP' as src_tablename , max(operatetime) as src_maxtime, sysdate as src_sjc from T_SJ_DS
WP union
select 'T_SJ_JSWP' as src_tablename , max(operatetime) as src_maxtime, sysdate as src_sjc from T_SJ_JSWP union
select 'T_SJ_JSWPBL' as src_tablename , max(operatetime) as src_maxtime, sysdate as src_sjc from T_SJ_JSWPBL union
select 'T_SJ_QY' as src_tablename , max(operatetime) as src_maxtime, sysdate as src_sjc from T_SJ_QY union
select 'T_SJ_QYSJBL' as src_tablename , max(operatetime) as src_maxtime, sysdate as src_sjc from T_SJ_QYSJBL union
select 'T_SJ_SJZPDYB' as src_tablename , max(operatetime) as src_maxtime, sysdate as src_sjc from T_SJ_SJZPDYB union
select 'T_SJ_SZRY' as src_tablename , max(operatetime) as src_maxtime, sysdate as src_sjc from T_SJ_SZRY union
select 'T_WP_QTWP' as src_tablename , max(operatetime) as src_maxtime, sysdate as src_sjc from T_WP_QTWP union
select 'T_WP_SDWPXX' as src_tablename , max(operatetime) as src_maxtime, sysdate as src_sjc from T_WP_SDWPXX union
select 'T_WP_WPJBXX' as src_tablename , max(operatetime) as src_maxtime, sysdate as src_sjc from T_WP_WPJBXX union
select 'T_WP_ZDWPXX' as src_tablename , max(operatetime) as src_maxtime, sysdate as src_sjc from T_WP_ZDWPXX union
select 'T_WP_ZDXX' as src_tablename , max(operatetime) as src_maxtime, sysdate as src_sjc from T_WP_ZDXX |
1y9hqrwusdrj6 |
select * from ( select distinct ajbh, ajmc, cbdw, cbr, ajlx, operatetime from (select xs.ajbh, xs.ajmc, decode(xs.yscbdw, null, xs.cbdw, xs.yscbdw) as cbdw, decode(xs.yscbr, null, xs.cbr, xs.yscbr) as cbr, cast('01' as varchar2(2)) as ajlx, xs.operatetime from t_aj_xsajfaxx xs where xs.ajzt <> '2904' and exists (select 1 from T_AJ_Baz baz, T_AJ_Bazcyxx bazcyxx where baz.zbh = bazcyxx.zbh and baz.ajbh = xs.ajbh and bazcyxx.bamjzh = :1) and exists (select 1 from t_aj_xsajrydy rydy inner join t_ry_saryjbxx ryxx on rydy.rybh = ryxx.rybh where xs.ajbh = rydy.ajbh and ryxx.ryxm like '%?%' ) union all select xs.ajbh, xs.ajmc, decode(xs.yscbdw, null, xs.cbdw, xs.yscbdw) as cbdw, decode(xs.yscbr, null, xs.cbr, xs.yscbr) as cbr, cast('01' as varchar2(2)) as ajlx, xs.operatetime from t_aj_xsajfaxx xs where xs.ajzt <> '2904' and exists (select 1 from t_doc_processinstance ce, t_doc_processinstanceex ex, t_doc_approvalrecord app where ce.id = ex.processinstanceid and ce.id = app.instanceid and app.approvalstage in ('01', '02', '06') and ce.status = '99' and ex.exkey = 'AJBH' and ex.exvalue = xs.ajbh and app.operatercode = :2 and exists (select 1 from t_aj_xsajrydy rydy inner join t_ry_saryjbxx ryxx on rydy.rybh = ryxx.rybh where xs.ajbh = rydy.ajbh and ryxx.ryxm like '%?%' ) ) union all select xz.ajbh, xz.ajmc, decode(xz.yscbdw, null, xz.cbdw, xz.yscbdw), decode(xz.yscbr, null, xz.z
bmj, xz.yscbr), cast('02' as varchar2(2)) as ajlx, xz.operatetime from t_aj_xzajfaxx xz where xz.ajzt <> '3210' and exists (select 1 from T_AJ_Baz baz, T_AJ_Bazcyxx bazcyxx where baz.zbh = bazcyxx.zbh and baz.ajbh = xz.ajbh and bazcyxx.bamjzh = :3) and exists (select 1 from t_aj_xzajrydy rydy inner join t_ry_saryjbxx ryxx on rydy.rybh = ryxx.rybh where xz.ajbh = rydy.ajbh and ryxx.ryxm like '%?%' ) union all select xz.ajbh, xz.ajmc, decode(xz.yscbdw, null, xz.cbdw, xz.yscbdw), decode(xz.yscbr, null, xz.zbmj, xz.yscbr), cast('02' as varchar2(2)) as ajlx, xz.operatetime from t_aj_xzajfaxx xz where xz.ajzt <> '3210' and exists (select 1 from t_doc_processinstance ce, t_doc_processinstanceex ex, t_doc_approvalrecord app where ce.id = ex.processinstanceid and ce.id = app.instanceid and app.approvalstage in ('01', '02', '06') and (ce.status = '99' or ce.status = '98' and ce.processcode = 'CQTZSPB') and ex.exkey = 'AJBH' and ex.exvalue = xz.ajbh and app.operatercode = :4 and exists (select 1 from t_aj_xzajrydy rydy inner join t_ry_saryjbxx ryxx on rydy.rybh = ryxx.rybh where xz.ajbh = rydy.ajbh and ryxx.ryxm like '%?%' ) ) ) order by operatetime desc ) where rownum <= :5 |
1yj7jcwch3a8c | insert into BJCICBB.T_INFO_CASETREATMENT@BJCIC(ID, TREATMENTTIME, CASETREATMENTID, CASESTATUSID, TREATMENTDEPTID, TREATMENTER, APPROVALER, RECEIVEDEPTID, OPINION, DELFLAG, ORGID, OPERATERID, OPERATETIME, CASID, CASNO, CLASSTYPE, REASONID, ORDERR, OPERATERNAME) select BJCICBB.HIBERNATE_SEQUENCE.NEXTVAL@BJCIC, to_char(CLYJSJ, 'yyyymmddhh24mi'), BJCICBB.transCode@BJCIC('AJCL', AJCLID), BJCICBB.transCode@BJCIC('AJHJ', AJHJ), BJCICBB.transCode@BJCIC('ZZJG', CLDWID), CLR, PZR, BJCICBB.transCode@BJCIC('ZZJG', JSDWID), CLYJYY, 'A', BJCICBB.transCode@BJCIC('ORGID', ORGID), BJCICBB.transCode@BJCIC('ZZYID', OPERATERCODE), CAST(OPERATETIME AS DATE), -1, AJBH, BJCICBB.transCode@BJCIC('AJCLGLLX', AJHJ), BJCICBB.transCode@BJCIC('BLYY', BLYY), CAST(CLSX AS VARCHAR2(10)), ' ' from T_AJ_AJCL srcdata where exists(select 1 from T_TB_TBHC tbhc where tbhc.TABMAPID='AJCLTAB0001' and tbhc.DELFLAG='A' and tbhc.DATAID=srcdata.ID) and OperateTime<=:1 |
2000dkdd9g0n0 | select count(1) as recordCount, max(operateTime) lastUpTime from T_AJ_XSAJRYDY srcdata0 where operateTime > :1 and operateTime <= :2 and RYLX in ('02') |
26bgwg14kawmq |
select * from ( select distinct ajbh, ajmc, cbdw, cbr, ajlx, operatetime from (select xs.ajbh, xs.ajmc, decode(xs.yscbdw, null, xs.cbdw, xs.yscbdw) as cbdw, decode(xs.yscbr, null, xs.cbr, xs.yscbr) as cbr, cast('01' as varchar2(2)) as ajlx, xs.operatetime from t_aj_xsajfaxx xs where xs.ajzt <> '2904' and exists (select 1 from T_AJ_Baz baz, T_AJ_Bazcyxx bazcyxx where baz.zbh = bazcyxx.zbh and baz.ajbh = xs.ajbh and bazcyxx.bamjzh = :1) and exists (select 1 from t_aj_xsajrydy rydy inner join t_ry_saryjbxx ryxx on rydy.rybh = ryxx.rybh where xs.ajbh = rydy.ajbh and ryxx.ryxm like '%???%' ) union all select xs.ajbh, xs.ajmc, decode(xs.yscbdw, null, xs.cbdw, xs.yscbdw) as cbdw, decode(xs.yscbr, null, xs.cbr, xs.yscbr) as cbr, cast('01' as varchar2(2)) as ajlx, xs.operatetime from t_aj_xsajfaxx xs where xs.ajzt <> '2904' and exists (select 1 from t_doc_processinstance ce, t_doc_processinstanceex ex, t_doc_approvalrecord app where ce.id = ex.processinstanceid and ce.id = app.instanceid and app.approvalstage in ('01', '02', '06') and ce.status = '99' and ex.exkey = 'AJBH' and ex.exvalue = xs.ajbh and app.operatercode = :2 and exists (select 1 from t_aj_xsajrydy rydy inner join t_ry_saryjbxx ryxx on rydy.rybh = ryxx.rybh where xs.ajbh = rydy.ajbh and ryxx.ryxm like '%???%' ) ) union all select xz.ajbh, xz.ajmc, decode(xz.yscbdw, null, xz.cbdw, xz.yscbdw), decode(xz.yscbr, null,
xz.zbmj, xz.yscbr), cast('02' as varchar2(2)) as ajlx, xz.operatetime from t_aj_xzajfaxx xz where xz.ajzt <> '3210' and exists (select 1 from T_AJ_Baz baz, T_AJ_Bazcyxx bazcyxx where baz.zbh = bazcyxx.zbh and baz.ajbh = xz.ajbh and bazcyxx.bamjzh = :3) and exists (select 1 from t_aj_xzajrydy rydy inner join t_ry_saryjbxx ryxx on rydy.rybh = ryxx.rybh where xz.ajbh = rydy.ajbh and ryxx.ryxm like '%???%' ) union all select xz.ajbh, xz.ajmc, decode(xz.yscbdw, null, xz.cbdw, xz.yscbdw), decode(xz.yscbr, null, xz.zbmj, xz.yscbr), cast('02' as varchar2(2)) as ajlx, xz.operatetime from t_aj_xzajfaxx xz where xz.ajzt <> '3210' and exists (select 1 from t_doc_processinstance ce, t_doc_processinstanceex ex, t_doc_approvalrecord app where ce.id = ex.processinstanceid and ce.id = app.instanceid and app.approvalstage in ('01', '02', '06') and (ce.status = '99' or ce.status = '98' and ce.processcode = 'CQTZSPB') and ex.exkey = 'AJBH' and ex.exvalue = xz.ajbh and app.operatercode = :4 and exists (select 1 from t_aj_xzajrydy rydy inner join t_ry_saryjbxx ryxx on rydy.rybh = ryxx.rybh where xz.ajbh = rydy.ajbh and ryxx.ryxm like '%???%' ) ) ) order by operatetime desc ) where rownum <= :5 |
2dy70kbt76tk2 | SELECT COUNT(*) as CT from T_AJ_JJDJ j left join T_AJ_JJAJGLXX gl on j.id = gl.jjid where j.SFYCLID = '1' and j.jbsj >= to_Date(:1, 'yyyy-MM-dd hh24:mi:ss') and j.jbsj <= to_Date(:2, 'yyyy-MM-dd hh24:mi:ss') and (j.jbdwid =:3 or j.cbdw = :4 ) |
2mwsquzk4fw7p |
select * from ( select distinct ajbh, ajmc, cbdw, cbr, ajlx, operatetime from (select xs.ajbh, xs.ajmc, decode(xs.yscbdw, null, xs.cbdw, xs.yscbdw) as cbdw, decode(xs.yscbr, null, xs.cbr, xs.yscbr) as cbr, cast('01' as varchar2(2)) as ajlx, xs.operatetime from t_aj_xsajfaxx xs where xs.ajzt <> '2904' and exists (select 1 from T_AJ_Baz baz, T_AJ_Bazcyxx bazcyxx where baz.zbh = bazcyxx.zbh and baz.ajbh = xs.ajbh and bazcyxx.bamjzh = :1) and exists (select 1 from t_aj_xsajrydy rydy inner join t_ry_saryjbxx ryxx on rydy.rybh = ryxx.rybh where xs.ajbh = rydy.ajbh and ryxx.ryxm like '%???%' ) union all select xs.ajbh, xs.ajmc, decode(xs.yscbdw, null, xs.cbdw, xs.yscbdw) as cbdw, decode(xs.yscbr, null, xs.cbr, xs.yscbr) as cbr, cast('01' as varchar2(2)) as ajlx, xs.operatetime from t_aj_xsajfaxx xs where xs.ajzt <> '2904' and exists (select 1 from t_doc_processinstance ce, t_doc_processinstanceex ex, t_doc_approvalrecord app where ce.id = ex.processinstanceid and ce.id = app.instanceid and app.approvalstage in ('01', '02', '06') and ce.status = '99' and ex.exkey = 'AJBH' and ex.exvalue = xs.ajbh and app.operatercode = :2 and exists (select 1 from t_aj_xsajrydy rydy inner join t_ry_saryjbxx ryxx on rydy.rybh = ryxx.rybh where xs.ajbh = rydy.ajbh and ryxx.ryxm like '%???%' ) ) union all select xz.ajbh, xz.ajmc, decode(xz.yscbdw, null, xz.cbdw, xz.yscbdw), decode(xz.yscbr, null,
xz.zbmj, xz.yscbr), cast('02' as varchar2(2)) as ajlx, xz.operatetime from t_aj_xzajfaxx xz where xz.ajzt <> '3210' and exists (select 1 from T_AJ_Baz baz, T_AJ_Bazcyxx bazcyxx where baz.zbh = bazcyxx.zbh and baz.ajbh = xz.ajbh and bazcyxx.bamjzh = :3) and exists (select 1 from t_aj_xzajrydy rydy inner join t_ry_saryjbxx ryxx on rydy.rybh = ryxx.rybh where xz.ajbh = rydy.ajbh and ryxx.ryxm like '%???%' ) union all select xz.ajbh, xz.ajmc, decode(xz.yscbdw, null, xz.cbdw, xz.yscbdw), decode(xz.yscbr, null, xz.zbmj, xz.yscbr), cast('02' as varchar2(2)) as ajlx, xz.operatetime from t_aj_xzajfaxx xz where xz.ajzt <> '3210' and exists (select 1 from t_doc_processinstance ce, t_doc_processinstanceex ex, t_doc_approvalrecord app where ce.id = ex.processinstanceid and ce.id = app.instanceid and app.approvalstage in ('01', '02', '06') and (ce.status = '99' or ce.status = '98' and ce.processcode = 'CQTZSPB') and ex.exkey = 'AJBH' and ex.exvalue = xz.ajbh and app.operatercode = :4 and exists (select 1 from t_aj_xzajrydy rydy inner join t_ry_saryjbxx ryxx on rydy.rybh = ryxx.rybh where xz.ajbh = rydy.ajbh and ryxx.ryxm like '%???%' ) ) ) order by operatetime desc ) where rownum <= :5 |
2nk2p4h18rbwf | select tablespace_id, rfno, allocated_space, file_size, file_maxsize, changescn_base, changescn_wrap, flag, inst_id from GV$FILESPACE_USAGE where inst_id != :inst and (changescn_wrap >= :w or (changescn_wrap = :w and changescn_base >= :b)) |
2phgqm85pz4t8 |
SELECT COUNT(*) as CT FROM (select distinct ajbh, ajmc, cbdw, cbr, ajlx, operatetime from (select xs.ajbh, xs.ajmc, decode(xs.yscbdw, null, xs.cbdw, xs.yscbdw) as cbdw, decode(xs.yscbr, null, xs.cbr, xs.yscbr) as cbr, cast('01' as varchar2(2)) as ajlx, xs.operatetime from t_aj_xsajfaxx xs where xs.ajzt <> '2904' and exists (select 1 from T_AJ_Baz baz, T_AJ_Bazcyxx bazcyxx where baz.zbh = bazcyxx.zbh and baz.ajbh = xs.ajbh and bazcyxx.bamjzh = :1) and exists (select 1 from t_aj_xsajrydy rydy inner join t_ry_saryjbxx ryxx on rydy.rybh = ryxx.rybh where xs.ajbh = rydy.ajbh and ryxx.ryxm like '%???%' ) union all select xs.ajbh, xs.ajmc, decode(xs.yscbdw, null, xs.cbdw, xs.yscbdw) as cbdw, decode(xs.yscbr, null, xs.cbr, xs.yscbr) as cbr, cast('01' as varchar2(2)) as ajlx, xs.operatetime from t_aj_xsajfaxx xs where xs.ajzt <> '2904' and exists (select 1 from t_doc_processinstance ce, t_doc_processinstanceex ex, t_doc_approvalrecord app where ce.id = ex.processinstanceid and ce.id = app.instanceid and app.approvalstage in ('01', '02', '06') and ce.status = '99' and ex.exkey = 'AJBH' and ex.exvalue = xs.ajbh and app.operatercode = :2 and exists (select 1 from t_aj_xsajrydy rydy inner join t_ry_saryjbxx ryxx on rydy.rybh = ryxx.rybh where xs.ajbh = rydy.ajbh and ryxx.ryxm like '%???%' ) ) union all select xz.ajbh, xz.ajmc, decode(xz.yscbdw, null, xz.cbdw, xz.yscbdw), decode(xz.ysc
br, null, xz.zbmj, xz.yscbr), cast('02' as varchar2(2)) as ajlx, xz.operatetime from t_aj_xzajfaxx xz where xz.ajzt <> '3210' and exists (select 1 from T_AJ_Baz baz, T_AJ_Bazcyxx bazcyxx where baz.zbh = bazcyxx.zbh and baz.ajbh = xz.ajbh and bazcyxx.bamjzh = :3) and exists (select 1 from t_aj_xzajrydy rydy inner join t_ry_saryjbxx ryxx on rydy.rybh = ryxx.rybh where xz.ajbh = rydy.ajbh and ryxx.ryxm like '%???%' ) union all select xz.ajbh, xz.ajmc, decode(xz.yscbdw, null, xz.cbdw, xz.yscbdw), decode(xz.yscbr, null, xz.zbmj, xz.yscbr), cast('02' as varchar2(2)) as ajlx, xz.operatetime from t_aj_xzajfaxx xz where xz.ajzt <> '3210' and exists (select 1 from t_doc_processinstance ce, t_doc_processinstanceex ex, t_doc_approvalrecord app where ce.id = ex.processinstanceid and ce.id = app.instanceid and app.approvalstage in ('01', '02', '06') and (ce.status = '99' or ce.status = '98' and ce.processcode = 'CQTZSPB') and ex.exkey = 'AJBH' and ex.exvalue = xz.ajbh and app.operatercode = :4 and exists (select 1 from t_aj_xzajrydy rydy inner join t_ry_saryjbxx ryxx on rydy.rybh = ryxx.rybh where xz.ajbh = rydy.ajbh and ryxx.ryxm like '%???%' ) ) ) ) |
2rrb9nt9p2343 | select BUSINO from T_SYS_NEWBUSINO where substr(BUSINO, :1, :2 ) = :3 and substr(BUSINO, :4 , :5 ) = :6 and BUSITABLENAME = :7 |
2zc4hzujknsn4 | select count(wffzryxx0_.ID) as col_0_0_ from T_RY_WFFZRYXX wffzryxx0_, T_AJ_XSAJRYDY xsajrydy1_ where wffzryxx0_.RYBH=xsajrydy1_.RYBH and xsajrydy1_.AJBH=:1 |
3mtcrbaxyu7dk | select count(1) as recordCount, max(operateTime) lastUpTime from T_RY_WFFZRYXX srcdata0 where operateTime > :1 and operateTime <= :2 and exists(select 1 from T_AJ_XSAJRYDY srcdata1 where srcdata0.RYBH = srcdata1.RYBH and exists(select 1 from T_AJ_XSAJFAXX srcdata2 where ZABID in ('020703', '020704') and LRRQ>=DATE'2012-07-01' and srcdata1.AJBH = srcdata2.AJBH)) |
3s0jtudruj6pq |
insert into BJCICBB.T_INFO_CRMNLCSSLV@BJCIC(ID, CASCLSIFID, REGISTDEPID, SLVDATE, SLVDEPTID, SLVBRANCHID, SEIZEDTOTL, HELSLVDEPTID, SLVMODEID, SLVTRETMETID, CIMTOOLID, CASROLEID, CASREASNID, COUNT, PLUSMEANS, CIMFEATURID, DISPOSALWAYID, INLANDID, INTLID, INLAND, INTL, RECORDEPTID, RECORDER, RECORDDATE, SLVCOURSE, DELFLAG, OPERATETIME, OPERATERID, ORGID, CASID, CASNO, CASLEVLID, PREMEANSID, DOMEANSID, CAMOUMEANSID, RESCUEPAWN, RESCUECHILD, RESCUEFAME, SEIZEDSUM, AMERCE, OUTAMERCE, FINANCESUM, OUTFINACESUM, CASNAME, DOCASFORMID, CASTYPID, TOOLSRCID, PAR, REDEEMEXP, DATALEVEL, ISSECRECY, CRIMINALNUM) select BJCICBB.HIBERNATE_SEQUENCE.NEXTVAL@BJCIC, BJCICBB.transCode@BJCIC('AJLB', ABID), BJCICBB.transCode@BJCIC('ZZJG', LADWID), to_char(PARQ, 'yyyymmdd'), BJCICBB.transCode@BJCIC('ZZJG', BADWID), BJCICBB.transCode@BJCIC('PABM', PABMID), JHZJZ, BJCICBB.transCode@BJCIC('ZZJG', XBDWID), BJCICBB.transCode@BJCIC('PAFS', PAFSID), PAAJCLID, ZAGJID, AJGXID, ZAYXID, CRIMINALNUM, BCSD, ZATDID, XZFSID, GNXZDQID, GJXZDQID, GNXZDQXZ, GJXZDQXZ, BJCICBB.transCode@BJCIC('ZZJG', LRDWID), LRR, to_char(LRRQ, 'yyyymmdd'), PAJG, 'A', CAST(OPERATETIME AS DATE), BJCICBB.transCode@BJCIC('ZZYID', OPERATERCODE), BJCICBB.transCode@BJCIC('ORGID', ORGID), -1, AJBH, SAJBID, BJCICBB.transCode@BJCIC('ZASD', YBSDID), BJCICBB.transCode@BJCIC('ZASD', SSSDID), BJCICBB.transCode@BJCIC('ZASD', WZMJID), JJRZS, JJETS, JJFNS, JHDZZKJE/10000, FK/10000, JWFK/10000, MHCWZKJE/10000, JWMHCWZKJE/10000, AJMC, BJCICBB.transCode@B
JCIC('PAZAXS', ZAXSID), BJCICBB.transCode@BJCIC('AJLX', AJLXID), GJLY, PAR, JJSS, BMJB, SFBM, ZZRS from T_AJ_XSAJPAXX srcdata where exists(select 1 from T_TB_TBHC tbhc where tbhc.TABMAPID='XSAJPAXXTAB0001' and tbhc.DELFLAG='A' and tbhc.DATAID=srcdata.ID) and OperateTime<=:1 |
3s1an65xqkvzp | SELECT COUNT(*) as CT FROM (SELECT SSAJBH , SSAJMC, SSAJLX, AJYS.YSZT, AJYS.ID FROM T_AJ_SSAJXX SS INNER JOIN T_AJ_AJYS AJYS ON SS.SSAJBH = AJYS.AJBH WHERE YSLB='1' AND YSZT NOT IN('2903', '3234', '4000', '5000', '6000', '7000') UNION ALL SELECT SSAJBH , SSAJMC, SSAJLX, '', '' FROM T_AJ_SSAJXX SS1 WHERE NOT EXISTS (SELECT 1 FROM T_AJ_AJYS AJYS1 WHERE AJYS1.AJBH=SS1.SSAJBH AND YSLB='1' AND YSZT NOT IN('2903', '3234', '4000', '5000', '6000', '7000'))) WHERE EXISTS (SELECT 1 FROM T_AJ_BAZ BAZ, T_AJ_BAZCYXX XX WHERE BAZ.AJBH = SSAJBH AND BAZ.ZBH = XX.ZBH AND BAZ.XJBS = '1' AND XX.SFZAIB = '1' AND XX.BAMJZH = :1) |
3u5139201pq9b |
SELECT COUNT(*) as CT FROM (select distinct ajbh, ajmc, cbdw, cbr, ajlx, operatetime from (select xs.ajbh, xs.ajmc, decode(xs.yscbdw, null, xs.cbdw, xs.yscbdw) as cbdw, decode(xs.yscbr, null, xs.cbr, xs.yscbr) as cbr, cast('01' as varchar2(2)) as ajlx, xs.operatetime from t_aj_xsajfaxx xs where xs.ajzt <> '2904' and exists (select 1 from T_AJ_Baz baz, T_AJ_Bazcyxx bazcyxx where baz.zbh = bazcyxx.zbh and baz.ajbh = xs.ajbh and bazcyxx.bamjzh = :1) and exists (select 1 from t_aj_xsajrydy rydy inner join t_ry_saryjbxx ryxx on rydy.rybh = ryxx.rybh where xs.ajbh = rydy.ajbh and ryxx.ryxm like '%???%' ) union all select xs.ajbh, xs.ajmc, decode(xs.yscbdw, null, xs.cbdw, xs.yscbdw) as cbdw, decode(xs.yscbr, null, xs.cbr, xs.yscbr) as cbr, cast('01' as varchar2(2)) as ajlx, xs.operatetime from t_aj_xsajfaxx xs where xs.ajzt <> '2904' and exists (select 1 from t_doc_processinstance ce, t_doc_processinstanceex ex, t_doc_approvalrecord app where ce.id = ex.processinstanceid and ce.id = app.instanceid and app.approvalstage in ('01', '02', '06') and ce.status = '99' and ex.exkey = 'AJBH' and ex.exvalue = xs.ajbh and app.operatercode = :2 and exists (select 1 from t_aj_xsajrydy rydy inner join t_ry_saryjbxx ryxx on rydy.rybh = ryxx.rybh where xs.ajbh = rydy.ajbh and ryxx.ryxm like '%???%' ) ) union all select xz.ajbh, xz.ajmc, decode(xz.yscbdw, null, xz.cbdw, xz.yscbdw), decode(xz.ysc
br, null, xz.zbmj, xz.yscbr), cast('02' as varchar2(2)) as ajlx, xz.operatetime from t_aj_xzajfaxx xz where xz.ajzt <> '3210' and exists (select 1 from T_AJ_Baz baz, T_AJ_Bazcyxx bazcyxx where baz.zbh = bazcyxx.zbh and baz.ajbh = xz.ajbh and bazcyxx.bamjzh = :3) and exists (select 1 from t_aj_xzajrydy rydy inner join t_ry_saryjbxx ryxx on rydy.rybh = ryxx.rybh where xz.ajbh = rydy.ajbh and ryxx.ryxm like '%???%' ) union all select xz.ajbh, xz.ajmc, decode(xz.yscbdw, null, xz.cbdw, xz.yscbdw), decode(xz.yscbr, null, xz.zbmj, xz.yscbr), cast('02' as varchar2(2)) as ajlx, xz.operatetime from t_aj_xzajfaxx xz where xz.ajzt <> '3210' and exists (select 1 from t_doc_processinstance ce, t_doc_processinstanceex ex, t_doc_approvalrecord app where ce.id = ex.processinstanceid and ce.id = app.instanceid and app.approvalstage in ('01', '02', '06') and (ce.status = '99' or ce.status = '98' and ce.processcode = 'CQTZSPB') and ex.exkey = 'AJBH' and ex.exvalue = xz.ajbh and app.operatercode = :4 and exists (select 1 from t_aj_xzajrydy rydy inner join t_ry_saryjbxx ryxx on rydy.rybh = ryxx.rybh where xz.ajbh = rydy.ajbh and ryxx.ryxm like '%???%' ) ) ) ) |
43t0rm4t5g6zg | select * from ( select * from (select docins.id docid, docins.templateid tid, docins.processinstanceid pid, pro.instcode dxbh, pro.processcode cqty, tem.templatename wsmc, pro.username cqr, pro.loginorgname cqdw, pro.starttime as cqtime, docins.docstatus, docins.doctype, pro.id, docins.docUrl, tem.templatetype templatetype, tem.html html from t_doc_docinstance docins, t_doc_processinstance pro, t_doc_template tem where docins.processinstanceid = pro.id and docins.docstatus in ('02', '03') and tem.id=docins.templateid and exists (select 1 from t_doc_processinstanceex pr where pr.processinstanceid = pro.id )) where 1=1 order by cqtime desc ) where rownum <= :1 |
4b2754jcwn0q3 |
SELECT COUNT(*) as CT FROM (select distinct ajbh, ajmc, cbdw, cbr, ajlx, operatetime from (select xs.ajbh, xs.ajmc, decode(xs.yscbdw, null, xs.cbdw, xs.yscbdw) as cbdw, decode(xs.yscbr, null, xs.cbr, xs.yscbr) as cbr, cast('01' as varchar2(2)) as ajlx, xs.operatetime from t_aj_xsajfaxx xs where xs.ajzt <> '2904' and exists (select 1 from T_AJ_Baz baz, T_AJ_Bazcyxx bazcyxx where baz.zbh = bazcyxx.zbh and baz.ajbh = xs.ajbh and bazcyxx.bamjzh = :1) union all select xs.ajbh, xs.ajmc, decode(xs.yscbdw, null, xs.cbdw, xs.yscbdw) as cbdw, decode(xs.yscbr, null, xs.cbr, xs.yscbr) as cbr, cast('01' as varchar2(2)) as ajlx, xs.operatetime from t_aj_xsajfaxx xs where xs.ajzt <> '2904' and exists (select 1 from t_doc_processinstance ce, t_doc_processinstanceex ex, t_doc_approvalrecord app where ce.id = ex.processinstanceid and ce.id = app.instanceid and app.approvalstage in ('01', '02', '06') and ce.status = '99' and ex.exkey = 'AJBH' and ex.exvalue = xs.ajbh and app.operatercode = :2 ) union all select xz.ajbh, xz.ajmc, decode(xz.yscbdw, null, xz.cbdw, xz.yscbdw), decode(xz.yscbr, null, xz.zbmj, xz.yscbr), cast('02' as varchar2(2)) as ajlx, xz.operatetime from t_aj_xzajfaxx xz where xz.ajzt <> '3210' and exists (select 1 from T_AJ_Baz baz, T_AJ_Bazcyxx bazcyxx where baz.zbh = bazcyxx.zbh and baz.ajbh = xz.ajbh and bazcyxx.bamjzh = :3) union all select xz.ajbh, xz.ajmc, decode(xz.
yscbdw, null, xz.cbdw, xz.yscbdw), decode(xz.yscbr, null, xz.zbmj, xz.yscbr), cast('02' as varchar2(2)) as ajlx, xz.operatetime from t_aj_xzajfaxx xz where xz.ajzt <> '3210' and exists (select 1 from t_doc_processinstance ce, t_doc_processinstanceex ex, t_doc_approvalrecord app where ce.id = ex.processinstanceid and ce.id = app.instanceid and app.approvalstage in ('01', '02', '06') and (ce.status = '99' or ce.status = '98' and ce.processcode = 'CQTZSPB') and ex.exkey = 'AJBH' and ex.exvalue = xz.ajbh and app.operatercode = :4 ) ) ) |
4hwhf8qt0rkg1 |
SELECT COUNT(*) as CT FROM (select distinct ajbh, ajmc, cbdw, cbr, ajlx, operatetime from (select xs.ajbh, xs.ajmc, decode(xs.yscbdw, null, xs.cbdw, xs.yscbdw) as cbdw, decode(xs.yscbr, null, xs.cbr, xs.yscbr) as cbr, cast('01' as varchar2(2)) as ajlx, xs.operatetime from t_aj_xsajfaxx xs where xs.ajzt <> '2904' and exists (select 1 from T_AJ_Baz baz, T_AJ_Bazcyxx bazcyxx where baz.zbh = bazcyxx.zbh and baz.ajbh = xs.ajbh and bazcyxx.bamjzh = :1) and exists (select 1 from t_aj_xsajrydy rydy inner join t_ry_saryjbxx ryxx on rydy.rybh = ryxx.rybh where xs.ajbh = rydy.ajbh and ryxx.ryxm like '%?%' ) union all select xs.ajbh, xs.ajmc, decode(xs.yscbdw, null, xs.cbdw, xs.yscbdw) as cbdw, decode(xs.yscbr, null, xs.cbr, xs.yscbr) as cbr, cast('01' as varchar2(2)) as ajlx, xs.operatetime from t_aj_xsajfaxx xs where xs.ajzt <> '2904' and exists (select 1 from t_doc_processinstance ce, t_doc_processinstanceex ex, t_doc_approvalrecord app where ce.id = ex.processinstanceid and ce.id = app.instanceid and app.approvalstage in ('01', '02', '06') and ce.status = '99' and ex.exkey = 'AJBH' and ex.exvalue = xs.ajbh and app.operatercode = :2 and exists (select 1 from t_aj_xsajrydy rydy inner join t_ry_saryjbxx ryxx on rydy.rybh = ryxx.rybh where xs.ajbh = rydy.ajbh and ryxx.ryxm like '%?%' ) ) union all select xz.ajbh, xz.ajmc, decode(xz.yscbdw, null, xz.cbdw, xz.yscbdw), decode(xz.yscbr,
null, xz.zbmj, xz.yscbr), cast('02' as varchar2(2)) as ajlx, xz.operatetime from t_aj_xzajfaxx xz where xz.ajzt <> '3210' and exists (select 1 from T_AJ_Baz baz, T_AJ_Bazcyxx bazcyxx where baz.zbh = bazcyxx.zbh and baz.ajbh = xz.ajbh and bazcyxx.bamjzh = :3) and exists (select 1 from t_aj_xzajrydy rydy inner join t_ry_saryjbxx ryxx on rydy.rybh = ryxx.rybh where xz.ajbh = rydy.ajbh and ryxx.ryxm like '%?%' ) union all select xz.ajbh, xz.ajmc, decode(xz.yscbdw, null, xz.cbdw, xz.yscbdw), decode(xz.yscbr, null, xz.zbmj, xz.yscbr), cast('02' as varchar2(2)) as ajlx, xz.operatetime from t_aj_xzajfaxx xz where xz.ajzt <> '3210' and exists (select 1 from t_doc_processinstance ce, t_doc_processinstanceex ex, t_doc_approvalrecord app where ce.id = ex.processinstanceid and ce.id = app.instanceid and app.approvalstage in ('01', '02', '06') and (ce.status = '99' or ce.status = '98' and ce.processcode = 'CQTZSPB') and ex.exkey = 'AJBH' and ex.exvalue = xz.ajbh and app.operatercode = :4 and exists (select 1 from t_aj_xzajrydy rydy inner join t_ry_saryjbxx ryxx on rydy.rybh = ryxx.rybh where xz.ajbh = rydy.ajbh and ryxx.ryxm like '%?%' ) ) ) ) |
4jy8r4usmm7w5 |
SELECT COUNT(*) as CT FROM (select distinct ajbh, ajmc, cbdw, cbr, ajlx, operatetime from (select xs.ajbh, xs.ajmc, decode(xs.yscbdw, null, xs.cbdw, xs.yscbdw) as cbdw, decode(xs.yscbr, null, xs.cbr, xs.yscbr) as cbr, cast('01' as varchar2(2)) as ajlx, xs.operatetime from t_aj_xsajfaxx xs where xs.ajzt <> '2904' and exists (select 1 from T_AJ_Baz baz, T_AJ_Bazcyxx bazcyxx where baz.zbh = bazcyxx.zbh and baz.ajbh = xs.ajbh and bazcyxx.bamjzh = :1) and exists (select 1 from t_aj_xsajrydy rydy inner join t_ry_saryjbxx ryxx on rydy.rybh = ryxx.rybh where xs.ajbh = rydy.ajbh and ryxx.ryxm like '%???%' ) union all select xs.ajbh, xs.ajmc, decode(xs.yscbdw, null, xs.cbdw, xs.yscbdw) as cbdw, decode(xs.yscbr, null, xs.cbr, xs.yscbr) as cbr, cast('01' as varchar2(2)) as ajlx, xs.operatetime from t_aj_xsajfaxx xs where xs.ajzt <> '2904' and exists (select 1 from t_doc_processinstance ce, t_doc_processinstanceex ex, t_doc_approvalrecord app where ce.id = ex.processinstanceid and ce.id = app.instanceid and app.approvalstage in ('01', '02', '06') and ce.status = '99' and ex.exkey = 'AJBH' and ex.exvalue = xs.ajbh and app.operatercode = :2 and exists (select 1 from t_aj_xsajrydy rydy inner join t_ry_saryjbxx ryxx on rydy.rybh = ryxx.rybh where xs.ajbh = rydy.ajbh and ryxx.ryxm like '%???%' ) ) union all select xz.ajbh, xz.ajmc, decode(xz.yscbdw, null, xz.cbdw, xz.yscbdw), decode(xz.ysc
br, null, xz.zbmj, xz.yscbr), cast('02' as varchar2(2)) as ajlx, xz.operatetime from t_aj_xzajfaxx xz where xz.ajzt <> '3210' and exists (select 1 from T_AJ_Baz baz, T_AJ_Bazcyxx bazcyxx where baz.zbh = bazcyxx.zbh and baz.ajbh = xz.ajbh and bazcyxx.bamjzh = :3) and exists (select 1 from t_aj_xzajrydy rydy inner join t_ry_saryjbxx ryxx on rydy.rybh = ryxx.rybh where xz.ajbh = rydy.ajbh and ryxx.ryxm like '%???%' ) union all select xz.ajbh, xz.ajmc, decode(xz.yscbdw, null, xz.cbdw, xz.yscbdw), decode(xz.yscbr, null, xz.zbmj, xz.yscbr), cast('02' as varchar2(2)) as ajlx, xz.operatetime from t_aj_xzajfaxx xz where xz.ajzt <> '3210' and exists (select 1 from t_doc_processinstance ce, t_doc_processinstanceex ex, t_doc_approvalrecord app where ce.id = ex.processinstanceid and ce.id = app.instanceid and app.approvalstage in ('01', '02', '06') and (ce.status = '99' or ce.status = '98' and ce.processcode = 'CQTZSPB') and ex.exkey = 'AJBH' and ex.exvalue = xz.ajbh and app.operatercode = :4 and exists (select 1 from t_aj_xzajrydy rydy inner join t_ry_saryjbxx ryxx on rydy.rybh = ryxx.rybh where xz.ajbh = rydy.ajbh and ryxx.ryxm like '%???%' ) ) ) ) |
4k09zx6340r51 |
SELECT COUNT(*) as CT FROM (select distinct ajbh, ajmc, cbdw, cbr, ajlx, operatetime from (select xs.ajbh, xs.ajmc, decode(xs.yscbdw, null, xs.cbdw, xs.yscbdw) as cbdw, decode(xs.yscbr, null, xs.cbr, xs.yscbr) as cbr, cast('01' as varchar2(2)) as ajlx, xs.operatetime from t_aj_xsajfaxx xs where xs.ajzt <> '2904' and exists (select 1 from T_AJ_Baz baz, T_AJ_Bazcyxx bazcyxx where baz.zbh = bazcyxx.zbh and baz.ajbh = xs.ajbh and bazcyxx.bamjzh = :1) and exists (select 1 from t_aj_xsajrydy rydy inner join t_ry_saryjbxx ryxx on rydy.rybh = ryxx.rybh where xs.ajbh = rydy.ajbh and ryxx.ryxm like '%??%' ) union all select xs.ajbh, xs.ajmc, decode(xs.yscbdw, null, xs.cbdw, xs.yscbdw) as cbdw, decode(xs.yscbr, null, xs.cbr, xs.yscbr) as cbr, cast('01' as varchar2(2)) as ajlx, xs.operatetime from t_aj_xsajfaxx xs where xs.ajzt <> '2904' and exists (select 1 from t_doc_processinstance ce, t_doc_processinstanceex ex, t_doc_approvalrecord app where ce.id = ex.processinstanceid and ce.id = app.instanceid and app.approvalstage in ('01', '02', '06') and ce.status = '99' and ex.exkey = 'AJBH' and ex.exvalue = xs.ajbh and app.operatercode = :2 and exists (select 1 from t_aj_xsajrydy rydy inner join t_ry_saryjbxx ryxx on rydy.rybh = ryxx.rybh where xs.ajbh = rydy.ajbh and ryxx.ryxm like '%??%' ) ) union all select xz.ajbh, xz.ajmc, decode(xz.yscbdw, null, xz.cbdw, xz.yscbdw), decode(xz.yscbr
, null, xz.zbmj, xz.yscbr), cast('02' as varchar2(2)) as ajlx, xz.operatetime from t_aj_xzajfaxx xz where xz.ajzt <> '3210' and exists (select 1 from T_AJ_Baz baz, T_AJ_Bazcyxx bazcyxx where baz.zbh = bazcyxx.zbh and baz.ajbh = xz.ajbh and bazcyxx.bamjzh = :3) and exists (select 1 from t_aj_xzajrydy rydy inner join t_ry_saryjbxx ryxx on rydy.rybh = ryxx.rybh where xz.ajbh = rydy.ajbh and ryxx.ryxm like '%??%' ) union all select xz.ajbh, xz.ajmc, decode(xz.yscbdw, null, xz.cbdw, xz.yscbdw), decode(xz.yscbr, null, xz.zbmj, xz.yscbr), cast('02' as varchar2(2)) as ajlx, xz.operatetime from t_aj_xzajfaxx xz where xz.ajzt <> '3210' and exists (select 1 from t_doc_processinstance ce, t_doc_processinstanceex ex, t_doc_approvalrecord app where ce.id = ex.processinstanceid and ce.id = app.instanceid and app.approvalstage in ('01', '02', '06') and (ce.status = '99' or ce.status = '98' and ce.processcode = 'CQTZSPB') and ex.exkey = 'AJBH' and ex.exvalue = xz.ajbh and app.operatercode = :4 and exists (select 1 from t_aj_xzajrydy rydy inner join t_ry_saryjbxx ryxx on rydy.rybh = ryxx.rybh where xz.ajbh = rydy.ajbh and ryxx.ryxm like '%??%' ) ) ) ) |
4kgr7nfjjtp4n | insert into T_DOC_PROCESSINSTANCEEX (PROCESSINSTANCEID, EXKEY, EXVALUE, ID) values (:1, :2, :3, :4) |
4um6skz42bnu8 | update BJCICBB.T_INFO_CRMNLCS@BJCIC tardata set (REPORTER, REPTSEXID, REPTAGE, REPTIDCARD, REPTTEL, REPTDEPT, REPTLIVID, REPTLIVADDR) = (select SUBSTRB(RYXM, 1, 30), RYXBID, RYNL, case when RYZJZL='111' then SUBSTRB(RYZLHM, 1, 25) else '' end, SUBSTRB(DH, 1, 32), GZDW, BJCICBB.transCode@BJCIC('XZQH', JZDID), SUBSTRB(JZDXZ, 1, 100) from (select sary.ID, sary.AJBH, sary.RYBH, sary.RYXM, sary.RYXBID, sary.RYNL, sary.RYZJZL, sary.RYZLHM, jjry.DH, jjry.GZDW, jjry.JZDID, jjry.JZDXZ, sary.OPERATETIME from T_RY_SARYJBXX sary, T_RY_JJRYXX jjry where sary.RYLX='01' and sary.RYBH=jjry.RYBH) srcdata where srcdata.AJBH = tardata.CASNO and exists(select 1 from T_TB_TBHC tbhc where tbhc.TABMAPID='SARYJBXXTAB0001' and tbhc.DELFLAG='U' and tbhc.DATAID=srcdata.ID)) where exists(select 1 from BJCICBB.T_TB_TBHC@BJCIC tbhc where tbhc.TABMAPID='SARYJBXXTAB0001' and tbhc.DELFLAG='U' and tbhc.BUSINO0 = tardata.CASNO) |
54avhkahj7qhp | select substr(:1, 9, 2) from dual |
56pkr52ytrku1 | SELECT COUNT(*) as CT from T_AJ_JJDJ j left join T_AJ_JJAJGLXX gl on j.id = gl.jjid where j.SFYCLID = '1' and j.jbsj >= to_Date(:1, 'yyyy-MM-dd hh24:mi:ss') and j.jbsj <= to_Date(:2, 'yyyy-MM-dd hh24:mi:ss') and (j.jbdwid =:3 or j.cbdw = :4 ) and j.cbr like :5 |
5drtba529c9u5 | select * from ( select faxx.ajbh, faxx.ajmc, ryxx.xm, jjdj.jbsj from t_aj_xsajfaxx faxx, t_ry_jjryxx ryxx, t_aj_jjdj jjdj, t_aj_jjajglxx glxx where glxx.jjid = ryxx.jjid and glxx.asjbh = faxx.ajbh and jjdj.id= ryxx.jjid and glxx.asjlx='01' and ryxx.rylx='01' and faxx.ajzt not in ('2904', '3220') and ryxx.xm like :1 ) where rownum <= :2 |
5gkjhk7srhf63 |
select processins0_.ID as ID207_, processins0_.DATAVERSION as DATAVERS2_207_, processins0_.INSTANCENAME as INSTANCE3_207_, processins0_.PROCESSCODE as PROCESSC4_207_, processins0_.STATUS as STATUS207_, processins0_.INSTANCETYPE as INSTANCE6_207_, processins0_.OWNORG as OWNORG207_, processins0_.OWNPOSITION as OWNPOSIT8_207_, processins0_.OWNER as OWNER207_, processins0_.OWNERTYPE as OWNERTYPE207_, processins0_.LASTACTOR as LASTACTOR207_, processins0_.STARTER as STARTER207_, processins0_.STARTTIME as STARTTIME207_, processins0_.ENDER as ENDER207_, processins0_.CREATEDATE as CREATEDATE207_, processins0_.WSKJZT as WSKJZT207_, processins0_.XBZT as XBZT207_, processins0_.ENDTIME as ENDTIME207_, processins0_.FEATURENAME as FEATURE19_207_, processins0_.OPERATERCODE as OPERATE20_207_, processins0_.OPERATETIME as OPERATE21_207_, processins0_.DELFLAG as DELFLAG207_, processins0_.ORGID as ORGID207_, processins0_.LOGINID as LOGINID207_, processins0_.USERNAME as USERNAME207_, processins0_.LOGINORGCODE as LOGINOR26_207_, processins0_.LOGINORGNAME as LOGINOR27_207_, processins0_.INSTCODE as INSTCODE207_, processins0_.ZCDB as ZCDB207_, processins0_.ENDAUDITIME as ENDAUDI30_207_, processins0_.JJCLCSFLG as JJCLCSFLG207_, processins0_.NODE as NODE207_, processins0_.PROCESSID as PROCESSID207_ from T_DOC_PROCESSINSTANCE processins0_, T_DOC_PROCESSINSTANCEEX processins1_, T_DOC_PROCESSINSTANCEEX processins2_ where processins0_.ID=processins1_.PROCESSINSTANCEID and
processins0_.ID=processins2_.PROCESSINSTANCEID and processins2_.PROCESSINSTANCEID=processins1_.PROCESSINSTANCEID and processins0_.INSTANCETYPE=:1 and processins1_.EXKEY='AJBH' and processins1_.EXVALUE=:2 and processins2_.EXKEY='RYBH' and processins2_.EXVALUE=:3 order by processins0_.STARTTIME desc |
5pkhnyz04kynf | select count(*) as CT from t_ajgk_gkcqb cq where cq.spztid = '03' and exists(select org.id from t_sys_organization org where org.treepath like :1 and cq.cqdwid = org.orgcode) |
5qs3cg30hfcf9 |
select * from ( select distinct ajbh, ajmc, cbdw, cbr, ajlx, operatetime from (select xs.ajbh, xs.ajmc, decode(xs.yscbdw, null, xs.cbdw, xs.yscbdw) as cbdw, decode(xs.yscbr, null, xs.cbr, xs.yscbr) as cbr, cast('01' as varchar2(2)) as ajlx, xs.operatetime from t_aj_xsajfaxx xs where xs.ajzt <> '2904' and exists (select 1 from T_AJ_Baz baz, T_AJ_Bazcyxx bazcyxx where baz.zbh = bazcyxx.zbh and baz.ajbh = xs.ajbh and bazcyxx.bamjzh = :1) and exists (select 1 from t_aj_xsajrydy rydy inner join t_ry_saryjbxx ryxx on rydy.rybh = ryxx.rybh where xs.ajbh = rydy.ajbh and ryxx.ryxm like '%???%' ) union all select xs.ajbh, xs.ajmc, decode(xs.yscbdw, null, xs.cbdw, xs.yscbdw) as cbdw, decode(xs.yscbr, null, xs.cbr, xs.yscbr) as cbr, cast('01' as varchar2(2)) as ajlx, xs.operatetime from t_aj_xsajfaxx xs where xs.ajzt <> '2904' and exists (select 1 from t_doc_processinstance ce, t_doc_processinstanceex ex, t_doc_approvalrecord app where ce.id = ex.processinstanceid and ce.id = app.instanceid and app.approvalstage in ('01', '02', '06') and ce.status = '99' and ex.exkey = 'AJBH' and ex.exvalue = xs.ajbh and app.operatercode = :2 and exists (select 1 from t_aj_xsajrydy rydy inner join t_ry_saryjbxx ryxx on rydy.rybh = ryxx.rybh where xs.ajbh = rydy.ajbh and ryxx.ryxm like '%???%' ) ) union all select xz.ajbh, xz.ajmc, decode(xz.yscbdw, null, xz.cbdw, xz.yscbdw), decode(xz.yscbr, null,
xz.zbmj, xz.yscbr), cast('02' as varchar2(2)) as ajlx, xz.operatetime from t_aj_xzajfaxx xz where xz.ajzt <> '3210' and exists (select 1 from T_AJ_Baz baz, T_AJ_Bazcyxx bazcyxx where baz.zbh = bazcyxx.zbh and baz.ajbh = xz.ajbh and bazcyxx.bamjzh = :3) and exists (select 1 from t_aj_xzajrydy rydy inner join t_ry_saryjbxx ryxx on rydy.rybh = ryxx.rybh where xz.ajbh = rydy.ajbh and ryxx.ryxm like '%???%' ) union all select xz.ajbh, xz.ajmc, decode(xz.yscbdw, null, xz.cbdw, xz.yscbdw), decode(xz.yscbr, null, xz.zbmj, xz.yscbr), cast('02' as varchar2(2)) as ajlx, xz.operatetime from t_aj_xzajfaxx xz where xz.ajzt <> '3210' and exists (select 1 from t_doc_processinstance ce, t_doc_processinstanceex ex, t_doc_approvalrecord app where ce.id = ex.processinstanceid and ce.id = app.instanceid and app.approvalstage in ('01', '02', '06') and (ce.status = '99' or ce.status = '98' and ce.processcode = 'CQTZSPB') and ex.exkey = 'AJBH' and ex.exvalue = xz.ajbh and app.operatercode = :4 and exists (select 1 from t_aj_xzajrydy rydy inner join t_ry_saryjbxx ryxx on rydy.rybh = ryxx.rybh where xz.ajbh = rydy.ajbh and ryxx.ryxm like '%???%' ) ) ) order by operatetime desc ) where rownum <= :5 |
5rknyqf0w4zq2 |
select * from ( select distinct ajbh, ajmc, cbdw, cbr, ajlx, operatetime from (select xs.ajbh, xs.ajmc, decode(xs.yscbdw, null, xs.cbdw, xs.yscbdw) as cbdw, decode(xs.yscbr, null, xs.cbr, xs.yscbr) as cbr, cast('01' as varchar2(2)) as ajlx, xs.operatetime from t_aj_xsajfaxx xs where xs.ajzt <> '2904' and exists (select 1 from T_AJ_Baz baz, T_AJ_Bazcyxx bazcyxx where baz.zbh = bazcyxx.zbh and baz.ajbh = xs.ajbh and bazcyxx.bamjzh = :1) and exists (select 1 from t_aj_xsajrydy rydy inner join t_ry_saryjbxx ryxx on rydy.rybh = ryxx.rybh where xs.ajbh = rydy.ajbh and ryxx.ryxm like '%??%' ) union all select xs.ajbh, xs.ajmc, decode(xs.yscbdw, null, xs.cbdw, xs.yscbdw) as cbdw, decode(xs.yscbr, null, xs.cbr, xs.yscbr) as cbr, cast('01' as varchar2(2)) as ajlx, xs.operatetime from t_aj_xsajfaxx xs where xs.ajzt <> '2904' and exists (select 1 from t_doc_processinstance ce, t_doc_processinstanceex ex, t_doc_approvalrecord app where ce.id = ex.processinstanceid and ce.id = app.instanceid and app.approvalstage in ('01', '02', '06') and ce.status = '99' and ex.exkey = 'AJBH' and ex.exvalue = xs.ajbh and app.operatercode = :2 and exists (select 1 from t_aj_xsajrydy rydy inner join t_ry_saryjbxx ryxx on rydy.rybh = ryxx.rybh where xs.ajbh = rydy.ajbh and ryxx.ryxm like '%??%' ) ) union all select xz.ajbh, xz.ajmc, decode(xz.yscbdw, null, xz.cbdw, xz.yscbdw), decode(xz.yscbr, null, xz
.zbmj, xz.yscbr), cast('02' as varchar2(2)) as ajlx, xz.operatetime from t_aj_xzajfaxx xz where xz.ajzt <> '3210' and exists (select 1 from T_AJ_Baz baz, T_AJ_Bazcyxx bazcyxx where baz.zbh = bazcyxx.zbh and baz.ajbh = xz.ajbh and bazcyxx.bamjzh = :3) and exists (select 1 from t_aj_xzajrydy rydy inner join t_ry_saryjbxx ryxx on rydy.rybh = ryxx.rybh where xz.ajbh = rydy.ajbh and ryxx.ryxm like '%??%' ) union all select xz.ajbh, xz.ajmc, decode(xz.yscbdw, null, xz.cbdw, xz.yscbdw), decode(xz.yscbr, null, xz.zbmj, xz.yscbr), cast('02' as varchar2(2)) as ajlx, xz.operatetime from t_aj_xzajfaxx xz where xz.ajzt <> '3210' and exists (select 1 from t_doc_processinstance ce, t_doc_processinstanceex ex, t_doc_approvalrecord app where ce.id = ex.processinstanceid and ce.id = app.instanceid and app.approvalstage in ('01', '02', '06') and (ce.status = '99' or ce.status = '98' and ce.processcode = 'CQTZSPB') and ex.exkey = 'AJBH' and ex.exvalue = xz.ajbh and app.operatercode = :4 and exists (select 1 from t_aj_xzajrydy rydy inner join t_ry_saryjbxx ryxx on rydy.rybh = ryxx.rybh where xz.ajbh = rydy.ajbh and ryxx.ryxm like '%??%' ) ) ) order by operatetime desc ) where rownum <= :5 |
5sytn3mc2zuzc | select * from ( select j.jcjbh, j.id, j.barmc, j.badwmc, j.jbsj, j.fynr , j.ajlyid , j.sazt, j.cbr, (case when gl.cljg is null then j.cljg else gl.cljg end) cljg, j.bjlxid, gl.asjbh, j.jjlxbj, gl.clsj, gl.INSTID from T_AJ_JJDJ j left join T_AJ_JJAJGLXX gl on j.id = gl.jjid where j.SFYCLID = '1' and j.jbsj >= to_Date(:1, 'yyyy-MM-dd hh24:mi:ss') and j.jbsj <= to_Date(:2, 'yyyy-MM-dd hh24:mi:ss') and (j.jbdwid =:3 or j.cbdw = :4 ) and j.cbr like :5 order by j.jbsj desc ) where rownum <= :6 |
61ma8q5gtfx6g |
select * from ( select distinct ajbh, ajmc, cbdw, cbr, ajlx, operatetime from (select xs.ajbh, xs.ajmc, decode(xs.yscbdw, null, xs.cbdw, xs.yscbdw) as cbdw, decode(xs.yscbr, null, xs.cbr, xs.yscbr) as cbr, cast('01' as varchar2(2)) as ajlx, xs.operatetime from t_aj_xsajfaxx xs where xs.ajzt <> '2904' and exists (select 1 from T_AJ_Baz baz, T_AJ_Bazcyxx bazcyxx where baz.zbh = bazcyxx.zbh and baz.ajbh = xs.ajbh and bazcyxx.bamjzh = :1) and exists (select 1 from t_aj_xsajrydy rydy inner join t_ry_saryjbxx ryxx on rydy.rybh = ryxx.rybh where xs.ajbh = rydy.ajbh and ryxx.ryxm like '%??%' ) union all select xs.ajbh, xs.ajmc, decode(xs.yscbdw, null, xs.cbdw, xs.yscbdw) as cbdw, decode(xs.yscbr, null, xs.cbr, xs.yscbr) as cbr, cast('01' as varchar2(2)) as ajlx, xs.operatetime from t_aj_xsajfaxx xs where xs.ajzt <> '2904' and exists (select 1 from t_doc_processinstance ce, t_doc_processinstanceex ex, t_doc_approvalrecord app where ce.id = ex.processinstanceid and ce.id = app.instanceid and app.approvalstage in ('01', '02', '06') and ce.status = '99' and ex.exkey = 'AJBH' and ex.exvalue = xs.ajbh and app.operatercode = :2 and exists (select 1 from t_aj_xsajrydy rydy inner join t_ry_saryjbxx ryxx on rydy.rybh = ryxx.rybh where xs.ajbh = rydy.ajbh and ryxx.ryxm like '%??%' ) ) union all select xz.ajbh, xz.ajmc, decode(xz.yscbdw, null, xz.cbdw, xz.yscbdw), decode(xz.yscbr, null, xz
.zbmj, xz.yscbr), cast('02' as varchar2(2)) as ajlx, xz.operatetime from t_aj_xzajfaxx xz where xz.ajzt <> '3210' and exists (select 1 from T_AJ_Baz baz, T_AJ_Bazcyxx bazcyxx where baz.zbh = bazcyxx.zbh and baz.ajbh = xz.ajbh and bazcyxx.bamjzh = :3) and exists (select 1 from t_aj_xzajrydy rydy inner join t_ry_saryjbxx ryxx on rydy.rybh = ryxx.rybh where xz.ajbh = rydy.ajbh and ryxx.ryxm like '%??%' ) union all select xz.ajbh, xz.ajmc, decode(xz.yscbdw, null, xz.cbdw, xz.yscbdw), decode(xz.yscbr, null, xz.zbmj, xz.yscbr), cast('02' as varchar2(2)) as ajlx, xz.operatetime from t_aj_xzajfaxx xz where xz.ajzt <> '3210' and exists (select 1 from t_doc_processinstance ce, t_doc_processinstanceex ex, t_doc_approvalrecord app where ce.id = ex.processinstanceid and ce.id = app.instanceid and app.approvalstage in ('01', '02', '06') and (ce.status = '99' or ce.status = '98' and ce.processcode = 'CQTZSPB') and ex.exkey = 'AJBH' and ex.exvalue = xz.ajbh and app.operatercode = :4 and exists (select 1 from t_aj_xzajrydy rydy inner join t_ry_saryjbxx ryxx on rydy.rybh = ryxx.rybh where xz.ajbh = rydy.ajbh and ryxx.ryxm like '%??%' ) ) ) order by operatetime desc ) where rownum <= :5 |
66088sp6a5jh6 |
select * from ( select distinct ajbh, ajmc, cbdw, cbr, ajlx, operatetime from (select xs.ajbh, xs.ajmc, decode(xs.yscbdw, null, xs.cbdw, xs.yscbdw) as cbdw, decode(xs.yscbr, null, xs.cbr, xs.yscbr) as cbr, cast('01' as varchar2(2)) as ajlx, xs.operatetime from t_aj_xsajfaxx xs where xs.ajzt <> '2904' and exists (select 1 from T_AJ_Baz baz, T_AJ_Bazcyxx bazcyxx where baz.zbh = bazcyxx.zbh and baz.ajbh = xs.ajbh and bazcyxx.bamjzh = :1) and exists (select 1 from t_aj_xsajrydy rydy inner join t_ry_saryjbxx ryxx on rydy.rybh = ryxx.rybh where xs.ajbh = rydy.ajbh and ryxx.ryxm like '%??%' ) union all select xs.ajbh, xs.ajmc, decode(xs.yscbdw, null, xs.cbdw, xs.yscbdw) as cbdw, decode(xs.yscbr, null, xs.cbr, xs.yscbr) as cbr, cast('01' as varchar2(2)) as ajlx, xs.operatetime from t_aj_xsajfaxx xs where xs.ajzt <> '2904' and exists (select 1 from t_doc_processinstance ce, t_doc_processinstanceex ex, t_doc_approvalrecord app where ce.id = ex.processinstanceid and ce.id = app.instanceid and app.approvalstage in ('01', '02', '06') and ce.status = '99' and ex.exkey = 'AJBH' and ex.exvalue = xs.ajbh and app.operatercode = :2 and exists (select 1 from t_aj_xsajrydy rydy inner join t_ry_saryjbxx ryxx on rydy.rybh = ryxx.rybh where xs.ajbh = rydy.ajbh and ryxx.ryxm like '%??%' ) ) union all select xz.ajbh, xz.ajmc, decode(xz.yscbdw, null, xz.cbdw, xz.yscbdw), decode(xz.yscbr, null, xz
.zbmj, xz.yscbr), cast('02' as varchar2(2)) as ajlx, xz.operatetime from t_aj_xzajfaxx xz where xz.ajzt <> '3210' and exists (select 1 from T_AJ_Baz baz, T_AJ_Bazcyxx bazcyxx where baz.zbh = bazcyxx.zbh and baz.ajbh = xz.ajbh and bazcyxx.bamjzh = :3) and exists (select 1 from t_aj_xzajrydy rydy inner join t_ry_saryjbxx ryxx on rydy.rybh = ryxx.rybh where xz.ajbh = rydy.ajbh and ryxx.ryxm like '%??%' ) union all select xz.ajbh, xz.ajmc, decode(xz.yscbdw, null, xz.cbdw, xz.yscbdw), decode(xz.yscbr, null, xz.zbmj, xz.yscbr), cast('02' as varchar2(2)) as ajlx, xz.operatetime from t_aj_xzajfaxx xz where xz.ajzt <> '3210' and exists (select 1 from t_doc_processinstance ce, t_doc_processinstanceex ex, t_doc_approvalrecord app where ce.id = ex.processinstanceid and ce.id = app.instanceid and app.approvalstage in ('01', '02', '06') and (ce.status = '99' or ce.status = '98' and ce.processcode = 'CQTZSPB') and ex.exkey = 'AJBH' and ex.exvalue = xz.ajbh and app.operatercode = :4 and exists (select 1 from t_aj_xzajrydy rydy inner join t_ry_saryjbxx ryxx on rydy.rybh = ryxx.rybh where xz.ajbh = rydy.ajbh and ryxx.ryxm like '%??%' ) ) ) order by operatetime desc ) where rownum <= :5 |
6db93fr2twtrn |
SELECT COUNT(*) as CT FROM (select distinct ajbh, ajmc, cbdw, cbr, ajlx, operatetime from (select xs.ajbh, xs.ajmc, decode(xs.yscbdw, null, xs.cbdw, xs.yscbdw) as cbdw, decode(xs.yscbr, null, xs.cbr, xs.yscbr) as cbr, cast('01' as varchar2(2)) as ajlx, xs.operatetime from t_aj_xsajfaxx xs where xs.ajzt <> '2904' and exists (select 1 from T_AJ_Baz baz, T_AJ_Bazcyxx bazcyxx where baz.zbh = bazcyxx.zbh and baz.ajbh = xs.ajbh and bazcyxx.bamjzh = :1) and exists (select 1 from t_aj_xsajrydy rydy inner join t_ry_saryjbxx ryxx on rydy.rybh = ryxx.rybh where xs.ajbh = rydy.ajbh and ryxx.ryxm like '%??%' ) union all select xs.ajbh, xs.ajmc, decode(xs.yscbdw, null, xs.cbdw, xs.yscbdw) as cbdw, decode(xs.yscbr, null, xs.cbr, xs.yscbr) as cbr, cast('01' as varchar2(2)) as ajlx, xs.operatetime from t_aj_xsajfaxx xs where xs.ajzt <> '2904' and exists (select 1 from t_doc_processinstance ce, t_doc_processinstanceex ex, t_doc_approvalrecord app where ce.id = ex.processinstanceid and ce.id = app.instanceid and app.approvalstage in ('01', '02', '06') and ce.status = '99' and ex.exkey = 'AJBH' and ex.exvalue = xs.ajbh and app.operatercode = :2 and exists (select 1 from t_aj_xsajrydy rydy inner join t_ry_saryjbxx ryxx on rydy.rybh = ryxx.rybh where xs.ajbh = rydy.ajbh and ryxx.ryxm like '%??%' ) ) union all select xz.ajbh, xz.ajmc, decode(xz.yscbdw, null, xz.cbdw, xz.yscbdw), decode(xz.yscbr
, null, xz.zbmj, xz.yscbr), cast('02' as varchar2(2)) as ajlx, xz.operatetime from t_aj_xzajfaxx xz where xz.ajzt <> '3210' and exists (select 1 from T_AJ_Baz baz, T_AJ_Bazcyxx bazcyxx where baz.zbh = bazcyxx.zbh and baz.ajbh = xz.ajbh and bazcyxx.bamjzh = :3) and exists (select 1 from t_aj_xzajrydy rydy inner join t_ry_saryjbxx ryxx on rydy.rybh = ryxx.rybh where xz.ajbh = rydy.ajbh and ryxx.ryxm like '%??%' ) union all select xz.ajbh, xz.ajmc, decode(xz.yscbdw, null, xz.cbdw, xz.yscbdw), decode(xz.yscbr, null, xz.zbmj, xz.yscbr), cast('02' as varchar2(2)) as ajlx, xz.operatetime from t_aj_xzajfaxx xz where xz.ajzt <> '3210' and exists (select 1 from t_doc_processinstance ce, t_doc_processinstanceex ex, t_doc_approvalrecord app where ce.id = ex.processinstanceid and ce.id = app.instanceid and app.approvalstage in ('01', '02', '06') and (ce.status = '99' or ce.status = '98' and ce.processcode = 'CQTZSPB') and ex.exkey = 'AJBH' and ex.exvalue = xz.ajbh and app.operatercode = :4 and exists (select 1 from t_aj_xzajrydy rydy inner join t_ry_saryjbxx ryxx on rydy.rybh = ryxx.rybh where xz.ajbh = rydy.ajbh and ryxx.ryxm like '%??%' ) ) ) ) |
6dv3fp3hrz0ch |
select * from ( select distinct ajbh, ajmc, cbdw, cbr, ajlx, operatetime from (select xs.ajbh, xs.ajmc, decode(xs.yscbdw, null, xs.cbdw, xs.yscbdw) as cbdw, decode(xs.yscbr, null, xs.cbr, xs.yscbr) as cbr, cast('01' as varchar2(2)) as ajlx, xs.operatetime from t_aj_xsajfaxx xs where xs.ajzt <> '2904' and exists (select 1 from T_AJ_Baz baz, T_AJ_Bazcyxx bazcyxx where baz.zbh = bazcyxx.zbh and baz.ajbh = xs.ajbh and bazcyxx.bamjzh = :1) and exists (select 1 from t_aj_xsajrydy rydy inner join t_ry_saryjbxx ryxx on rydy.rybh = ryxx.rybh where xs.ajbh = rydy.ajbh and ryxx.rybh = 'Q1101085800002013110018' ) union all select xs.ajbh, xs.ajmc, decode(xs.yscbdw, null, xs.cbdw, xs.yscbdw) as cbdw, decode(xs.yscbr, null, xs.cbr, xs.yscbr) as cbr, cast('01' as varchar2(2)) as ajlx, xs.operatetime from t_aj_xsajfaxx xs where xs.ajzt <> '2904' and exists (select 1 from t_doc_processinstance ce, t_doc_processinstanceex ex, t_doc_approvalrecord app where ce.id = ex.processinstanceid and ce.id = app.instanceid and app.approvalstage in ('01', '02', '06') and ce.status = '99' and ex.exkey = 'AJBH' and ex.exvalue = xs.ajbh and app.operatercode = :2 and exists (select 1 from t_aj_xsajrydy rydy inner join t_ry_saryjbxx ryxx on rydy.rybh = ryxx.rybh where xs.ajbh = rydy.ajbh and ryxx.rybh = 'Q1101085800002013110018' ) ) union all select xz.ajbh, xz.ajmc, decode(xz.yscbdw, null, xz.cbdw, xz.yscb
dw), decode(xz.yscbr, null, xz.zbmj, xz.yscbr), cast('02' as varchar2(2)) as ajlx, xz.operatetime from t_aj_xzajfaxx xz where xz.ajzt <> '3210' and exists (select 1 from T_AJ_Baz baz, T_AJ_Bazcyxx bazcyxx where baz.zbh = bazcyxx.zbh and baz.ajbh = xz.ajbh and bazcyxx.bamjzh = :3) and exists (select 1 from t_aj_xzajrydy rydy inner join t_ry_saryjbxx ryxx on rydy.rybh = ryxx.rybh where xz.ajbh = rydy.ajbh and ryxx.rybh = 'Q1101085800002013110018' ) union all select xz.ajbh, xz.ajmc, decode(xz.yscbdw, null, xz.cbdw, xz.yscbdw), decode(xz.yscbr, null, xz.zbmj, xz.yscbr), cast('02' as varchar2(2)) as ajlx, xz.operatetime from t_aj_xzajfaxx xz where xz.ajzt <> '3210' and exists (select 1 from t_doc_processinstance ce, t_doc_processinstanceex ex, t_doc_approvalrecord app where ce.id = ex.processinstanceid and ce.id = app.instanceid and app.approvalstage in ('01', '02', '06') and (ce.status = '99' or ce.status = '98' and ce.processcode = 'CQTZSPB') and ex.exkey = 'AJBH' and ex.exvalue = xz.ajbh and app.operatercode = :4 and exists (select 1 from t_aj_xzajrydy rydy inner join t_ry_saryjbxx ryxx on rydy.rybh = ryxx.rybh where xz.ajbh = rydy.ajbh and ryxx.rybh = 'Q1101085800002013110018' ) ) ) order by operatetime desc ) where rownum <= :5
|
6gajtph8ypzuw | select node0_.NODECODE as col_0_0_ from T_MSG_NODE node0_ where node0_.STATE=:1 |
6kanqz0f6uhpv | select * from ( select row_.*, rownum rownum_ from ( select yjxxb0_.ID as ID261_, yjxxb0_.DATAVERSION as DATAVERS2_261_, yjxxb0_.DXBH as DXBH261_, yjxxb0_.DXLX as DXLX261_, yjxxb0_.YJDW as YJDW261_, yjxxb0_.YJJZSJ as YJJZSJ261_, yjxxb0_.YJZQX as YJZQX261_, yjxxb0_.YJZQXDW as YJZQXDW261_, yjxxb0_.JSSJ as JSSJ261_, yjxxb0_.YJJSLX as YJJSLX261_, yjxxb0_.YJDQSJ as YJDQSJ261_, yjxxb0_.YJZT as YJZT261_, yjxxb0_.CQZT as CQZT261_, yjxxb0_.SCBJ as SCBJ261_, yjxxb0_.OPERATETIME as OPERATE15_261_, yjxxb0_.OPERATERCODE as OPERATE16_261_, yjxxb0_.DELFLAG as DELFLAG261_, yjxxb0_.ORGID as ORGID261_, yjxxb0_.CQDM as CQDM261_, yjxxb0_.CQMC as CQMC261_, yjxxb0_.AJBH as AJBH261_, yjxxb0_.ZBH as ZBH261_, yjxxb0_.CQID as CQID261_, yjxxb0_.YJTSXX as YJTSXX261_, yjxxb0_.CQTSXX as CQTSXX261_ from T_YJ_YJXXB yjxxb0_ order by yjxxb0_.OPERATETIME ) row_ where rownum <= :1) where rownum_ > :2 |
6kz5m84cw3cz9 | SELECT COUNT(*) as CT from (select docins.id docid, docins.templateid tid, docins.processinstanceid pid, pro.instcode dxbh, pro.processcode cqty, (case when tem.templatetype = '02' then tem.templatename else(select b.processname from t_doc_busiprocess b where b.id = pro.processid)end) wsmc, pro.username cqr, pro.loginorgname cqdw, pro.starttime cqtime, docins.docstatus, docins.doctype, pro.id, docins.docUrl, tem.templatetype templatetype, tem.html html from t_doc_docinstance docins, t_doc_processinstance pro, t_doc_template tem where docins.processinstanceid = pro.id and docins.docstatus in ('02', '03') and tem.id = docins.templateid and docins.orgid in (select o.orgcode from t_sys_organization o where o.treepath like :1)) where 1=1 and wsmc = :2 |
6nspnbg357amt | insert into BJCICBB.T_INFO_GOODSBASEINFO@BJCIC(ID, GOODSNO, GOODSNAME, GOODSTYPEID, DELFLAG, OPERATETIME, OPERATERID, ORGID, FLAG, CASENO, CASEID, GOODSVALUES, GOODSID, CLASSID, CASETYPE, RMK1, RMK2, DATALEVEL, ISSECRECY, PHOTOID) select BJCICBB.HIBERNATE_SEQUENCE.NEXTVAL@BJCIC, WPBH, SUBSTRB(WPMC, 1, 40), BJCICBB.transCode@BJCIC('WPZL', WPZLID), 'A', CAST(OPERATETIME AS DATE), BJCICBB.transCode@BJCIC('ZZYID', OPERATERCODE), BJCICBB.transCode@BJCIC('ORGID', ORGID), AJJDBJ, AJBH, -1, WPJZ, -1, WPFLID, BJCICBB.transCode@BJCIC('WPXXAJLX', AJLX), BYZD1, BYZD2, BMJB, SFBM, FILEID from (select wp.*, flmap.FILEID from T_WP_WPJBXX wp left join T_TB_UPLOADFILESMAP flmap on wp.ZPID=flmap.DATAID) srcdata where exists(select 1 from T_TB_TBHC tbhc where tbhc.TABMAPID='WPJBXXTAB0001' and tbhc.DELFLAG='A' and tbhc.DATAID=srcdata.ID) and OperateTime<=:1 |
6q0xjavcf566c | SELECT id, TEMPLATEID, PROCESSINSTANCEID, DOCSTATUS, DELFLAG, ORGID, OPERATERCODE, OPERATETIME, RELATIONTYPE FROM T_DOC_DOCINSTANCE
WHERE operatetime >=:1
order by operatetime asc
|
6y3kh3tt2skq0 | SELECT COUNT(*) as CT from t_ry_saryjbxx ry where ry.rylx in ('04', '05') and ry.ryxm like :1 |
70yk7f14hjfdy | insert into T_TB_TBHC(ID, TABMAPID, ROWNO, DATAID, ORADATAID, BUSINO0, BUSINO1, BUSINO2, BUSINO3, BUSINO4, BUSINO5, BUSIID0, BUSIID1, BUSIID2, BUSIID3, BUSIID4, BUSIID5, OPERATERCODE, OPERATETIME, DELFLAG, ORGID, DATAVERSION) select sys_guid(), 'WFFZRYXXTAB0601', row_number() over(order by ry.OPERATETIME) ROWNO, ry.ID DATAID, null, ry.RYBH, null, null, null, null, null, null, null, null, null, null, null, null, ry.OPERATETIME, 'U', null, 0 from T_RY_WFFZRYXX ry join T_TB_UPLOADFILESMAP flmap on ry.ZPID=flmap.DATAID where ry.OPERATETIME>:1 and ry.OPERATETIME<=:2 |
77z7b7db82pus | SELECT COUNT(*) as CT from ( select wp.ajbh, xs.ajmc, wp.wpbh, wp.wpmc, wp.wpxz, cy.dwid, cy.bamjxm, wp.gllx, wp.gldxid from t_wp_wpjbxx wp inner join t_aj_xsajfaxx xs on wp.ajbh = xs.ajbh inner join t_aj_baz baz on baz.ajbh = wp.ajbh inner join t_aj_bazcyxx cy on cy.zbh = baz.zbh where wp.rdbh is null and wp.wpflid in ('2', '3', '4') and cy.sfzb = '1' and baz.xjbs = '1' and baz.zbh = (select max(zbh) from t_aj_baz z where z.ajbh = wp.ajbh) and wp.wpzlid = :1 union (select wp.ajbh, xz.ajmc, wp.wpbh, wp.wpmc, wp.wpxz, cy.dwid, cy.bamjxm, wp.gllx, wp.gldxid from t_wp_wpjbxx wp inner join t_aj_xzajfaxx xz on wp.ajbh = xz.ajbh inner join t_aj_baz baz on baz.ajbh = wp.ajbh inner join t_aj_bazcyxx cy on cy.zbh = baz.zbh where wp.rdbh is null and wp.wpflid in ('2', '3', '4') and cy.sfzb = '1' and baz.xjbs = '1' and baz.zbh = (select max(zbh) from t_aj_baz z where z.ajbh = wp.ajbh) and wp.wpzlid = :2 )union (select wp.ajbh, '', wp.wpbh, wp.wpmc, wp.wpxz, '', '', wp.gllx, wp.gldxid from t_wp_wpjbxx wp inner join t_aj_jyclxzaj jyclxz on wp.ajbh = jyclxz.ajbh where wp.rdbh is null and wp.wpflid in ('2', '3', '4') and wp.wpzlid = :3 )) |
7ffbqycmf17tw |
insert into BJCICBB.T_INFO_SUSPECTPEOINFOR@BJCIC(ID, SUPECTPEOPLENO, NAME, SEXID, BIRTHDAY, AGE, ALIAS, NATIONALITYID, EDUCATIONLEVELID, STATUSID, SPECIALSTATUSID, PLITICALSTATUSID, RACEID, HOUSINGREASONID, DEPARTMENTID, REGISTEREDADDRESSID, DETAILADDRESS, PRESENTADDRESSID, PRESENTDETAILADDRESS, ABODETYPEID, DEADREASONID, DEADDATE, CRIMINALTYPEID, CRIMINALSITUATIONID, ISILLPREGNANTID, GATHERREASONID, ISDRUGGERID, ACCENTID, BLOODTYPEID, BODILYFORMID, COMPLEXIONID, HAIRSTYLEID, FACESTYLEID, EYEBOWID, EYEID, MOUTHID, NOSEID, LIPID, TOOTHID, CHINID, BEARDID, EARID, ATTIRECHARACTERID, CASETOOLID, CASEMETHODID, SPECIALITYID, CASEREASONID, FINGERPOINTCODE, DISPOSALMETHODID, DISPOSALAREAID, FLEEAREAID, FIRSTCASETIME, FEAKOUTDEGREE, COSTINSTANCE, FEAKOUTREASONID, FEAKOUTTYPEID, POSIONSORTID, RESUMETIMES, RESUMEINTERVALID, FEAKOUTRESULTID, MAININCOMEFORMID, FEAKOUTPLACEID, FEAKOUTINSTANCEID, ENGLISHNAME, PAPERKINDID, PAPERNUMBER, VISAKINDID, VISADEADTIMES, ENTERPORTID, ENTERTIME, SUBJECTPOLICESID, VISADEADTIMEE, DELFLAG, OPERATETIME, OPERATERID, ORGID, CHOOSEPARTID, CHOOSEOBJECTID, CHOOOSELOCATIONID, CASECHARACTERID, NATIVEPLACEID, RECORDEPTID, RECORDER, RECORDDATE, PHOTOID, JINGDU, WEIDU, ARRESTTIME, STATUREUPPERLIMIT, STATURELOWERLIMIT, CID) select BJCICBB.HIBERNATE_SEQUENCE.NEXTVAL@BJCIC, REPLACE(RYBH, 'R', 'X'), SUBSTRB(XM, 1, 52), case when XBID is null then '9' else XBID end, to_char(CSRQ, 'yyyymmdd'), NL, BM, GJID, BJCICBB.transCode@BJCIC('WHCD', JYCDID), SFID, BJCICBB.transCode
@BJCIC('TSSF', TSSFID), BJCICBB.transCode@BJCIC('ZZMM', ZZMMID), MZID, BJCICBB.transCode@BJCIC('JLYY', JLYYID), GZDW, HJDID, SUBSTRB(HJDXZ, 1, 64), ZZDID, ZZDXZ, JSLXID, SWYYID, to_char(SWRQ, 'yyyymmdd'), AFLXID, AFZKID, SFBCY, CJYYID, SFXD, KYID, XXID, BJCICBB.transCode@BJCIC('TMTZ', TXID), BJCICBB.transCode@BJCIC('TMTZ', FSID), BJCICBB.transCode@BJCIC('TMTZ', FXID), BJCICBB.transCode@BJCIC('TMTZ', NXID), BJCICBB.transCode@BJCIC('TMTZ', MID), BJCICBB.transCode@BJCIC('TMTZ', YID), BJCICBB.transCode@BJCIC('TMTZ', ZID), BJCICBB.transCode@BJCIC('TMTZ', BID), BJCICBB.transCode@BJCIC('TMTZ', CID), BJCICBB.transCode@BJCIC('TMTZ', YAID), BJCICBB.transCode@BJCIC('TMTZ', XBAID), BJCICBB.transCode@BJCIC('TMTZ', HXID), BJCICBB.transCode@BJCIC('TMTZ', ERID), BJCICBB.transCode@BJCIC('TMTZ', QTTMTZID), ZAGJID, BJCICBB.transCode@BJCIC('ZASD', ZASDID), TSZCID, ZAYYID, SUBSTRB(ZWM, 1, 32), XZFFID, XZQYID, SUBSTRB(LCQY, 1, 100), to_char(to_date(SCXDSJ, 'yyyy-mm-dd hh24:mi:ss'), 'yyyymmddhh24mi'), DYCD, SUBSTRB(HFQK, 1, 64), XDYYID, XDFSID, DPZLID, FXCS, FXJGID, XSHGID, ZYJJLYID, XSDD, XSHJID, YWM, BJCICBB.transCode@BJCIC('ZJZL', QTZJZL), QTZJHM, QZZLID, to_char(to_date(QZYXQKS, 'yyyy-mm-dd hh24:mi:ss'), 'yyyymmddhh24mi'), RJKAID, to_char(to_date(RJSJ, 'yyyy-mm-dd hh24:mi:ss'), 'yyyymmddhh24mi'), BJCICBB.transCode@BJCIC('ZZJG', SSPCS), to_char(to_date(QZYXQJZ, 'yyyy-mm-dd hh24:mi:ss'), 'yyyymmddhh24mi'), 'A', CAST(OPERATETIME AS DATE), BJCICBB.transCode@BJCIC('ZZYID', OPERATERCODE), BJCICBB.tra
nsCode@BJCIC('ORGID', ORGID), SUBSTRB(XZBWID, 1, 20), XZDXID, BJCICBB.transCode@BJCIC('XZCS', XZCSID), ZATDID, JGID, BJCICBB.transCode@BJCIC('ZZJG', LRDWID), SUBSTRB(LRR, 1, 20), to_char(LRRQ, 'yyyymmdd'), FILEID, JD, WD, to_char(JHRQ, 'yyyymmdd'), SGSX, SGXX, case when ZJZLID='111' then ZJHM else '' end from (select wfry.*, flmap.FILEID from T_RY_WFFZRYXX wfry left join T_TB_UPLOADFILESMAP flmap on wfry.ZPID=flmap.DATAID) srcdata where exists(select 1 from T_TB_TBHC tbhc where tbhc.TABMAPID='WFFZRYXXTAB1001' and tbhc.DELFLAG='A' and tbhc.DATAID=srcdata.ID) and OperateTime<=:1 |
7frqszzdu8sgg | select DECODE(UPPER(d.OPEN_MODE), 'READ WRITE', 'R', 'N') , DECODE(UPPER(i.STATUS), 'OPEN', 'O', 'N') into :b0, :b1 from v$database d , gv$instance i where i.INSTANCE_NAME=:b2 |
7gzwv5ccbvnrb | SELECT "DATAID", "FILEID" FROM "T_TB_UPLOADFILESMAP" "A1" WHERE :1="DATAID" |
81zzs84239d3a | select count(1) from t_ajgk_dbxx aj where exists (select 1 from t_sys_organization o where o.treepath like :1 and aj.cbdwid = o.orgcode) and aj.cbrzh = :2 and aj.dbztid = '1' order by aj.scsj desc |
833kbqdaqqw3n | SELECT * FROM H_SJ_SZRYYAJGL
WHERE operatetime >=:1
and delflag='D' |
839s0w77vdh0j |
SELECT COUNT(*) as CT FROM (select distinct ajbh, ajmc, cbdw, cbr, ajlx, operatetime from (select xs.ajbh, xs.ajmc, decode(xs.yscbdw, null, xs.cbdw, xs.yscbdw) as cbdw, decode(xs.yscbr, null, xs.cbr, xs.yscbr) as cbr, cast('01' as varchar2(2)) as ajlx, xs.operatetime from t_aj_xsajfaxx xs where xs.ajzt <> '2904' and exists (select 1 from T_AJ_Baz baz, T_AJ_Bazcyxx bazcyxx where baz.zbh = bazcyxx.zbh and baz.ajbh = xs.ajbh and bazcyxx.bamjzh = :1) and exists (select 1 from t_aj_xsajrydy rydy inner join t_ry_saryjbxx ryxx on rydy.rybh = ryxx.rybh where xs.ajbh = rydy.ajbh and ryxx.ryxm like '%???%' ) union all select xs.ajbh, xs.ajmc, decode(xs.yscbdw, null, xs.cbdw, xs.yscbdw) as cbdw, decode(xs.yscbr, null, xs.cbr, xs.yscbr) as cbr, cast('01' as varchar2(2)) as ajlx, xs.operatetime from t_aj_xsajfaxx xs where xs.ajzt <> '2904' and exists (select 1 from t_doc_processinstance ce, t_doc_processinstanceex ex, t_doc_approvalrecord app where ce.id = ex.processinstanceid and ce.id = app.instanceid and app.approvalstage in ('01', '02', '06') and ce.status = '99' and ex.exkey = 'AJBH' and ex.exvalue = xs.ajbh and app.operatercode = :2 and exists (select 1 from t_aj_xsajrydy rydy inner join t_ry_saryjbxx ryxx on rydy.rybh = ryxx.rybh where xs.ajbh = rydy.ajbh and ryxx.ryxm like '%???%' ) ) union all select xz.ajbh, xz.ajmc, decode(xz.yscbdw, null, xz.cbdw, xz.yscbdw), decode(xz.ysc
br, null, xz.zbmj, xz.yscbr), cast('02' as varchar2(2)) as ajlx, xz.operatetime from t_aj_xzajfaxx xz where xz.ajzt <> '3210' and exists (select 1 from T_AJ_Baz baz, T_AJ_Bazcyxx bazcyxx where baz.zbh = bazcyxx.zbh and baz.ajbh = xz.ajbh and bazcyxx.bamjzh = :3) and exists (select 1 from t_aj_xzajrydy rydy inner join t_ry_saryjbxx ryxx on rydy.rybh = ryxx.rybh where xz.ajbh = rydy.ajbh and ryxx.ryxm like '%???%' ) union all select xz.ajbh, xz.ajmc, decode(xz.yscbdw, null, xz.cbdw, xz.yscbdw), decode(xz.yscbr, null, xz.zbmj, xz.yscbr), cast('02' as varchar2(2)) as ajlx, xz.operatetime from t_aj_xzajfaxx xz where xz.ajzt <> '3210' and exists (select 1 from t_doc_processinstance ce, t_doc_processinstanceex ex, t_doc_approvalrecord app where ce.id = ex.processinstanceid and ce.id = app.instanceid and app.approvalstage in ('01', '02', '06') and (ce.status = '99' or ce.status = '98' and ce.processcode = 'CQTZSPB') and ex.exkey = 'AJBH' and ex.exvalue = xz.ajbh and app.operatercode = :4 and exists (select 1 from t_aj_xzajrydy rydy inner join t_ry_saryjbxx ryxx on rydy.rybh = ryxx.rybh where xz.ajbh = rydy.ajbh and ryxx.ryxm like '%???%' ) ) ) ) |
83urjmdjcd95r | SELECT to_char(extract(DAY from jbsj)) FROM t_aj_jjdj where id=:1 |
86g6mg28x23j0 | select count(1) as recordCount, max(operateTime) lastUpTime from zfba_history.H_WP_SZWZJRPJ where delFlag='D' and operateTime > :1 and operateTime <= :2 |
8888g4qgzt1kb | update zfba_history.H_DOC_WSGD set delFlag='D' , operateTime= :1 , operaterCode= :2 where id=:3 and dataversion=:4 |
88wmhkdvwcdmm | select wsyzdy0_.ID as ID183_, wsyzdy0_.DATAVERSION as DATAVERS2_183_, wsyzdy0_.INSTANCEID as INSTANCEID183_, wsyzdy0_.DOCID as DOCID183_, wsyzdy0_.TEMPID as TEMPID183_, wsyzdy0_.GJZ as GJZ183_, wsyzdy0_.YZMC as YZMC183_, wsyzdy0_.QFZ as QFZ183_, wsyzdy0_.OPERATERCODE as OPERATER9_183_, wsyzdy0_.ORGID as ORGID183_, wsyzdy0_.OPERATETIME as OPERATE11_183_, wsyzdy0_.DELFLAG as DELFLAG183_ from T_DOC_WSYZDY wsyzdy0_ where wsyzdy0_.DOCID=:1 |
8az1td5wamr92 |
SELECT COUNT(*) as CT FROM (select distinct ajbh, ajmc, cbdw, cbr, ajlx, operatetime from (select xs.ajbh, xs.ajmc, decode(xs.yscbdw, null, xs.cbdw, xs.yscbdw) as cbdw, decode(xs.yscbr, null, xs.cbr, xs.yscbr) as cbr, cast('01' as varchar2(2)) as ajlx, xs.operatetime from t_aj_xsajfaxx xs where xs.ajzt <> '2904' and exists (select 1 from T_AJ_Baz baz, T_AJ_Bazcyxx bazcyxx where baz.zbh = bazcyxx.zbh and baz.ajbh = xs.ajbh and bazcyxx.bamjzh = :1) and exists (select 1 from t_aj_xsajrydy rydy inner join t_ry_saryjbxx ryxx on rydy.rybh = ryxx.rybh where xs.ajbh = rydy.ajbh and ryxx.ryxm like '%???%' ) union all select xs.ajbh, xs.ajmc, decode(xs.yscbdw, null, xs.cbdw, xs.yscbdw) as cbdw, decode(xs.yscbr, null, xs.cbr, xs.yscbr) as cbr, cast('01' as varchar2(2)) as ajlx, xs.operatetime from t_aj_xsajfaxx xs where xs.ajzt <> '2904' and exists (select 1 from t_doc_processinstance ce, t_doc_processinstanceex ex, t_doc_approvalrecord app where ce.id = ex.processinstanceid and ce.id = app.instanceid and app.approvalstage in ('01', '02', '06') and ce.status = '99' and ex.exkey = 'AJBH' and ex.exvalue = xs.ajbh and app.operatercode = :2 and exists (select 1 from t_aj_xsajrydy rydy inner join t_ry_saryjbxx ryxx on rydy.rybh = ryxx.rybh where xs.ajbh = rydy.ajbh and ryxx.ryxm like '%???%' ) ) union all select xz.ajbh, xz.ajmc, decode(xz.yscbdw, null, xz.cbdw, xz.yscbdw), decode(xz.ysc
br, null, xz.zbmj, xz.yscbr), cast('02' as varchar2(2)) as ajlx, xz.operatetime from t_aj_xzajfaxx xz where xz.ajzt <> '3210' and exists (select 1 from T_AJ_Baz baz, T_AJ_Bazcyxx bazcyxx where baz.zbh = bazcyxx.zbh and baz.ajbh = xz.ajbh and bazcyxx.bamjzh = :3) and exists (select 1 from t_aj_xzajrydy rydy inner join t_ry_saryjbxx ryxx on rydy.rybh = ryxx.rybh where xz.ajbh = rydy.ajbh and ryxx.ryxm like '%???%' ) union all select xz.ajbh, xz.ajmc, decode(xz.yscbdw, null, xz.cbdw, xz.yscbdw), decode(xz.yscbr, null, xz.zbmj, xz.yscbr), cast('02' as varchar2(2)) as ajlx, xz.operatetime from t_aj_xzajfaxx xz where xz.ajzt <> '3210' and exists (select 1 from t_doc_processinstance ce, t_doc_processinstanceex ex, t_doc_approvalrecord app where ce.id = ex.processinstanceid and ce.id = app.instanceid and app.approvalstage in ('01', '02', '06') and (ce.status = '99' or ce.status = '98' and ce.processcode = 'CQTZSPB') and ex.exkey = 'AJBH' and ex.exvalue = xz.ajbh and app.operatercode = :4 and exists (select 1 from t_aj_xzajrydy rydy inner join t_ry_saryjbxx ryxx on rydy.rybh = ryxx.rybh where xz.ajbh = rydy.ajbh and ryxx.ryxm like '%???%' ) ) ) ) |
8fb4axtuaaad5 | select org.orgcode from t_sys_organization org where org.orgname=:1 |
8kbjjvs06ksc7 |
select * from ( select distinct ajbh, ajmc, cbdw, cbr, ajlx, operatetime from (select xs.ajbh, xs.ajmc, decode(xs.yscbdw, null, xs.cbdw, xs.yscbdw) as cbdw, decode(xs.yscbr, null, xs.cbr, xs.yscbr) as cbr, cast('01' as varchar2(2)) as ajlx, xs.operatetime from t_aj_xsajfaxx xs where xs.ajzt <> '2904' and exists (select 1 from T_AJ_Baz baz, T_AJ_Bazcyxx bazcyxx where baz.zbh = bazcyxx.zbh and baz.ajbh = xs.ajbh and bazcyxx.bamjzh = :1) and exists (select 1 from t_aj_xsajrydy rydy inner join t_ry_saryjbxx ryxx on rydy.rybh = ryxx.rybh where xs.ajbh = rydy.ajbh and ryxx.ryxm like '%???%' ) union all select xs.ajbh, xs.ajmc, decode(xs.yscbdw, null, xs.cbdw, xs.yscbdw) as cbdw, decode(xs.yscbr, null, xs.cbr, xs.yscbr) as cbr, cast('01' as varchar2(2)) as ajlx, xs.operatetime from t_aj_xsajfaxx xs where xs.ajzt <> '2904' and exists (select 1 from t_doc_processinstance ce, t_doc_processinstanceex ex, t_doc_approvalrecord app where ce.id = ex.processinstanceid and ce.id = app.instanceid and app.approvalstage in ('01', '02', '06') and ce.status = '99' and ex.exkey = 'AJBH' and ex.exvalue = xs.ajbh and app.operatercode = :2 and exists (select 1 from t_aj_xsajrydy rydy inner join t_ry_saryjbxx ryxx on rydy.rybh = ryxx.rybh where xs.ajbh = rydy.ajbh and ryxx.ryxm like '%???%' ) ) union all select xz.ajbh, xz.ajmc, decode(xz.yscbdw, null, xz.cbdw, xz.yscbdw), decode(xz.yscbr, null,
xz.zbmj, xz.yscbr), cast('02' as varchar2(2)) as ajlx, xz.operatetime from t_aj_xzajfaxx xz where xz.ajzt <> '3210' and exists (select 1 from T_AJ_Baz baz, T_AJ_Bazcyxx bazcyxx where baz.zbh = bazcyxx.zbh and baz.ajbh = xz.ajbh and bazcyxx.bamjzh = :3) and exists (select 1 from t_aj_xzajrydy rydy inner join t_ry_saryjbxx ryxx on rydy.rybh = ryxx.rybh where xz.ajbh = rydy.ajbh and ryxx.ryxm like '%???%' ) union all select xz.ajbh, xz.ajmc, decode(xz.yscbdw, null, xz.cbdw, xz.yscbdw), decode(xz.yscbr, null, xz.zbmj, xz.yscbr), cast('02' as varchar2(2)) as ajlx, xz.operatetime from t_aj_xzajfaxx xz where xz.ajzt <> '3210' and exists (select 1 from t_doc_processinstance ce, t_doc_processinstanceex ex, t_doc_approvalrecord app where ce.id = ex.processinstanceid and ce.id = app.instanceid and app.approvalstage in ('01', '02', '06') and (ce.status = '99' or ce.status = '98' and ce.processcode = 'CQTZSPB') and ex.exkey = 'AJBH' and ex.exvalue = xz.ajbh and app.operatercode = :4 and exists (select 1 from t_aj_xzajrydy rydy inner join t_ry_saryjbxx ryxx on rydy.rybh = ryxx.rybh where xz.ajbh = rydy.ajbh and ryxx.ryxm like '%???%' ) ) ) order by operatetime desc ) where rownum <= :5 |
8sqtb3scv1a6d | SELECT to_char(SYSTIMESTAMP, 'yyyy-mm-dd hh24:mi:SS.FF3') FROM DUAL |
8udz5ub7qx338 | select * from ( select row_.*, rownum rownum_ from ( select gdb0_.ID as ID264_, gdb0_.DATAVERSION as DATAVERS2_264_, gdb0_.DXID as DXID264_, gdb0_.DXBH as DXBH264_, gdb0_.DXLX as DXLX264_, gdb0_.CQID as CQID264_, gdb0_.CQMC as CQMC264_, gdb0_.SPTGSJ as SPTGSJ264_, gdb0_.GDZT as GDZT264_, gdb0_.SJHQZT as SJHQZT264_, gdb0_.GDCLSJ as GDCLSJ264_, gdb0_.OPERATETIME as OPERATE12_264_, gdb0_.OPERATERCODE as OPERATE13_264_, gdb0_.DELFLAG as DELFLAG264_, gdb0_.ORGID as ORGID264_, gdb0_.CQDM as CQDM264_, gdb0_.AJBH as AJBH264_, gdb0_.ZBH as ZBH264_ from T_YJ_GDB gdb0_ order by gdb0_.OPERATETIME ) row_ where rownum <= :1) where rownum_ > :2 |
8xu69m0xmuacn | select count(1) from T_JK_JJ110 where zt='1' and jjxh =:1 and pcsjqgsdw = :2 |
91xmz5h921hvq |
select xzajfaxx0_.ID as ID216_0_, xzajfaxx0_.DATAVERSION as DATAVERS2_216_0_, xzajfaxx0_.AJBH as AJBH216_0_, xzajfaxx0_.ZABID as ZABID216_0_, xzajfaxx0_.AJLXID as AJLXID216_0_, xzajfaxx0_.AJMC as AJMC216_0_, xzajfaxx0_.AJXZ as AJXZ216_0_, xzajfaxx0_.PCSGXID as PCSGXID216_0_, xzajfaxx0_.FADDID as FADDID216_0_, xzajfaxx0_.FADDXZ as FADDXZ216_0_, xzajfaxx0_.FAKSSJ as FAKSSJ216_0_, xzajfaxx0_.FAQYID as FAQYID216_0_, xzajfaxx0_.JBDWID as JBDWID216_0_, xzajfaxx0_.JBRZH as JBRZH216_0_, xzajfaxx0_.JBR as JBR216_0_, xzajfaxx0_.SLSJ as SLSJ216_0_, xzajfaxx0_.AJLYID as AJLYID216_0_, xzajfaxx0_.SLRZH as SLRZH216_0_, xzajfaxx0_.SLR as SLR216_0_, xzajfaxx0_.SSZJZ as SSZJZ216_0_, xzajfaxx0_.FSCSID as FSCSID216_0_, xzajfaxx0_.XZBWID as XZBWID216_0_, xzajfaxx0_.JYAQ as JYAQ216_0_, xzajfaxx0_.LRDWID as LRDWID216_0_, xzajfaxx0_.LRRZH as LRRZH216_0_, xzajfaxx0_.LRR as LRR216_0_, xzajfaxx0_.LRRQ as LRRQ216_0_, xzajfaxx0_.OPERATERCODE as OPERATE28_216_0_, xzajfaxx0_.OPERATETIME as OPERATE29_216_0_, xzajfaxx0_.DELFLAG as DELFLAG216_0_, xzajfaxx0_.ORGID as ORGID216_0_, xzajfaxx0_.ZABSID as ZABSID216_0_, xzajfaxx0_.AJZT as AJZT216_0_, xzajfaxx0_.QHGXID as QHGXID216_0_, xzajfaxx0_.SSZXCS as SSZXCS216_0_, xzajfaxx0_.SSDDZXCS as SSDDZXCS216_0_, xzajfaxx0_.JD as JD216_0_, xzajfaxx0_.WD as WD216_0_, xzajfaxx0_.SSSD as SSSD216_0_, xzajfaxx0_.GJCL as GJCL216_0_, xzajfaxx0_.SCZ as SCZ216_0_, xzajfaxx0_.FXZ as FXZ216_0_, xzajfaxx0_.FXSJ as FXSJ216_0_, xzajfaxx0_.FADP
CSID as FADPCSID216_0_, xzajfaxx0_.FADDSSJQ as FADDSSJQ216_0_, xzajfaxx0_.FADDSSSQ as FADDSSSQ216_0_, xzajfaxx0_.XCLX as XCLX216_0_, xzajfaxx0_.FXXS as FXXS216_0_, xzajfaxx0_.FAJSSJ as FAJSSJ216_0_, xzajfaxx0_.TSAJLX as TSAJLX216_0_, xzajfaxx0_.SFZDAJ as SFZDAJ216_0_, xzajfaxx0_.ZDAJ as ZDAJ216_0_, xzajfaxx0_.ZBMJCODE as ZBMJCODE216_0_, xzajfaxx0_.ZBMJ as ZBMJ216_0_, xzajfaxx0_.XBMJ as XBMJ216_0_, xzajfaxx0_.BQHDXLB as BQHDXLB216_0_, xzajfaxx0_.DXALBZ as DXALBZ216_0_, xzajfaxx0_.SABZ as SABZ216_0_, xzajfaxx0_.AJCLID as AJCLID216_0_, xzajfaxx0_.CBDW as CBDW216_0_, xzajfaxx0_.ajhj as ajhj216_0_, xzajfaxx0_.SAZT as SAZT216_0_, xzajfaxx0_.SFCZCQZ as SFCZCQZ216_0_, xzajfaxx0_.SFXBAJ as SFXBAJ216_0_, xzajfaxx0_.BCAJXZ as BCAJXZ216_0_, xzajfaxx0_.JHZJZ as JHZJZ216_0_, xzajfaxx0_.CBRLXDH as CBRLXDH216_0_, xzajfaxx0_.AFDGXJGLXR as AFDGXJGLXR216_0_, xzajfaxx0_.AFDGXJGLXDH as AFDGXJG69_216_0_, xzajfaxx0_.CQCS as CQCS216_0_, xzajfaxx0_.DWSC as DWSC216_0_, xzajfaxx0_.DAJZH as DAJZH216_0_, xzajfaxx0_.BZ as BZ216_0_, xzajfaxx0_.AJMJ as AJMJ216_0_, xzajfaxx0_.ZBDWJZ as ZBDWJZ216_0_, xzajfaxx0_.AFCS as AFCS216_0_, xzajfaxx0_.YSDW as YSDW216_0_, xzajfaxx0_.BCWFFT as BCWFFT216_0_, xzajfaxx0_.WFFT as WFFT216_0_, xzajfaxx0_.SJLYFLG as SJLYFLG216_0_, xzajfaxx0_.YSCBR as YSCBR216_0_, xzajfaxx0_.YSCBRZH as YSCBRZH216_0_, xzajfaxx0_.YSXBMJ as YSXBMJ216_0_, xzajfaxx0_.YSCBDW as YSCBDW216_0_, xzajfaxx0_.GKZTID as GKZTID216_0_ from T_AJ_XZAJFAXX xzajfaxx0_ where
xzajfaxx0_.ID=:1 |
927dq7xmj4bky | SELECT COUNT(*) as CT from T_AJ_JJDJ j left join T_AJ_JJAJGLXX gl on j.id = gl.jjid where j.SFYCLID = '1' and j.barmc like :1 and j.jbsj >= to_Date(:2, 'yyyy-MM-dd hh24:mi:ss') and j.jbsj <= to_Date(:3, 'yyyy-MM-dd hh24:mi:ss') and (j.jbdwid =:4 or j.cbdw = :5 ) |
943h3m6b178br | select count(1) as recordCount, max(operateTime) lastUpTime from (select rycl.*, tbhc.ORADATAID from T_RY_RYCLXX rycl left join T_TB_TBHC tbhc on rycl.ID=tbhc.DATAID) srcdata0 where operateTime > :1 and operateTime <= :2 and exists(select 1 from T_RY_WFFZRYXX srcdata1 where srcdata0.RYBH = srcdata1.RYBH and exists(select 1 from T_AJ_XSAJRYDY srcdata2 where srcdata1.RYBH = srcdata2.RYBH and exists(select 1 from T_AJ_XSAJFAXX srcdata3 where ZABID in ('020703', '020704') and LRRQ>=DATE'2012-07-01' and srcdata2.AJBH = srcdata3.AJBH))) |
945np9d2x4hpa |
SELECT "A1"."RYBH", "A1"."XM", "A1"."XBID", "A1"."XBID", "A1"."CSRQ", "A1"."NL", "A1"."BM", "A1"."GJID", "A1"."JYCDID", "A1"."SFID", "A1"."TSSFID", "A1"."ZZMMID", "A1"."MZID", "A1"."JLYYID", "A1"."GZDW", "A1"."HJDID", "A1"."HJDXZ", "A1"."ZZDID", "A1"."ZZDXZ", "A1"."JSLXID", "A1"."SWYYID", "A1"."SWRQ", "A1"."AFLXID", "A1"."AFZKID", "A1"."SFBCY", "A1"."CJYYID", "A1"."SFXD", "A1"."KYID", "A1"."XXID", "A1"."TXID", "A1"."FSID", "A1"."FXID", "A1"."NXID", "A1"."MID", "A1"."YID", "A1"."ZID", "A1"."BID", "A1"."CID", "A1"."YAID", "A1"."XBAID", "A1"."HXID", "A1"."ERID", "A1"."QTTMTZID", "A1"."ZAGJID", "A1"."ZASDID", "A1"."TSZCID", "A1"."ZAYYID", "A1"."ZWM", "A1"."XZFFID", "A1"."XZQYID", "A1"."LCQY", "A1"."SCXDSJ", "A1"."DYCD", "A1"."HFQK", "A1"."XDYYID", "A1"."XDFSID", "A1"."DPZLID", "A1"."FXCS", "A1"."FXJGID", "A1"."XSHGID", "A1"."ZYJJLYID", "A1"."XSDD", "A1"."XSHJID", "A1"."YWM", "A1"."QTZJZL", "A1"."QTZJHM", "A1"."QZZLID", "A1"."QZYXQKS", "A1"."RJKAID", "A1"."RJSJ", "A1"."SSPCS", "A1"."QZYXQJZ", "A1"."OPERATETIME", "A1"."OPERATERCODE", "A1"."XZBWID", "A1"."XZDXID", "A1"."XZCSID", "A1"."ZATDID", "A1"."JGID", "A1"."LRDWID", "A1"."LRR", "A1"."LRRQ", "A1"."JD", "A1"."WD", "A1"."JHRQ", "A1"."SGSX", "A1"."SGXX", "A1"."ZJZLID", "A1"."ZJHM", "A1"."RYBH", "A1"."ZPID", "A2"."FILEID", "A2"."DATAID" FROM "T_RY_WFFZRYXX" "A1", "T_TB_UPLOADFILESMAP" "A2" WHERE "A1"."ZPID"="A2"."DATAID"(+) AND REPLACE("A1"."RYBH", 'R', 'X')=:1
|
96g93hntrzjtr | select /*+ rule */ bucket_cnt, row_cnt, cache_cnt, null_cnt, timestamp#, sample_size, minimum, maximum, distcnt, lowval, hival, density, col#, spare1, spare2, avgcln from hist_head$ where obj#=:1 and intcol#=:2 |
9azk33sd90pmh | SELECT /*+ OPAQUE_TRANSFORM */ "ID", "RYBH", "XM", "XBID", "CSRQ", "NL", "BM", "JYCDID", "SFID", "TSSFID", "ZZMMID", "MZID", "GJID", "JLYYID", "GZDW", "ZWID", "HJDID", "HJDXZ", "RSBH", "ZZDID", "ZZDXZ", "JZDSSPCSID", "JSLXID", "SWYYID", "SWRQ", "AFLXID", "AFZKID", "SFBCY", "CJYYID", "SFXD", "RYBS", "KYID", "XXID", "TXID", "FSID", "FXID", "NXID", "MID", "YID", "ZID", "BID", "CID", "YAID", "XBAID", "HXID", "ERID", "QTTMTZID", "ZAGJID", "ZASDID", "ZATD1", "BCSD", "ZAGJ1", "TSZCID", "ZAYYID", "ZWM", "XZFFID", "XZQYID", "LCQY", "XZDQXZ", "SCXDSJ", "DYCD", "HFQK", "XSQK", "XDYYID", "XDFSID", "DPZLID", "FXCS", "FXJGID", "XSHGID", "ZYJJLYID", "XSDD", "XYBH", "XSHJID", "DNAID", "JJZK", "SJ1", "ZJ2", "JL", "BZ", "YWM", "ZJZLID", "ZJHM", "QZZLID", "QZYXQKS", "RJKAID", "RJSJ", "SSPCS", "QZYXQJZ", "OPERATETIME", "OPERATERCODE", "ORGID", "XZBWID", "XZDXID", "XZCSID", "ZATDID", "QTBW", "JGID", "SFYJ", "ZAFG", "SFBLZZZ", "ZZZHM", "ZZZBLDWID", "LRDWID", "LRR", "LRRQ", "ZPID", "SWSFID", "RDRYBH", "XMPYM", "JD", "BYZD1", "WD", "BYZD2", "BYZD3", "BYZD4", "BYZD5", "LJLGLS", "RYZT", "SQ", "JHRQ", "JHDWID", "BMJB", "SFBM", "ZAFGID", "LJSJ", "QTZJZL", "QTZJHM", "SGSX", "SGXX" FROM "T_RY_WFFZRYXX" "A3" WHERE "OPERATETIME"<=:1 |
9f5x49jjrwf0f | insert into BJCICBB.T_BUSI_PEOPLEINFOTOPHOTO@BJCIC(ID, PEOPLENO, PEOPLEID, PHOTOID, PEOPLETYPE) select BJCICBB.HIBERNATE_SEQUENCE.NEXTVAL@BJCIC, REPLACE(RYBH, 'R', 'X'), -1, FILEID, BJCICBB.transCode@BJCIC('ZPDYRYLX', RYLX) from (select zpdy.*, flmap.FILEID from T_RY_RYZPDY zpdy left join T_TB_UPLOADFILESMAP flmap on zpdy.ZHID=flmap.DATAID where zpdy.RYLX='04') srcdata where exists(select 1 from T_TB_TBHC tbhc where tbhc.TABMAPID='RYZPDYTAB0001' and tbhc.DELFLAG='A' and tbhc.DATAID=srcdata.ID) and OperateTime<=:1 |
9htyqynmhfs6v | SELECT COUNT(*) as CT FROM (select distinct wtjl0_.ID as ID241_, wtjl0_.DATAVERSION as DATAVERS2_241_, wtjl0_.INSTANCEID as INSTANCEID241_, wtjl0_.AJBH as AJBH241_, wtjl0_.AJMC as AJMC241_, wtjl0_.AJLXID as AJLXID241_, wtjl0_.JCLXID as JCLXID241_, wtjl0_.ZXJCMC as ZXJCMC241_, wtjl0_.JCDWCJID as JCDWCJID241_, wtjl0_.ZFJCDWID as ZFJCDWID241_, wtjl0_.ZFJCDWMC as ZFJCDWMC241_, wtjl0_.ZFJCSJ as ZFJCSJ241_, wtjl0_.ZFJCMJZH as ZFJCMJZH241_, wtjl0_.ZFJCMJXM as ZFJCMJXM241_, wtjl0_.ZRHJID as ZRHJID241_, wtjl0_.ZRDWID as ZRDWID241_, wtjl0_.BAMJDWID as BAMJDWID241_, wtjl0_.BADWMC as BADWMC241_, wtjl0_.LRR as LRR241_, wtjl0_.LRRZH as LRRZH241_, wtjl0_.LRDWID as LRDWID241_, wtjl0_.LRRQ as LRRQ241_, wtjl0_.SFCQJCCSID as SFCQJCCSID241_, wtjl0_.DELFLAG as DELFLAG241_, wtjl0_.OPERATERCODE as OPERATE25_241_, wtjl0_.OPERATETIME as OPERATE26_241_, wtjl0_.ORGID as ORGID241_, wtjl0_.DQBAZBH as DQBAZBH241_, wtjl0_.SSAJLX as SSAJLX241_, wtjl0_.BJCDWID as BJCDWID241_, wtjl0_.BJCDWMC as BJCDWMC241_, wtjl0_.GLDXBH as GLDXBH241_, wtjl0_.SFZGID as SFZGID241_ from T_ZFJD_WTJL wtjl0_, T_ZFJD_LCWTDY lcwtdy1_ where wtjl0_.ID=lcwtdy1_.WTJLID and (wtjl0_.AJBH like :1)) |
9jzja4nwmcuwn | select node0_.ID as ID39_, node0_.JOINTIME as JOINTIME39_, node0_.CRASHTIME as CRASHTIME39_, node0_.LASTONLINETIME as LASTONLI4_39_, node0_.APPSYSCODE as APPSYSCODE39_, node0_.NODECODE as NODECODE39_, node0_.STATE as STATE39_ from T_MSG_NODE node0_ where node0_.STATE=:1 and node0_.LASTONLINETIME<:2 |
9mjkv1ars6wmw | select d.ID, d.DOCSTATUS, d.TEMPLATEID, t.TEMPLATENAME, t.HTML, d.DOCURL, t.TEMPLATECODE, d.CJSQ as CREATEDATE, '' , '' , t.isfltk, '' as XM, d.wordbytes from T_DOC_DOCINSTANCE d, T_DOC_TEMPLATE t where d.TEMPLATEID = t.ID and t.TEMPLATETYPE = :1 and d.PROCESSINSTANCEID = :2 and d.DOCTYPE = :3 |
9st2z0vw4hnt2 | SELECT * FROM H_ZZ_SADWXX
WHERE operatetime >=:1
and delflag='D' |
9xz3rdc782wd8 |
SELECT COUNT(*) as CT FROM (select distinct ajbh, ajmc, cbdw, cbr, ajlx, operatetime from (select xs.ajbh, xs.ajmc, decode(xs.yscbdw, null, xs.cbdw, xs.yscbdw) as cbdw, decode(xs.yscbr, null, xs.cbr, xs.yscbr) as cbr, cast('01' as varchar2(2)) as ajlx, xs.operatetime from t_aj_xsajfaxx xs where xs.ajzt <> '2904' and exists (select 1 from T_AJ_Baz baz, T_AJ_Bazcyxx bazcyxx where baz.zbh = bazcyxx.zbh and baz.ajbh = xs.ajbh and bazcyxx.bamjzh = :1) and exists (select 1 from t_aj_xsajrydy rydy inner join t_ry_saryjbxx ryxx on rydy.rybh = ryxx.rybh where xs.ajbh = rydy.ajbh and ryxx.ryxm like '%??%' ) union all select xs.ajbh, xs.ajmc, decode(xs.yscbdw, null, xs.cbdw, xs.yscbdw) as cbdw, decode(xs.yscbr, null, xs.cbr, xs.yscbr) as cbr, cast('01' as varchar2(2)) as ajlx, xs.operatetime from t_aj_xsajfaxx xs where xs.ajzt <> '2904' and exists (select 1 from t_doc_processinstance ce, t_doc_processinstanceex ex, t_doc_approvalrecord app where ce.id = ex.processinstanceid and ce.id = app.instanceid and app.approvalstage in ('01', '02', '06') and ce.status = '99' and ex.exkey = 'AJBH' and ex.exvalue = xs.ajbh and app.operatercode = :2 and exists (select 1 from t_aj_xsajrydy rydy inner join t_ry_saryjbxx ryxx on rydy.rybh = ryxx.rybh where xs.ajbh = rydy.ajbh and ryxx.ryxm like '%??%' ) ) union all select xz.ajbh, xz.ajmc, decode(xz.yscbdw, null, xz.cbdw, xz.yscbdw), decode(xz.yscbr
, null, xz.zbmj, xz.yscbr), cast('02' as varchar2(2)) as ajlx, xz.operatetime from t_aj_xzajfaxx xz where xz.ajzt <> '3210' and exists (select 1 from T_AJ_Baz baz, T_AJ_Bazcyxx bazcyxx where baz.zbh = bazcyxx.zbh and baz.ajbh = xz.ajbh and bazcyxx.bamjzh = :3) and exists (select 1 from t_aj_xzajrydy rydy inner join t_ry_saryjbxx ryxx on rydy.rybh = ryxx.rybh where xz.ajbh = rydy.ajbh and ryxx.ryxm like '%??%' ) union all select xz.ajbh, xz.ajmc, decode(xz.yscbdw, null, xz.cbdw, xz.yscbdw), decode(xz.yscbr, null, xz.zbmj, xz.yscbr), cast('02' as varchar2(2)) as ajlx, xz.operatetime from t_aj_xzajfaxx xz where xz.ajzt <> '3210' and exists (select 1 from t_doc_processinstance ce, t_doc_processinstanceex ex, t_doc_approvalrecord app where ce.id = ex.processinstanceid and ce.id = app.instanceid and app.approvalstage in ('01', '02', '06') and (ce.status = '99' or ce.status = '98' and ce.processcode = 'CQTZSPB') and ex.exkey = 'AJBH' and ex.exvalue = xz.ajbh and app.operatercode = :4 and exists (select 1 from t_aj_xzajrydy rydy inner join t_ry_saryjbxx ryxx on rydy.rybh = ryxx.rybh where xz.ajbh = rydy.ajbh and ryxx.ryxm like '%??%' ) ) ) ) |
a4nsb6fq5b41b |
select user0_.ID as ID37_6_, user0_.USERNAME as USERNAME37_6_, user0_.LOGINID as LOGINID37_6_, user0_.PASSWD as PASSWD37_6_, user0_.INITIALPASSWD as INITIALP5_37_6_, user0_.REVERSIBLEPASSWD as REVERSIB6_37_6_, user0_.USERTYPE as USERTYPE37_6_, user0_.LOCKEDTIME as LOCKEDTIME37_6_, user0_.UNLOCKEDTIME as UNLOCKED9_37_6_, user0_.QUESTIONCONTENT as QUESTIO10_37_6_, user0_.QUESTIONANSWER as QUESTIO11_37_6_, user0_.STATUS as STATUS37_6_, user0_.SPELLCODE as SPELLCODE37_6_, user0_.DISPLAYORDER as DISPLAY14_37_6_, user0_.DESCN as DESCN37_6_, user0_.DELFLAG as DELFLAG37_6_, user0_.OPERATERCODE as OPERATE17_37_6_, user0_.OPERATETIME as OPERATE18_37_6_, user0_.USERINFOID as USERINFOID37_6_, user0_.ORGID as ORGID37_6_, user0_.MANAGERORGID as MANAGER21_37_6_, user0_.MAJORPOSITIONID as MAJORPO22_37_6_, userinfo1_.ID as ID38_0_, userinfo1_.USERNAME as USERNAME38_0_, userinfo1_.USERCODE as USERCODE38_0_, userinfo1_.GENDER as GENDER38_0_, userinfo1_.PERSONTYPE as PERSONTYPE38_0_, userinfo1_.IDCARD as IDCARD38_0_, userinfo1_.SPELLCODE as SPELLCODE38_0_, userinfo1_.DUTYLEVEL as DUTYLEVEL38_0_, userinfo1_.FORMERNAME as FORMERNAME38_0_, userinfo1_.NATIVEPLACE as NATIVEP10_38_0_, userinfo1_.BIRTHDAY as BIRTHDAY38_0_, userinfo1_.POLITICALSTATUS as POLITIC12_38_0_, userinfo1_.ADDRESS as ADDRESS38_0_, userinfo1_.POSTCODE as POSTCODE38_0_, userinfo1_.OFFICEPHONE as OFFICEP15_38_0_, userinfo1_.MOBILEPHONE as MOBILEP16_38_0_, userinfo1_.HOMEPHONE as HOMEPHONE38_0_,
userinfo1_.FAX as FAX38_0_, userinfo1_.EMAIL as EMAIL38_0_, userinfo1_.DISPLAYORDER as DISPLAY20_38_0_, userinfo1_.DESCN as DESCN38_0_, userinfo1_.DELFLAG as DELFLAG38_0_, userinfo1_.OPERATERCODE as OPERATE23_38_0_, userinfo1_.OPERATETIME as OPERATE24_38_0_, userinfo1_.ORGID as ORGID38_0_, userinfo1_.MAJORPOSITIONID as MAJORPO26_38_0_, organizati2_.ID as ID20_1_, organizati2_.QZMC as QZMC20_1_, organizati2_.QZH as QZH20_1_, organizati2_.ORGNAME as ORGNAME20_1_, organizati2_.ORGCODE as ORGCODE20_1_, organizati2_.ORGABBRNAME as ORGABBRN6_20_1_, organizati2_.INNERCODE as INNERCODE20_1_, organizati2_.ORGTYPE as ORGTYPE20_1_, organizati2_.ORGLEVEL as ORGLEVEL20_1_, organizati2_.VIRTUALFLAG as VIRTUAL10_20_1_, organizati2_.UNITFLAG as UNITFLAG20_1_, organizati2_.BUSIFLAG as BUSIFLAG20_1_, organizati2_.DIRECTLYUNDERFLAG as DIRECTL13_20_1_, organizati2_.BUSIAREA as BUSIAREA20_1_, organizati2_.ADDRESS as ADDRESS20_1_, organizati2_.POSTCODE as POSTCODE20_1_, organizati2_.TELEPHONE as TELEPHONE20_1_, organizati2_.TELEGRAPHONE as TELEGRA18_20_1_, organizati2_.FAX as FAX20_1_, organizati2_.EMAIL as EMAIL20_1_, organizati2_.MANAGERID as MANAGERID20_1_, organizati2_.MANAGERNAME as MANAGER22_20_1_, organizati2_.TREEPATH as TREEPATH20_1_, organizati2_.STATUS as STATUS20_1_, organizati2_.DISPLAYORDER as DISPLAY25_20_1_, organizati2_.UNITID as UNITID20_1_, organizati2_.ALIASNAME as ALIASNAME20_1_, organizati2_.DESCN as DESCN20_1_, organizati2_.DELFLAG as D
ELFLAG20_1_, organizati2_.OPERATERCODE as OPERATE30_20_1_, organizati2_.OPERATETIME as OPERATE31_20_1_, organizati2_.PARENTID as PARENTID20_1_, position3_.ID as ID26_2_, position3_.POSITIONNAME as POSITION2_26_2_, position3_.POSITIONCODE as POSITION3_26_2_, position3_.POSITIONTYPE as POSITION4_26_2_, position3_.POSITIONLEVEL as POSITION5_26_2_, position3_.DISPLAYORDER as DISPLAYO6_26_2_, position3_.DESCN as DESCN26_2_, position3_.DELFLAG as DELFLAG26_2_, position3_.OPERATERCODE as OPERATER9_26_2_, position3_.OPERATETIME as OPERATE10_26_2_, organizati4_.ID as ID20_3_, organizati4_.QZMC as QZMC20_3_, organizati4_.QZH as QZH20_3_, organizati4_.ORGNAME as ORGNAME20_3_, organizati4_.ORGCODE as ORGCODE20_3_, organizati4_.ORGABBRNAME as ORGABBRN6_20_3_, organizati4_.INNERCODE as INNERCODE20_3_, organizati4_.ORGTYPE as ORGTYPE20_3_, organizati4_.ORGLEVEL as ORGLEVEL20_3_, organizati4_.VIRTUALFLAG as VIRTUAL10_20_3_, organizati4_.UNITFLAG as UNITFLAG20_3_, organizati4_.BUSIFLAG as BUSIFLAG20_3_, organizati4_.DIRECTLYUNDERFLAG as DIRECTL13_20_3_, organizati4_.BUSIAREA as BUSIAREA20_3_, organizati4_.ADDRESS as ADDRESS20_3_, organizati4_.POSTCODE as POSTCODE20_3_, organizati4_.TELEPHONE as TELEPHONE20_3_, organizati4_.TELEGRAPHONE as TELEGRA18_20_3_, organizati4_.FAX as FAX20_3_, organizati4_.EMAIL as EMAIL20_3_, organizati4_.MANAGERID as MANAGERID20_3_, organizati4_.MANAGERNAME as MANAGER22_20_3_, organizati4_.TREEPATH as TREEPATH20_3_, organizati4_.
STATUS as STATUS20_3_, organizati4_.DISPLAYORDER as DISPLAY25_20_3_, organizati4_.UNITID as UNITID20_3_, organizati4_.ALIASNAME as ALIASNAME20_3_, organizati4_.DESCN as DESCN20_3_, organizati4_.DELFLAG as DELFLAG20_3_, organizati4_.OPERATERCODE as OPERATE30_20_3_, organizati4_.OPERATETIME as OPERATE31_20_3_, organizati4_.PARENTID as PARENTID20_3_, organizati5_.ID as ID20_4_, organizati5_.QZMC as QZMC20_4_, organizati5_.QZH as QZH20_4_, organizati5_.ORGNAME as ORGNAME20_4_, organizati5_.ORGCODE as ORGCODE20_4_, organizati5_.ORGABBRNAME as ORGABBRN6_20_4_, organizati5_.INNERCODE as INNERCODE20_4_, organizati5_.ORGTYPE as ORGTYPE20_4_, organizati5_.ORGLEVEL as ORGLEVEL20_4_, organizati5_.VIRTUALFLAG as VIRTUAL10_20_4_, organizati5_.UNITFLAG as UNITFLAG20_4_, organizati5_.BUSIFLAG as BUSIFLAG20_4_, organizati5_.DIRECTLYUNDERFLAG as DIRECTL13_20_4_, organizati5_.BUSIAREA as BUSIAREA20_4_, organizati5_.ADDRESS as ADDRESS20_4_, organizati5_.POSTCODE as POSTCODE20_4_, organizati5_.TELEPHONE as TELEPHONE20_4_, organizati5_.TELEGRAPHONE as TELEGRA18_20_4_, organizati5_.FAX as FAX20_4_, organizati5_.EMAIL as EMAIL20_4_, organizati5_.MANAGERID as MANAGERID20_4_, organizati5_.MANAGERNAME as MANAGER22_20_4_, organizati5_.TREEPATH as TREEPATH20_4_, organizati5_.STATUS as STATUS20_4_, organizati5_.DISPLAYORDER as DISPLAY25_20_4_, organizati5_.UNITID as UNITID20_4_, organizati5_.ALIASNAME as ALIASNAME20_4_, organizati5_.DESCN as DESCN20_4_, organizati5_.DE
LFLAG as DELFLAG20_4_, organizati5_.OPERATERCODE as OPERATE30_20_4_, organizati5_.OPERATETIME as OPERATE31_20_4_, organizati5_.PARENTID as PARENTID20_4_, position6_.ID as ID26_5_, position6_.POSITIONNAME as POSITION2_26_5_, position6_.POSITIONCODE as POSITION3_26_5_, position6_.POSITIONTYPE as POSITION4_26_5_, position6_.POSITIONLEVEL as POSITION5_26_5_, position6_.DISPLAYORDER as DISPLAYO6_26_5_, position6_.DESCN as DESCN26_5_, position6_.DELFLAG as DELFLAG26_5_, position6_.OPERATERCODE as OPERATER9_26_5_, position6_.OPERATETIME as OPERATE10_26_5_ from T_SYS_USER user0_ left outer join T_SYS_USERINFO userinfo1_ on user0_.USERINFOID=userinfo1_.ID left outer join T_SYS_ORGANIZATION organizati2_ on userinfo1_.ORGID=organizati2_.ID left outer join T_SYS_POSITION position3_ on userinfo1_.MAJORPOSITIONID=position3_.ID left outer join T_SYS_ORGANIZATION organizati4_ on user0_.ORGID=organizati4_.ID left outer join T_SYS_ORGANIZATION organizati5_ on user0_.MANAGERORGID=organizati5_.ID left outer join T_SYS_POSITION position6_ on user0_.MAJORPOSITIONID=position6_.ID where user0_.ID=:1 |
a6j557zy695dg |
select * from ( select * from ( select distinct xsajfaxx.ajbh, xsajfaxx.ajmc, xsajfaxx.zabid, xsajfaxx.cbdw, xsajfaxx.ajhj, xsajfaxx.ajlxid , max(PROCESSINSTANCE.operatetime) as operatetime from T_DOC_PROCESSINSTANCE PROCESSINSTANCE inner join T_DOC_PROCESSINSTANCEEX PROCESSINSTANCEEX on PROCESSINSTANCE.Id = PROCESSINSTANCEEX.PROCESSINSTANCEID inner join t_aj_xsajfaxx xsajfaxx on xsajfaxx.ajbh = PROCESSINSTANCEEX.Exvalue and PROCESSINSTANCEEX.EXKEY = 'AJBH' where PROCESSINSTANCE.ownertype = '03' and xsajfaxx.ajzt!='2904' and PROCESSINSTANCE.status = '02' and PROCESSINSTANCE.id not in (select ex.processInstanceid from T_DOC_PROCESSINSTANCEEX ex where ex.exkey = 'SSAJBH' and ex.processInstanceid = PROCESSINSTANCEEX.PROCESSINSTANCEID ) and PROCESSINSTANCE.Ownorg in (SELECT a.id FROM t_sys_organization a, t_sys_organization b , t_sys_organization c WHERE b.orgcode = :1 and a.orgcode like :2 and c.orgcode like :3 and a.busiarea <> '700' and ((b.directlyunderflag='0' and a.orglevel = 3 ) or ( b.directlyunderflag='1' and b.busiarea = '400' and c.busiarea<>'400' and c.orglevel = 2 and a.orglevel = 3 ) or ( b.directlyunderflag='1' and b.busiarea != '400' and a.orglevel = 2 ) or ( b.directlyunderflag='1' and b.busiarea = '400' and c.busiarea='400' and a.orglevel = 2 ) )) group by xsajfaxx.ajbh, xsajfaxx.ajmc, xsajfaxx.zabid, xsajfaxx.cbdw, xsajfaxx.ajhj, xsajfaxx.ajlxid ) order by operatetime desc ) where rownum <= :4
|
a73wbv1yu8x5c | select con#, type#, condlength, intcols, robj#, rcon#, match#, refact, nvl(enabled, 0), rowid, cols, nvl(defer, 0), mtime, nvl(spare1, 0) from cdef$ where obj#=:1 |
a97nb6x9hbvty | SELECT COUNT(*) as CT FROM (select distinct xz.ajbh, xz.ajmc, xz.cbdw, xz.zbmj, '' as id, '' as bllx, xz.zabid from t_aj_xzajfaxx xz inner join t_doc_wsqx qx on xz.ajbh = qx.asjbh where qx.treepath like '11000000000000.11022400000000%' and xz.ajzt !='3210' and xz.ajmc like :1) |
aaf9ptqwap0nc | select LoginId, UserName from t_sys_user where orgid = :1 |
am2sj70t5wtzz |
select * from ( select distinct ajbh, ajmc, cbdw, cbr, ajlx, operatetime from (select xs.ajbh, xs.ajmc, decode(xs.yscbdw, null, xs.cbdw, xs.yscbdw) as cbdw, decode(xs.yscbr, null, xs.cbr, xs.yscbr) as cbr, cast('01' as varchar2(2)) as ajlx, xs.operatetime from t_aj_xsajfaxx xs where xs.ajzt <> '2904' and exists (select 1 from T_AJ_Baz baz, T_AJ_Bazcyxx bazcyxx where baz.zbh = bazcyxx.zbh and baz.ajbh = xs.ajbh and bazcyxx.bamjzh = :1) and exists (select 1 from t_aj_xsajrydy rydy inner join t_ry_saryjbxx ryxx on rydy.rybh = ryxx.rybh where xs.ajbh = rydy.ajbh and ryxx.ryxm like '%???%' ) union all select xs.ajbh, xs.ajmc, decode(xs.yscbdw, null, xs.cbdw, xs.yscbdw) as cbdw, decode(xs.yscbr, null, xs.cbr, xs.yscbr) as cbr, cast('01' as varchar2(2)) as ajlx, xs.operatetime from t_aj_xsajfaxx xs where xs.ajzt <> '2904' and exists (select 1 from t_doc_processinstance ce, t_doc_processinstanceex ex, t_doc_approvalrecord app where ce.id = ex.processinstanceid and ce.id = app.instanceid and app.approvalstage in ('01', '02', '06') and ce.status = '99' and ex.exkey = 'AJBH' and ex.exvalue = xs.ajbh and app.operatercode = :2 and exists (select 1 from t_aj_xsajrydy rydy inner join t_ry_saryjbxx ryxx on rydy.rybh = ryxx.rybh where xs.ajbh = rydy.ajbh and ryxx.ryxm like '%???%' ) ) union all select xz.ajbh, xz.ajmc, decode(xz.yscbdw, null, xz.cbdw, xz.yscbdw), decode(xz.yscbr, null,
xz.zbmj, xz.yscbr), cast('02' as varchar2(2)) as ajlx, xz.operatetime from t_aj_xzajfaxx xz where xz.ajzt <> '3210' and exists (select 1 from T_AJ_Baz baz, T_AJ_Bazcyxx bazcyxx where baz.zbh = bazcyxx.zbh and baz.ajbh = xz.ajbh and bazcyxx.bamjzh = :3) and exists (select 1 from t_aj_xzajrydy rydy inner join t_ry_saryjbxx ryxx on rydy.rybh = ryxx.rybh where xz.ajbh = rydy.ajbh and ryxx.ryxm like '%???%' ) union all select xz.ajbh, xz.ajmc, decode(xz.yscbdw, null, xz.cbdw, xz.yscbdw), decode(xz.yscbr, null, xz.zbmj, xz.yscbr), cast('02' as varchar2(2)) as ajlx, xz.operatetime from t_aj_xzajfaxx xz where xz.ajzt <> '3210' and exists (select 1 from t_doc_processinstance ce, t_doc_processinstanceex ex, t_doc_approvalrecord app where ce.id = ex.processinstanceid and ce.id = app.instanceid and app.approvalstage in ('01', '02', '06') and (ce.status = '99' or ce.status = '98' and ce.processcode = 'CQTZSPB') and ex.exkey = 'AJBH' and ex.exvalue = xz.ajbh and app.operatercode = :4 and exists (select 1 from t_aj_xzajrydy rydy inner join t_ry_saryjbxx ryxx on rydy.rybh = ryxx.rybh where xz.ajbh = rydy.ajbh and ryxx.ryxm like '%???%' ) ) ) order by operatetime desc ) where rownum <= :5 |
aq2asprfzr3k1 |
update BJCICBB.T_INFO_VIOLATEDPEOPLE@BJCIC tardata set (VIOLATEDNO, NAME, SEXID, AGE, NATIONALITYID, RACEID, STATUSID, CID, BIRTHDAY, HOUSINGREASONID, ISILLPREGNANTID, TEL, SPECIALSTATUSID, INJURYDEGREEID, INJURYFORMID, INJURYSTARTTIME, INJURYENDTIME, REGISTEREDADDRESSID, DETAILADDRESS, APPEARANCECHARACTER, PRESENTADDRESSID, PRESENTDETAILADDRESS, ATTIRECHARACTERID, COMPANY, DAMAGESPOTID, DAMAGEQUANTITYID, WOUNDMETHOD, CASUALTYREASONID, DESTRUCTIONCORPSE, WOUNDTOOLID, ALIAS, DELFLAG, OPERATETIME, OPERATERID, RECORDDATE, RECORDER, NAMESPELL, DATALEVEL, ISSECRECY, LJSJ, RECORDEPTID) = (select BQHRBH, SUBSTRB(XM, 1, 30), XBID, NL, GJID, MZID, SFID, case when ZJLX='111' then ZJHM else '' end, to_char(CSRQ, 'yyyymmdd'), BJCICBB.transCode@BJCIC('JLYY', JZYYID), SFBCYID, DH, BJCICBB.transCode@BJCIC('TSSF', TSSFID), SHCDID, SHXSID, to_char(SWSJQ, 'yyyymmddhh24mi'), to_char(SWSJZ, 'yyyymmddhh24mi'), HKSZDID, HKCZDXZ, YZTZ, XZDID, XZDXZ, BJCICBB.transCode@BJCIC('TMTZ', TMTZID), GZDW, SSBW, SSSL, ZSSD, ZSYYID, SUBSTRB(HHSTQK, 1, 100), ZSGJID, BM, 'U', CAST(OPERATETIME AS DATE), BJCICBB.transCode@BJCIC('ZZYID', OPERATERCODE), to_char(LRRQ, 'yyyymmdd'), LRR, SUBSTRB(XMPY, 1, 32), BMJB, SFBM, LJSJID, BJCICBB.transCode@BJCIC('ZZJG', LRDWID) from T_RY_AJBQHRXX srcdata where srcdata.BQHRBH = tardata.VIOLATEDNO) where exists(select 1 from BJCICBB.T_TB_TBHC@BJCIC tbhc where tbhc.TABMAPID='AJBQHRXXTAB0001' and tbhc.DELFLAG='U' and tbhc.BUSINO0 = tardata.VIOLATEDNO)
|
at0nqzstprp3k |
insert into BJCICBB.T_INFO_CRIMINALBASEINFOR@BJCIC(ID, PEOPLENO, NAME, SEXID, BIRTHDAY, AGE, NICKNAME, EDUCATIONLEVELID, STATUSID, SPECIALSTATUSID, POLITICALAPPEARANCEID, RACEID, NATIONALITYID, HOUSINGREASONID, DEPARTMENT, DUTYID, REGISTEREDADDRESSID, DETAILADDRESS, JAILNO, PRESENTADDRESSID, PRESENTDETAILADDRESS, HOUSINGPOLICESID, ABODETYPEID, DEADREASONID, DEADDATE, CRIMINALTYPEID, CRIMINALSITUATIONID, ISILLPREGNANTID, GATHERREASONID, ISDRUGGERID, STATUREUPPERLIMIT, STATURELOWERLIMIT, PERSONIDENTIFIERID, ACCENTID, BLOODTYPEID, BODILYFORMID, COMPLEXIONID, HAIRSTYLEID, FACESTYLEID, EYEBOWID, EYEID, MOUTHID, NOSEID, LIPID, TOOTHID, CHINID, BEARDID, EARID, ATTIRECHARACTERID, CASETOOLID, CASEMETHODID, CASECHARACTERF, SUPPLYMETHOD, CASETOOLF, SPECIALITYID, CASEREASONID, FINGERPOINTCODE, DISPOSALMETHODID, DISPOSALAREAID, FLEEAREA, DISPOSALDETAILAREA, FIRSTFEAKOUTTIME, FEAKOUTDEGREE, COSTINSTANCE, FEAKOUTINSTANCE, FEAKOUTREASONID, FEAKOUTTYPEID, POSIONSORTID, RESUMETIMES, RESUMEINTERVALID, FEAKOUTRESULTID, MAININCOMEFORMID, FEAKOUTPLACE, SUSPICIONNO, FEAKOUTENVIRONMENTID, DNANO, ECONOMYSTATUS, MOBILE, TEL, RESUME, REMARK, ENGLISHNAME, PAPERKINDID, PAPERNUMBER, VISAKINDID, VISADEADTIMES, ENTERPORTID, ENTERTIME, SUBJECTPOLICESID, VISADEADTIMEE, DELFLAG, OPERATETIME, OPERATERID, ORGID, CHOOSEPARTID, CHOOSEOBJECTID, CHOOSELACATIONID, CASECHARACTERID, OTHERPART, NATIVEPLACEID, ISTRANSFER, CASEDIFLABOR, ISTEMPREGID, TEMPREGNUM, TEMPREGDEPID, RECORDEPTID, RECORDER, RECORDDATE, FRIMPEOPLENO
, PHOTOID, STATUSOUTID, NAMESPELL, JINGDU, WEIDU, RMK1, RMK2, RMK3, RMK4, RMK5, LJLGLS, RYZT, SQ, ARRESTDATE, ARRESTDEPARTMENTID, DATALEVEL, ISSECRECY, WORKTYPEID, LJSJ, CID) select BJCICBB.HIBERNATE_SEQUENCE.NEXTVAL@BJCIC, RYBH, SUBSTRB(XM, 1, 52), XBID, to_char(CSRQ, 'yyyymmdd'), NL, BM, BJCICBB.transCode@BJCIC('WHCD', JYCDID), SFID, BJCICBB.transCode@BJCIC('TSSF', TSSFID), BJCICBB.transCode@BJCIC('ZZMM', ZZMMID), MZID, GJID, BJCICBB.transCode@BJCIC('JLYY', JLYYID), GZDW, BJCICBB.transCode@BJCIC('ZW', ZWID), HJDID, HJDXZ, RSBH, ZZDID, ZZDXZ, BJCICBB.transCode@BJCIC('SSPCS', JZDSSPCSID), JSLXID, SWYYID, to_char(SWRQ, 'yyyymmdd'), AFLXID, AFZKID, SFBCY, CJYYID, SFXD, SGSX, SGXX, RYBS, KYID, XXID, BJCICBB.transCode@BJCIC('TMTZ', TXID), BJCICBB.transCode@BJCIC('TMTZ', FSID), BJCICBB.transCode@BJCIC('TMTZ', FXID), BJCICBB.transCode@BJCIC('TMTZ', NXID), BJCICBB.transCode@BJCIC('TMTZ', MID), BJCICBB.transCode@BJCIC('TMTZ', YID), BJCICBB.transCode@BJCIC('TMTZ', ZID), BJCICBB.transCode@BJCIC('TMTZ', BID), BJCICBB.transCode@BJCIC('TMTZ', CID), BJCICBB.transCode@BJCIC('TMTZ', YAID), BJCICBB.transCode@BJCIC('TMTZ', XBAID), BJCICBB.transCode@BJCIC('TMTZ', HXID), BJCICBB.transCode@BJCIC('TMTZ', ERID), BJCICBB.transCode@BJCIC('TMTZ', QTTMTZID), ZAGJID, BJCICBB.transCode@BJCIC('ZASD', ZASDID), ZATD1, BCSD, ZAGJ1, TSZCID, ZAYYID, ZWM, XZFFID, XZQYID, LCQY, XZDQXZ, to_char(to_date(SCXDSJ, 'yyyy-mm-dd hh24:mi:ss'), 'yyyymmddhh24mi'), DYCD, HFQK, XSQK, XDYYID, XDFSID, DPZLID, FXCS, FXJGID, XSH
GID, ZYJJLYID, XSDD, XYBH, XSHJID, DNAID, JJZK, SJ1, ZJ2, JL, BZ, YWM, BJCICBB.transCode@BJCIC('ZJZL', QTZJZL), QTZJHM, QZZLID, to_char(to_date(QZYXQKS, 'yyyy-mm-dd hh24:mi:ss'), 'yyyymmdd'), RJKAID, to_char(to_date(RJSJ, 'yyyy-mm-dd hh24:mi:ss'), 'yyyymmddhh24mi'), BJCICBB.transCode@BJCIC('SSPCS', SSPCS), to_char(to_date(QZYXQJZ, 'yyyy-mm-dd hh24:mi:ss'), 'yyyymmdd'), 'A', CAST(OPERATETIME AS DATE), BJCICBB.transCode@BJCIC('ZZYID', OPERATERCODE), BJCICBB.transCode@BJCIC('ORGID', ORGID), SUBSTRB(XZBWID, 1, 20), XZDXID, BJCICBB.transCode@BJCIC('XZCS', XZCSID), ZATDID, QTBW, JGID, SFYJ, ZAFG, SFBLZZZ, ZZZHM, BJCICBB.transCode@BJCIC('ZZJG', ZZZBLDWID), BJCICBB.transCode@BJCIC('ZZJG', LRDWID), SUBSTRB(LRR, 1, 32), to_char(LRRQ, 'yyyymmdd'), case when RDRYBH is null then 'R' else RDRYBH end, FILEID, SWSFID, SUBSTRB(XMPYM, 1, 32), JD, WD, BYZD1, BYZD2, BYZD3, BYZD4, BYZD5, LJLGLS, RYZT, SQ, to_char(JHRQ, 'yyyymmdd'), BJCICBB.transCode@BJCIC('ZZJG', JHDWID), BJCICBB.transCode@BJCIC('BMJB', BMJB), SFBM, ZAFGID, LJSJ, case when ZJZLID='111' then ZJHM else '' end from (select wfry.*, flmap.FILEID from T_RY_WFFZRYXX wfry left join T_TB_UPLOADFILESMAP flmap on wfry.ZPID=flmap.DATAID) srcdata where exists(select 1 from T_TB_TBHC tbhc where tbhc.TABMAPID='WFFZRYXXTAB0001' and tbhc.DELFLAG='A' and tbhc.DATAID=srcdata.ID) and OperateTime<=:1
|
av9qg79p2h2nu |
SELECT COUNT(*) as CT from ( select distinct xsajfaxx.ajbh, xsajfaxx.ajmc, xsajfaxx.zabid, xsajfaxx.cbdw, xsajfaxx.ajhj, xsajfaxx.ajlxid , max(PROCESSINSTANCE.operatetime) as operatetime from T_DOC_PROCESSINSTANCE PROCESSINSTANCE inner join T_DOC_PROCESSINSTANCEEX PROCESSINSTANCEEX on PROCESSINSTANCE.Id = PROCESSINSTANCEEX.PROCESSINSTANCEID inner join t_aj_xsajfaxx xsajfaxx on xsajfaxx.ajbh = PROCESSINSTANCEEX.Exvalue and PROCESSINSTANCEEX.EXKEY = 'AJBH' where PROCESSINSTANCE.ownertype = '03' and xsajfaxx.ajzt!='2904' and PROCESSINSTANCE.status = '02' and PROCESSINSTANCE.id not in (select ex.processInstanceid from T_DOC_PROCESSINSTANCEEX ex where ex.exkey = 'SSAJBH' and ex.processInstanceid = PROCESSINSTANCEEX.PROCESSINSTANCEID ) and PROCESSINSTANCE.Ownorg in (SELECT a.id FROM t_sys_organization a, t_sys_organization b , t_sys_organization c WHERE b.orgcode = :1 and a.orgcode like :2 and c.orgcode like :3 and a.busiarea <> '700' and ((b.directlyunderflag='0' and a.orglevel = 3 ) or ( b.directlyunderflag='1' and b.busiarea = '400' and c.busiarea<>'400' and c.orglevel = 2 and a.orglevel = 3 ) or ( b.directlyunderflag='1' and b.busiarea != '400' and a.orglevel = 2 ) or ( b.directlyunderflag='1' and b.busiarea = '400' and c.busiarea='400' and a.orglevel = 2 ) )) group by xsajfaxx.ajbh, xsajfaxx.ajmc, xsajfaxx.zabid, xsajfaxx.cbdw, xsajfaxx.ajhj, xsajfaxx.ajlxid )
|
avmbv593fhgmr |
SELECT COUNT(*) as CT FROM (select distinct ajbh, ajmc, cbdw, cbr, ajlx, operatetime from (select xs.ajbh, xs.ajmc, decode(xs.yscbdw, null, xs.cbdw, xs.yscbdw) as cbdw, decode(xs.yscbr, null, xs.cbr, xs.yscbr) as cbr, cast('01' as varchar2(2)) as ajlx, xs.operatetime from t_aj_xsajfaxx xs where xs.ajzt <> '2904' and exists (select 1 from T_AJ_Baz baz, T_AJ_Bazcyxx bazcyxx where baz.zbh = bazcyxx.zbh and baz.ajbh = xs.ajbh and bazcyxx.bamjzh = :1) and exists (select 1 from t_aj_xsajrydy rydy inner join t_ry_saryjbxx ryxx on rydy.rybh = ryxx.rybh where xs.ajbh = rydy.ajbh and ryxx.ryxm like '%???%' ) union all select xs.ajbh, xs.ajmc, decode(xs.yscbdw, null, xs.cbdw, xs.yscbdw) as cbdw, decode(xs.yscbr, null, xs.cbr, xs.yscbr) as cbr, cast('01' as varchar2(2)) as ajlx, xs.operatetime from t_aj_xsajfaxx xs where xs.ajzt <> '2904' and exists (select 1 from t_doc_processinstance ce, t_doc_processinstanceex ex, t_doc_approvalrecord app where ce.id = ex.processinstanceid and ce.id = app.instanceid and app.approvalstage in ('01', '02', '06') and ce.status = '99' and ex.exkey = 'AJBH' and ex.exvalue = xs.ajbh and app.operatercode = :2 and exists (select 1 from t_aj_xsajrydy rydy inner join t_ry_saryjbxx ryxx on rydy.rybh = ryxx.rybh where xs.ajbh = rydy.ajbh and ryxx.ryxm like '%???%' ) ) union all select xz.ajbh, xz.ajmc, decode(xz.yscbdw, null, xz.cbdw, xz.yscbdw), decode(xz.ysc
br, null, xz.zbmj, xz.yscbr), cast('02' as varchar2(2)) as ajlx, xz.operatetime from t_aj_xzajfaxx xz where xz.ajzt <> '3210' and exists (select 1 from T_AJ_Baz baz, T_AJ_Bazcyxx bazcyxx where baz.zbh = bazcyxx.zbh and baz.ajbh = xz.ajbh and bazcyxx.bamjzh = :3) and exists (select 1 from t_aj_xzajrydy rydy inner join t_ry_saryjbxx ryxx on rydy.rybh = ryxx.rybh where xz.ajbh = rydy.ajbh and ryxx.ryxm like '%???%' ) union all select xz.ajbh, xz.ajmc, decode(xz.yscbdw, null, xz.cbdw, xz.yscbdw), decode(xz.yscbr, null, xz.zbmj, xz.yscbr), cast('02' as varchar2(2)) as ajlx, xz.operatetime from t_aj_xzajfaxx xz where xz.ajzt <> '3210' and exists (select 1 from t_doc_processinstance ce, t_doc_processinstanceex ex, t_doc_approvalrecord app where ce.id = ex.processinstanceid and ce.id = app.instanceid and app.approvalstage in ('01', '02', '06') and (ce.status = '99' or ce.status = '98' and ce.processcode = 'CQTZSPB') and ex.exkey = 'AJBH' and ex.exvalue = xz.ajbh and app.operatercode = :4 and exists (select 1 from t_aj_xzajrydy rydy inner join t_ry_saryjbxx ryxx on rydy.rybh = ryxx.rybh where xz.ajbh = rydy.ajbh and ryxx.ryxm like '%???%' ) ) ) ) |
ayjzhv119npvh |
SELECT COUNT(*) as CT FROM (select distinct ajbh, ajmc, cbdw, cbr, ajlx, operatetime from (select xs.ajbh, xs.ajmc, decode(xs.yscbdw, null, xs.cbdw, xs.yscbdw) as cbdw, decode(xs.yscbr, null, xs.cbr, xs.yscbr) as cbr, cast('01' as varchar2(2)) as ajlx, xs.operatetime from t_aj_xsajfaxx xs where xs.ajzt <> '2904' and exists (select 1 from T_AJ_Baz baz, T_AJ_Bazcyxx bazcyxx where baz.zbh = bazcyxx.zbh and baz.ajbh = xs.ajbh and bazcyxx.bamjzh = :1) and exists (select 1 from t_aj_xsajrydy rydy inner join t_ry_saryjbxx ryxx on rydy.rybh = ryxx.rybh where xs.ajbh = rydy.ajbh and ryxx.ryxm like '%?%' ) union all select xs.ajbh, xs.ajmc, decode(xs.yscbdw, null, xs.cbdw, xs.yscbdw) as cbdw, decode(xs.yscbr, null, xs.cbr, xs.yscbr) as cbr, cast('01' as varchar2(2)) as ajlx, xs.operatetime from t_aj_xsajfaxx xs where xs.ajzt <> '2904' and exists (select 1 from t_doc_processinstance ce, t_doc_processinstanceex ex, t_doc_approvalrecord app where ce.id = ex.processinstanceid and ce.id = app.instanceid and app.approvalstage in ('01', '02', '06') and ce.status = '99' and ex.exkey = 'AJBH' and ex.exvalue = xs.ajbh and app.operatercode = :2 and exists (select 1 from t_aj_xsajrydy rydy inner join t_ry_saryjbxx ryxx on rydy.rybh = ryxx.rybh where xs.ajbh = rydy.ajbh and ryxx.ryxm like '%?%' ) ) union all select xz.ajbh, xz.ajmc, decode(xz.yscbdw, null, xz.cbdw, xz.yscbdw), decode(xz.yscbr,
null, xz.zbmj, xz.yscbr), cast('02' as varchar2(2)) as ajlx, xz.operatetime from t_aj_xzajfaxx xz where xz.ajzt <> '3210' and exists (select 1 from T_AJ_Baz baz, T_AJ_Bazcyxx bazcyxx where baz.zbh = bazcyxx.zbh and baz.ajbh = xz.ajbh and bazcyxx.bamjzh = :3) and exists (select 1 from t_aj_xzajrydy rydy inner join t_ry_saryjbxx ryxx on rydy.rybh = ryxx.rybh where xz.ajbh = rydy.ajbh and ryxx.ryxm like '%?%' ) union all select xz.ajbh, xz.ajmc, decode(xz.yscbdw, null, xz.cbdw, xz.yscbdw), decode(xz.yscbr, null, xz.zbmj, xz.yscbr), cast('02' as varchar2(2)) as ajlx, xz.operatetime from t_aj_xzajfaxx xz where xz.ajzt <> '3210' and exists (select 1 from t_doc_processinstance ce, t_doc_processinstanceex ex, t_doc_approvalrecord app where ce.id = ex.processinstanceid and ce.id = app.instanceid and app.approvalstage in ('01', '02', '06') and (ce.status = '99' or ce.status = '98' and ce.processcode = 'CQTZSPB') and ex.exkey = 'AJBH' and ex.exvalue = xz.ajbh and app.operatercode = :4 and exists (select 1 from t_aj_xzajrydy rydy inner join t_ry_saryjbxx ryxx on rydy.rybh = ryxx.rybh where xz.ajbh = rydy.ajbh and ryxx.ryxm like '%?%' ) ) ) ) |
b4sytt8rj6quc |
select * from ( select distinct ajbh, ajmc, cbdw, cbr, ajlx, operatetime from (select xs.ajbh, xs.ajmc, decode(xs.yscbdw, null, xs.cbdw, xs.yscbdw) as cbdw, decode(xs.yscbr, null, xs.cbr, xs.yscbr) as cbr, cast('01' as varchar2(2)) as ajlx, xs.operatetime from t_aj_xsajfaxx xs where xs.ajzt <> '2904' and exists (select 1 from T_AJ_Baz baz, T_AJ_Bazcyxx bazcyxx where baz.zbh = bazcyxx.zbh and baz.ajbh = xs.ajbh and bazcyxx.bamjzh = :1) and exists (select 1 from t_aj_xsajrydy rydy inner join t_ry_saryjbxx ryxx on rydy.rybh = ryxx.rybh where xs.ajbh = rydy.ajbh and ryxx.ryxm like '%???%' ) union all select xs.ajbh, xs.ajmc, decode(xs.yscbdw, null, xs.cbdw, xs.yscbdw) as cbdw, decode(xs.yscbr, null, xs.cbr, xs.yscbr) as cbr, cast('01' as varchar2(2)) as ajlx, xs.operatetime from t_aj_xsajfaxx xs where xs.ajzt <> '2904' and exists (select 1 from t_doc_processinstance ce, t_doc_processinstanceex ex, t_doc_approvalrecord app where ce.id = ex.processinstanceid and ce.id = app.instanceid and app.approvalstage in ('01', '02', '06') and ce.status = '99' and ex.exkey = 'AJBH' and ex.exvalue = xs.ajbh and app.operatercode = :2 and exists (select 1 from t_aj_xsajrydy rydy inner join t_ry_saryjbxx ryxx on rydy.rybh = ryxx.rybh where xs.ajbh = rydy.ajbh and ryxx.ryxm like '%???%' ) ) union all select xz.ajbh, xz.ajmc, decode(xz.yscbdw, null, xz.cbdw, xz.yscbdw), decode(xz.yscbr, null,
xz.zbmj, xz.yscbr), cast('02' as varchar2(2)) as ajlx, xz.operatetime from t_aj_xzajfaxx xz where xz.ajzt <> '3210' and exists (select 1 from T_AJ_Baz baz, T_AJ_Bazcyxx bazcyxx where baz.zbh = bazcyxx.zbh and baz.ajbh = xz.ajbh and bazcyxx.bamjzh = :3) and exists (select 1 from t_aj_xzajrydy rydy inner join t_ry_saryjbxx ryxx on rydy.rybh = ryxx.rybh where xz.ajbh = rydy.ajbh and ryxx.ryxm like '%???%' ) union all select xz.ajbh, xz.ajmc, decode(xz.yscbdw, null, xz.cbdw, xz.yscbdw), decode(xz.yscbr, null, xz.zbmj, xz.yscbr), cast('02' as varchar2(2)) as ajlx, xz.operatetime from t_aj_xzajfaxx xz where xz.ajzt <> '3210' and exists (select 1 from t_doc_processinstance ce, t_doc_processinstanceex ex, t_doc_approvalrecord app where ce.id = ex.processinstanceid and ce.id = app.instanceid and app.approvalstage in ('01', '02', '06') and (ce.status = '99' or ce.status = '98' and ce.processcode = 'CQTZSPB') and ex.exkey = 'AJBH' and ex.exvalue = xz.ajbh and app.operatercode = :4 and exists (select 1 from t_aj_xzajrydy rydy inner join t_ry_saryjbxx ryxx on rydy.rybh = ryxx.rybh where xz.ajbh = rydy.ajbh and ryxx.ryxm like '%???%' ) ) ) order by operatetime desc ) where rownum <= :5 |
b6qtrn4pqycjc | select x.id rid, x.resourcename, x.resourcecode, x.resourcetype, x.classname, x.methodname, x.realid, x.realresource, y.id mid, y.modulename, y.modulecode, y.modulecontent from t_sys_resource x, t_sys_module y where x.moduleid=y.id(+) and x.id in (select resourceid from t_sys_permission_resource where permissionid in (select permissionid from t_sys_role_permission where roleid in (select roleid from t_sys_user_role where userid=(select id from t_sys_user where loginid=:1) union select roleid from t_sys_role_group where groupid in (select groupid from t_sys_user_group where userid=(select id from t_sys_user where loginid=:2))))) and x.resourcetype=:3 order by x.resourcetype, y.modulecode |
b6zcgxw77633w |
SELECT COUNT(*) as CT from ( select distinct wsqx.docid , wsqx.asjbh, wsqx.dxbh, wsqx.cqdx, wsqx.wslx, wsqx.mbmc, wsqx.status, wsqx.processcode, wsqx.starttime, wsqx.loginorgcode , wsqx.username, wsqx.owner , wsqx.ender , wsqx.proid , wsqx.temid, wsqx.dxmc , wsqx.cqlx from t_doc_wsqxhis wsqx where wsqx.cqlx = '1' and wsqx.treepath like :1 and (wsqx.status = '99' or (wsqx.status = '98' and wsqx.processcode in ('CQTZSPB', 'LDJYCPBG', 'LDJYSWZXCPB'))) and wsqx.cqdx not in ('05', '06') and wsqx.loginorgcode in (select orgcode from t_sys_organization where treepath like '11000000000000.11010800000000%') and wsqx.mbmc = :2 and wsqx.starttime >= to_Date(:3, 'yyyy-MM-dd hh24:mi') and wsqx.starttime<= to_Date(:4, 'yyyy-MM-dd hh24:mi') and wsqx.status = :5 union all select distinct wsqx.docid , wsqx.asjbh, wsqx.dxbh, wsqx.cqdx, wsqx.wslx, wsqx.mbmc, wsqx.status, wsqx.processcode, wsqx.starttime, wsqx.loginorgcode , wsqx.username, wsqx.owner , wsqx.ender , wsqx.proid , wsqx.temid, wsqx.dxmc , wsqx.cqlx from t_doc_wsqxhis wsqx where wsqx.cqlx = '2' and wsqx.treepath like :6 and wsqx.cqdx not in ('05', '06') and wsqx.loginorgcode in (select orgcode from t_sys_organization where treepath like '11000000000000.11010800000000%') and wsqx.mbmc = :7 and wsqx.starttime >= to_Date(:8, 'yyyy-MM-dd hh24:mi') and wsqx.starttime<= t
o_Date(:9, 'yyyy-MM-dd hh24:mi') and wsqx.status = :10 ) |
b87jst71gvaf7 |
select * from ( select distinct ajbh, ajmc, cbdw, cbr, ajlx, operatetime from (select xs.ajbh, xs.ajmc, decode(xs.yscbdw, null, xs.cbdw, xs.yscbdw) as cbdw, decode(xs.yscbr, null, xs.cbr, xs.yscbr) as cbr, cast('01' as varchar2(2)) as ajlx, xs.operatetime from t_aj_xsajfaxx xs where xs.ajzt <> '2904' and exists (select 1 from T_AJ_Baz baz, T_AJ_Bazcyxx bazcyxx where baz.zbh = bazcyxx.zbh and baz.ajbh = xs.ajbh and bazcyxx.bamjzh = :1) and exists (select 1 from t_aj_xsajrydy rydy inner join t_ry_saryjbxx ryxx on rydy.rybh = ryxx.rybh where xs.ajbh = rydy.ajbh and ryxx.ryxm like '%???%' ) union all select xs.ajbh, xs.ajmc, decode(xs.yscbdw, null, xs.cbdw, xs.yscbdw) as cbdw, decode(xs.yscbr, null, xs.cbr, xs.yscbr) as cbr, cast('01' as varchar2(2)) as ajlx, xs.operatetime from t_aj_xsajfaxx xs where xs.ajzt <> '2904' and exists (select 1 from t_doc_processinstance ce, t_doc_processinstanceex ex, t_doc_approvalrecord app where ce.id = ex.processinstanceid and ce.id = app.instanceid and app.approvalstage in ('01', '02', '06') and ce.status = '99' and ex.exkey = 'AJBH' and ex.exvalue = xs.ajbh and app.operatercode = :2 and exists (select 1 from t_aj_xsajrydy rydy inner join t_ry_saryjbxx ryxx on rydy.rybh = ryxx.rybh where xs.ajbh = rydy.ajbh and ryxx.ryxm like '%???%' ) ) union all select xz.ajbh, xz.ajmc, decode(xz.yscbdw, null, xz.cbdw, xz.yscbdw), decode(xz.yscbr, null,
xz.zbmj, xz.yscbr), cast('02' as varchar2(2)) as ajlx, xz.operatetime from t_aj_xzajfaxx xz where xz.ajzt <> '3210' and exists (select 1 from T_AJ_Baz baz, T_AJ_Bazcyxx bazcyxx where baz.zbh = bazcyxx.zbh and baz.ajbh = xz.ajbh and bazcyxx.bamjzh = :3) and exists (select 1 from t_aj_xzajrydy rydy inner join t_ry_saryjbxx ryxx on rydy.rybh = ryxx.rybh where xz.ajbh = rydy.ajbh and ryxx.ryxm like '%???%' ) union all select xz.ajbh, xz.ajmc, decode(xz.yscbdw, null, xz.cbdw, xz.yscbdw), decode(xz.yscbr, null, xz.zbmj, xz.yscbr), cast('02' as varchar2(2)) as ajlx, xz.operatetime from t_aj_xzajfaxx xz where xz.ajzt <> '3210' and exists (select 1 from t_doc_processinstance ce, t_doc_processinstanceex ex, t_doc_approvalrecord app where ce.id = ex.processinstanceid and ce.id = app.instanceid and app.approvalstage in ('01', '02', '06') and (ce.status = '99' or ce.status = '98' and ce.processcode = 'CQTZSPB') and ex.exkey = 'AJBH' and ex.exvalue = xz.ajbh and app.operatercode = :4 and exists (select 1 from t_aj_xzajrydy rydy inner join t_ry_saryjbxx ryxx on rydy.rybh = ryxx.rybh where xz.ajbh = rydy.ajbh and ryxx.ryxm like '%???%' ) ) ) order by operatetime desc ) where rownum <= :5 |
b8f41f025pnq8 |
SELECT COUNT(*) as CT FROM (select distinct ajbh, ajmc, cbdw, cbr, ajlx, operatetime from (select xs.ajbh, xs.ajmc, decode(xs.yscbdw, null, xs.cbdw, xs.yscbdw) as cbdw, decode(xs.yscbr, null, xs.cbr, xs.yscbr) as cbr, cast('01' as varchar2(2)) as ajlx, xs.operatetime from t_aj_xsajfaxx xs where xs.ajzt <> '2904' and exists (select 1 from T_AJ_Baz baz, T_AJ_Bazcyxx bazcyxx where baz.zbh = bazcyxx.zbh and baz.ajbh = xs.ajbh and bazcyxx.bamjzh = :1) and exists (select 1 from t_aj_xsajrydy rydy inner join t_ry_saryjbxx ryxx on rydy.rybh = ryxx.rybh where xs.ajbh = rydy.ajbh and ryxx.ryxm like '%???%' ) union all select xs.ajbh, xs.ajmc, decode(xs.yscbdw, null, xs.cbdw, xs.yscbdw) as cbdw, decode(xs.yscbr, null, xs.cbr, xs.yscbr) as cbr, cast('01' as varchar2(2)) as ajlx, xs.operatetime from t_aj_xsajfaxx xs where xs.ajzt <> '2904' and exists (select 1 from t_doc_processinstance ce, t_doc_processinstanceex ex, t_doc_approvalrecord app where ce.id = ex.processinstanceid and ce.id = app.instanceid and app.approvalstage in ('01', '02', '06') and ce.status = '99' and ex.exkey = 'AJBH' and ex.exvalue = xs.ajbh and app.operatercode = :2 and exists (select 1 from t_aj_xsajrydy rydy inner join t_ry_saryjbxx ryxx on rydy.rybh = ryxx.rybh where xs.ajbh = rydy.ajbh and ryxx.ryxm like '%???%' ) ) union all select xz.ajbh, xz.ajmc, decode(xz.yscbdw, null, xz.cbdw, xz.yscbdw), decode(xz.ysc
br, null, xz.zbmj, xz.yscbr), cast('02' as varchar2(2)) as ajlx, xz.operatetime from t_aj_xzajfaxx xz where xz.ajzt <> '3210' and exists (select 1 from T_AJ_Baz baz, T_AJ_Bazcyxx bazcyxx where baz.zbh = bazcyxx.zbh and baz.ajbh = xz.ajbh and bazcyxx.bamjzh = :3) and exists (select 1 from t_aj_xzajrydy rydy inner join t_ry_saryjbxx ryxx on rydy.rybh = ryxx.rybh where xz.ajbh = rydy.ajbh and ryxx.ryxm like '%???%' ) union all select xz.ajbh, xz.ajmc, decode(xz.yscbdw, null, xz.cbdw, xz.yscbdw), decode(xz.yscbr, null, xz.zbmj, xz.yscbr), cast('02' as varchar2(2)) as ajlx, xz.operatetime from t_aj_xzajfaxx xz where xz.ajzt <> '3210' and exists (select 1 from t_doc_processinstance ce, t_doc_processinstanceex ex, t_doc_approvalrecord app where ce.id = ex.processinstanceid and ce.id = app.instanceid and app.approvalstage in ('01', '02', '06') and (ce.status = '99' or ce.status = '98' and ce.processcode = 'CQTZSPB') and ex.exkey = 'AJBH' and ex.exvalue = xz.ajbh and app.operatercode = :4 and exists (select 1 from t_aj_xzajrydy rydy inner join t_ry_saryjbxx ryxx on rydy.rybh = ryxx.rybh where xz.ajbh = rydy.ajbh and ryxx.ryxm like '%???%' ) ) ) ) |
b8jgnty32yb5w |
update BJCICBB.T_INFO_CRMNLCS@BJCIC tardata set (CASNO, CASNAME, CASCLSIFID, CASTYPID, CASLEVLID, ADHOCID, PLICESTAID, DUTYTEMID, BELOGRUP, OCRPLACID, CASADDR, CASBEGNTM, CASENDTM, OCRAREAID, CASEWEEKID, DAYOFWEEK, DICOVRYTM, DICRFOMID, LOCLTYPID, RECEIVER, RECEDEPTID, RECORDEPTID, RECORDERNO, RECORDER, RECORDDATE, CASDETAIL, KEYWORDS, ACCEPTTIME, ACCEPTOR, ACCDEPID, HELPDEPID, LOSSTOTL, CASCLUE, CIMFEATURID, CIMFEATUR, CIMTOOLID, CIMTOOL, DOMEANSID, DOMEANS, PREMEANSID, CAMOUMEANSID, PICKTYPID, VEHICODEID, BELOSTRTID, CULDEPTID, INNDEPTID, CASESTATUSID, WEATHERID, CHANCEID, TIMEID, DATEID, COUNT, ISGROUPID, VIOLATIONID, LOCATION, PARTID, PART, ACCOUTS, ZHGSD, ACCOUTORGID, SUSTEL, SUSTELAREAID, SUSDISCRP, ISLETID, JINGDU, WEIDU, DQBS, SCZ, FXZ, REMARK, OPERATETIME, DELFLAG, CASSIGNID, PLICEAREID, LOCATIONID, COMMUNITYID, OPERATERID, ACCMODEID, SUSNET, CASETREATMENTID) = (select AJBH, AJMC, BJCICBB.transCode@BJCIC('AJLB', XSAJZABID), BJCICBB.transCode@BJCIC('AJLX', AJLXID), SAJBID, BJCICBB.transCode@BJCIC('ZABS', ZABSID), BJCICBB.transCode@BJCIC('SSPCS', PCSGXID), ZRQDID, GSDZ, FADDID, SUBSTRB(FADDXZ, 1, 100), to_char(FAKSSJ, 'yyyymmddhh24mi'), to_char(FAJSSJ, 'yyyymmddhh24mi'), FAQYID, FAZ, FASJXQ, to_char(FXSJ, 'yyyymmddhh24mi'), FXXS, XCLX, SUBSTRB(JBR, 1, 30), BJCICBB.transCode@BJCIC('ZZJG', JBDWID), BJCICBB.transCode@BJCIC('ZZJG', LRDWID), BJCICBB.transCode@BJCIC('ZZYZH', LRRZH), SUBSTRB(LRR, 1, 32), to_char(LRRQ, 'yyyymmdd'), JYAQ, JYAQGJZ, to_char(SLSJ, 'yyyymmddhh24mi'
), SUBSTRB(SLR, 1, 30), BJCICBB.transCode@BJCIC('ZZJG', SLBMID), BJCICBB.transCode@BJCIC('ZZJG', XBBMID), SSZJZ, SAXS, ZATDID, BCZATD, ZAGJID, BCZAGJ, BJCICBB.transCode@BJCIC('ZASD', SSSDID), BCSSSD, BJCICBB.transCode@BJCIC('ZASD', YBSDID), BJCICBB.transCode@BJCIC('ZASD', WZSDID), PQLXID, CCDMID, GSJDID, WBDWID, NBDWID, BJCICBB.transCode@BJCIC('AJHJ', AJHJ), TQID, JHID, SJID, RQID, GJZARS, SFJTZA, QHGXID, BCXZCS, XZBWID, BCXZBW, SXZH, ZHDSD, ZHGSD, SXDH, DHGSD, SXRTZMS, SFCZF, JD, WD, DQBS, SCZ, FXZ, BZ, CAST(OPERATETIME AS DATE), 'U', BJCICBB.transCode@BJCIC('ZABS', ZABSID), FADDSSJQ, BJCICBB.transCode@BJCIC('SLXZZAXZCSD', FSCSID), FADDSSSQ, BJCICBB.transCode@BJCIC('ZZYID', OPERATERCODE), BJCICBB.transCode@BJCIC('SLXZAJLY', AJLYID), SXWZ, '11' from (select xzfa.ID, slxz.AJBH, xzfa.AJMC, slxz.XSAJZABID, xzfa.AJLXID, slxz.SAJBID, xzfa.ZABSID, xzfa.PCSGXID, slxz.ZRQDID, slxz.GSDZ, xzfa.FADDID, xzfa.FADDXZ, xzfa.FAKSSJ, xzfa.FAJSSJ, xzfa.FAQYID, slxz.FAZ, slxz.FASJXQ, xzfa.FXSJ, xzfa.FXXS, xzfa.XCLX, xzfa.JBR, xzfa.JBDWID, xzfa.LRDWID, xzfa.LRRZH, xzfa.LRR, xzfa.LRRQ, xzfa.JYAQ, slxz.JYAQGJZ, xzfa.SLSJ, xzfa.SLR, slxz.SLBMID, slxz.XBBMID, xzfa.SSZJZ, slxz.SAXS, slxz.ZATDID, slxz.BCZATD, slxz.ZAGJID, slxz.BCZAGJ, slxz.SSSDID, slxz.BCSSSD, slxz.YBSDID, slxz.WZSDID, slxz.PQLXID, slxz.CCDMID, slxz.GSJDID, slxz.WBDWID, slxz.NBDWID, xzfa.AJHJ, slxz.TQID, slxz.JHID, slxz.SJID, slxz.RQID, slxz.GJZARS, slxz.SFJTZA, xzfa.QHGXID, slxz.BCXZCS, xzfa.XZBWID, slxz.BCXZBW, slxz.SXZH, slxz.ZHDSD
, slxz.ZHGSD, slxz.SXDH, slxz.DHGSD, slxz.SXRTZMS, slxz.SFCZF, xzfa.JD, xzfa.WD, slxz.DQBS, xzfa.SCZ, xzfa.FXZ, slxz.BZ, slxz.ORGID, slxz.OPERATETIME, slxz.DELFLAG, xzfa.FADDSSSQ, xzfa.FSCSID, xzfa.FADDSSJQ, xzfa.OPERATERCODE, xzfa.AJLYID, slxz.SXWZ, xzfa.AJCLID from T_AJ_XZAJFAXX xzfa left join T_AJ_SLXZAJFAXX slxz on xzfa.AJBH = slxz.AJBH where xzfa.AJXZ in ('010302500', '010302600', '010302800', '010405900', '010405901', '010405902', '010405903', '010405904', '010406000', '010406001', '010406002', '010406003', '010406004', '010406100', '010406200', '010406300', '010406400', '010406401', '010406402', '010406500', '010406501', '010406502', '010406503', '010406600', '010406601', '010406602', '010406603', '010406604', '010405800')) srcdata where srcdata.AJBH = tardata.CASNO) where exists(select 1 from BJCICBB.T_TB_TBHC@BJCIC tbhc where tbhc.TABMAPID='XZAJFAXXTAB0001' and tbhc.DELFLAG='U' and tbhc.BUSINO0 = tardata.CASNO) |
b9ru873rhupjk | select wsyzdy0_.ID as ID197_, wsyzdy0_.DATAVERSION as DATAVERS2_197_, wsyzdy0_.INSTANCEID as INSTANCEID197_, wsyzdy0_.DOCID as DOCID197_, wsyzdy0_.TEMPID as TEMPID197_, wsyzdy0_.GJZ as GJZ197_, wsyzdy0_.YZMC as YZMC197_, wsyzdy0_.QFZ as QFZ197_, wsyzdy0_.OPERATERCODE as OPERATER9_197_, wsyzdy0_.ORGID as ORGID197_, wsyzdy0_.OPERATETIME as OPERATE11_197_, wsyzdy0_.DELFLAG as DELFLAG197_ from T_DOC_WSYZDY wsyzdy0_ where wsyzdy0_.DOCID=:1 |
ba2my4bz5bkac | select distinct w.rybh, w.xm, w.xbid, w.csrq, w.zzm, w.zay, w.dqty, w.SAZT, p.FEATURENAME from T_RY_WFFZRYXX w inner join T_DOC_PROCESSINSTANCE p on p.id=w.dqty where ((w.sczt <> '00' and w.sczt <> '08') or w.sczt is null) and w.sazt='01' and p.status='01' and ( exists ( select 1 from T_AJ_XSAJRYDY xs1 inner join T_AJ_XSAJFAXX xs2 on xs1.ajbh = xs2.ajbh inner join T_AJ_BAZ baz on baz.ajbh = xs1.ajbh inner join T_AJ_BAZCYXX bazcyxx on baz.zbh = bazcyxx.zbh where xs2.ajzt <> '2904' and baz.xjbs = '1' and bazcyxx.sfzaib = '1' and bazcyxx.bamjzh = :1 and xs1.rybh = w.rybh ) or exists( select 1 from T_AJ_XZAJRYDY xz1 inner join T_AJ_XZAJFAXX xz2 on xz1.ajbh = xz2.ajbh inner join T_AJ_BAZ baz on baz.ajbh = xz1.ajbh inner join T_AJ_BAZCYXX bazcyxx on baz.zbh = bazcyxx.zbh where xz2.ajzt <> '3210' and baz.xjbs = '1' and bazcyxx.sfzaib = '1' and bazcyxx.bamjzh = :2 and xz1.rybh = w.rybh ) ) and not exists(select 1 From t_doc_processinstance a where a.instcode = w.rybh and a.status='02' and a.INSTANCETYPE='02') order by w.xm desc |
bday22s07x0kd | SELECT * FROM H_WP_SDWPXX
WHERE operatetime >=:1
and delflag='D'
and operatetime >= TO_DATE('2012-01-01 20:00:00', 'yyyy-mm-dd hh24:mi:ss') |
bdgynrscjb0yx |
update BJCICBB.T_INFO_CRMNLCS@BJCIC tardata set (CASNO, CASNAME, CASCLSIFID, PLSCLSIFID, CASTYPID, ACCITYPID, CASLEVLID, CASSIGNID, ADHOCID, PLICESTAID, DUTYTEMID, BELOGRUP, PLICEAREID, OCRPLACID, CASADDR, CASBEGNTM, CASENDTM, OCRAREAID, CASEWEEKID, DAYOFWEEK, DICOVRYTM, DICRFOMID, LOCLTYPID, RECEIVER, RECEDEPTID, REGISTTM, REGISTDEPID, REGISTTOTL, RECORDEPTID, RECORDERNO, RECORDER, RECORDDATE, CASSOURCEID, CASDETAIL, KEYWORDS, ACCEPTTIME, ACCEPTOR, ACCMODEID, ACCDEPID, HELPDEPID, TREATMENTTIME, TREATMENTDEPTID, DATATREATDEPT, LOSSTOTL, CASCLUE, CIMFEATURID, CIMFEATUR, CIMTOOLID, CIMTOOL, DOMEANSID, DOMEANS, PREMEANSID, CAMOUMEANSID, PICKTYPID, VEHICODEID, BELOSTRTID, CULDEPTID, INNDEPTID, LEVELID, CIRCUMSS, REMOVEFLG, TRANSFERDEP, CASESTATUSID, TRAWEATHERID, WEATHERID, CHANCEID, TIMEID, DATEID, COUNT, ISGROUPID, VIOLATIONID, LOCATIONID, LOCATION, PARTID, PART, CRITYPID, ISREFERNATIONID, ACCOUTS, ZHGSD, ACCOUTORGID, SUSTEL, SUSTELAREAID, SUSDISCRP, ISLETID, JINGDU, WEIDU, DQBS, DATALEVEL, ISSECRECY, COMMUNITYID, TRALOCLTYPID, SSGS, QYDM, SCZ, FXZ, SUSNET, REMARK, OPERATERID, OPERATETIME, DELFLAG, CASETREATMENTID) = (select AJBH, AJMC, BJCICBB.transCode@BJCIC('AJLB', ZABID), BJCICBB.transCode@BJCIC('AJLB', BCABID), BJCICBB.transCode@BJCIC('AJLX', AJLXID), SGLXID, SAJBID, BJCICBB.transCode@BJCIC('ZABS', ZABSID), ZABS, BJCICBB.transCode@BJCIC('SSPCS', PCSGXID), ZRQDID, GSDZ, JQ, FADDID, SUBSTRB(FADDXZ, 1, 100), to_char(FAKSSJ, 'yyyymmddhh24mi'), to_char(FAJSSJ, 'yyyymmddhh24mi')
, FAQYID, FAZ, FASJXQ, to_char(FXSJ, 'yyyymmddhh24mi'), FXXSID, XCLXID, SUBSTRB(JBR, 1, 30), BJCICBB.transCode@BJCIC('ZZJG', JBDWID), to_char(LASJ, 'yyyymmddhh24mi'), BJCICBB.transCode@BJCIC('ZZJG', LADW), LAZJZJE, BJCICBB.transCode@BJCIC('ZZJG', LRDW), BJCICBB.transCode@BJCIC('ZZYZH', LRRZH), SUBSTRB(LRR, 1, 32), to_char(LRRQ, 'yyyymmdd'), AJLYID, JYAQ, JYAQGJZ, to_char(SLSJ, 'yyyymmddhh24mi'), SUBSTRB(SLR, 1, 30), SLFSID, BJCICBB.transCode@BJCIC('ZZJG', SLBMID), BJCICBB.transCode@BJCIC('ZZJG', XBBMID), to_char(CLSJ, 'yyyymmddhh24mi'), BJCICBB.transCode@BJCIC('ZZJG', CLDW), BJCICBB.transCode@BJCIC('ZZJG', SJCLF), SSZJZJE, SAXS, ZATDID, BCZATD, ZAGJID, BCZAGJ, BJCICBB.transCode@BJCIC('ZASD', SSSDID), BCSSSD, BJCICBB.transCode@BJCIC('ZASD', YBSDID), BJCICBB.transCode@BJCIC('ZASD', WZSDID), PQLXID, CCDMID, GSJDID, WBDWID, NBDWID, BJCICBB.transCode@BJCIC('DBJB_JZ', DBJBID), DBQK, JZBZ, BJCICBB.transCode@BJCIC('ZZJG', YSDW), BJCICBB.transCode@BJCIC('AJHJ', AJHJ), JTTQID, TQID, JHID, SJID, RQID, GJZARS, SFJTZA, QHQXID, BJCICBB.transCode@BJCIC('XZCS', XZCS), BCXZCS, XZBW, BCXZBW, FZZTLXID, SWSJGJDQID, SXZH, ZHDSD, ZHGSD, SXDH, DHGSD, SXRTZMS, SFCZF, JD, WD, DQBS, BMJB, SFBM, SQID, XCLXJTID, GJSSGX, GJQYDM, SCZ, FXZ, SXWZ, BZ, BJCICBB.transCode@BJCIC('ZZYID', OPERATERCODE), CAST(OPERATETIME AS DATE), 'U', BJCICBB.transCode@BJCIC('AJCL', AJCL) from T_AJ_XSAJFAXX srcdata where srcdata.AJBH = tardata.CASNO) where exists(select 1 from BJCICBB.T_TB_TBHC@BJCIC tbhc where tbhc.TABMAPID='XS
AJFAXXTAB0001' and tbhc.DELFLAG='U' and tbhc.BUSINO0 = tardata.CASNO) |
bhjbdkfcmc9gw | update T_AJ_JJDJ set DATAVERSION=:1, JCJBH=:2, AJLYID=:3, JBSJ=:4, JBDWID=:5, JBR=:6, ASJFSSJ=:7, ASJJSSJ=:8, ASJFSDDID=:9, ASJFSXZ=:10, FYNR=:11, SSPCSID=:12, BJLXID=:13, FXSJ=:14, AJLBID=:15, CZYJ=:16, CZJGID=:17, CZDWID=:18, CZR=:19, CZPZR=:20, ASJLXID=:21, JTCZQK=:22, JZSYRS=:23, JZQZRS=:24, LZSCRS=:25, JJBGFNRS=:26, JJBGETRS=:27, JHXXRS=:28, SWRS=:29, SSRS=:30, JTSGZJJJSSJE=:31, CDJDCCC=:32, CDCZCS=:33, CDJLRS=:34, SARYGJID=:35, QHGXID=:36, XYRS=:37, LRDWID=:38, LRR=:39, LRRQ=:40, DELFLAG=:41, OPERATETIME=:42, OPERATERCODE=:43, ORGID=:44, JJLXBJ=:45, BJSJ=:46, LRRZH=:47, YJJSDW=:48, YJYY=:49, YJCBR=:50, YJPZR=:51, FXXS=:52, JBDH=:53, BJDH=:54, CJRY=:55, BLMJXM=:56, BLMJZH=:57, BADW=:58, SAJE=:59, SAZH=:60, SFSW=:61, TDAJLX=:62, CPH=:63, JBJB=:64, LDPS=:65, LHDW=:66, YWH=:67, ZBDW=:68, DBDW=:69, JBDW=:70, DBLDXM=:71, DBLDZH=:72, DBRZH=:73, DBRXM=:74, ZJSJ=:75, CBDW=:76, CBR=:77, CBRZH=:78, CLJG=:79, CZFS=:80, SAZT=:81, JJCL=:82, JBRZH=:83, CZRZH=:84, CZPZRZH=:85, YJCBRZH=:86, YJPZRZH=:87, HBDW=:88, HBRZH=:89, HBRXM=:90, YJBS=:91, YJJSRQ=:92, YJRQ=:93, YJDW=:94, ZJLX=:95, BARMC=:96, BADWMC=:97, JJCLCSFLG=:98, INSTID=:99, SFYCLID=:100 where ID=:101 and DATAVERSION=:102 |
bms0qcxdx0cpw | select distinct yjxxb0_.ID as ID264_, yjxxb0_.DATAVERSION as DATAVERS2_264_, yjxxb0_.DXBH as DXBH264_, yjxxb0_.DXLX as DXLX264_, yjxxb0_.YJDW as YJDW264_, yjxxb0_.YJJZSJ as YJJZSJ264_, yjxxb0_.YJZQX as YJZQX264_, yjxxb0_.YJZQXDW as YJZQXDW264_, yjxxb0_.JSSJ as JSSJ264_, yjxxb0_.YJJSLX as YJJSLX264_, yjxxb0_.YJDQSJ as YJDQSJ264_, yjxxb0_.YJZT as YJZT264_, yjxxb0_.CQZT as CQZT264_, yjxxb0_.SCBJ as SCBJ264_, yjxxb0_.OPERATETIME as OPERATE15_264_, yjxxb0_.OPERATERCODE as OPERATE16_264_, yjxxb0_.DELFLAG as DELFLAG264_, yjxxb0_.ORGID as ORGID264_, yjxxb0_.CQDM as CQDM264_, yjxxb0_.CQMC as CQMC264_, yjxxb0_.AJBH as AJBH264_, yjxxb0_.ZBH as ZBH264_, yjxxb0_.CQID as CQID264_, yjxxb0_.YJTSXX as YJTSXX264_, yjxxb0_.CQTSXX as CQTSXX264_ from T_YJ_YJXXB yjxxb0_, T_AJ_BAZCYXX bazcyxx1_, T_AJ_BAZ baz2_ where yjxxb0_.ZBH=bazcyxx1_.ZBH and bazcyxx1_.ZBH=baz2_.ZBH and yjxxb0_.SCBJ='1' and bazcyxx1_.SFZAIB='1' and bazcyxx1_.BAMJZH=:1 |
bpt9rnhzrb50h | select * from ( select row_.*, rownum rownum_ from ( select j.jcjbh, j.id, j.barmc, j.badwmc, j.jbsj, j.fynr , j.ajlyid , j.sazt, j.cbr, (case when gl.cljg is null then j.cljg else gl.cljg end) cljg, j.bjlxid, gl.asjbh, j.jjlxbj, gl.clsj, gl.INSTID from T_AJ_JJDJ j left join T_AJ_JJAJGLXX gl on j.id = gl.jjid where j.SFYCLID = '1' and j.jbsj >= to_Date(:1, 'yyyy-MM-dd hh24:mi:ss') and j.jbsj <= to_Date(:2, 'yyyy-MM-dd hh24:mi:ss') and (j.jbdwid =:3 or j.cbdw = :4 ) order by j.jbsj desc ) row_ where rownum <= :5) where rownum_ > :6 |
btfp8cm1k9vmr |
select 'update t_doc_wsqxhis set mbmc = ''' ||(select templatename from t_doc_template where id = qx.temid) || ' '', mbcode = ''' || (select templatecode from t_doc_template where id = qx.temid) ||''', templateattr =''' || (select templateattr from t_doc_template where id = qx.temid) ||''' , status = '''|| ce.status || ''', processcode = ''' || ce.processcode || ''', username = '''|| ce.username || ''' , loginorgcode = '''|| ce.loginorgcode || ''', loginorgname = '''|| ce.loginorgname || ''', relationtype = '''|| d.relationtype || ''', owner = '''|| (select username from t_sys_user where id = ce.owner) || ''', featurename='''|| ce.featurename || ''', ender = '''|| (select username from t_sys_user where id = ce.ender) ||''', gsdw = '''|| d.gsdw ||''', starttime = '|| decode(ce.starttime, null, 'null', 'to_date(''' || to_char(ce.starttime, 'yyyy-mm-dd hh24:mi:ss') || ''', ''yyyy-mm-dd hh24:mi:ss'') ') ||', endtime = ' || decode(ce.endtime, null, 'null', 'to_date(''' || to_char(ce.endtime, 'yyyy-mm-dd hh24:mi:ss') || ''', ''yyyy-mm-dd hh24:mi:ss'') ') || ', kjsj = ' ||decode(d.kjsj, null, 'null', 'to_date(''' || to_char(d.kjsj, 'yyyy-mm-dd hh24:mi:ss') || ''', ''yyyy-mm-dd hh24:mi:ss'') ') || ', kjrname = '''||(select u.username from t_sys_user u where u.loginid = d.kjrzh) ||''' where id = '''|| qx.id ||'''' from t_doc_wsqxhis qx left join t_doc_processinstance ce on qx.proid = ce.id left join t_doc_docinstance d on d.id = qx.docid where templateattr
is null and rownum < :1 |
bycq6swyv3bj1 |
select this_.ID as ID37_6_, this_.USERNAME as USERNAME37_6_, this_.LOGINID as LOGINID37_6_, this_.PASSWD as PASSWD37_6_, this_.INITIALPASSWD as INITIALP5_37_6_, this_.REVERSIBLEPASSWD as REVERSIB6_37_6_, this_.USERTYPE as USERTYPE37_6_, this_.LOCKEDTIME as LOCKEDTIME37_6_, this_.UNLOCKEDTIME as UNLOCKED9_37_6_, this_.QUESTIONCONTENT as QUESTIO10_37_6_, this_.QUESTIONANSWER as QUESTIO11_37_6_, this_.STATUS as STATUS37_6_, this_.SPELLCODE as SPELLCODE37_6_, this_.DISPLAYORDER as DISPLAY14_37_6_, this_.DESCN as DESCN37_6_, this_.DELFLAG as DELFLAG37_6_, this_.OPERATERCODE as OPERATE17_37_6_, this_.OPERATETIME as OPERATE18_37_6_, this_.USERINFOID as USERINFOID37_6_, this_.ORGID as ORGID37_6_, this_.MANAGERORGID as MANAGER21_37_6_, this_.MAJORPOSITIONID as MAJORPO22_37_6_, userinfo2_.ID as ID38_0_, userinfo2_.USERNAME as USERNAME38_0_, userinfo2_.USERCODE as USERCODE38_0_, userinfo2_.GENDER as GENDER38_0_, userinfo2_.PERSONTYPE as PERSONTYPE38_0_, userinfo2_.IDCARD as IDCARD38_0_, userinfo2_.SPELLCODE as SPELLCODE38_0_, userinfo2_.DUTYLEVEL as DUTYLEVEL38_0_, userinfo2_.FORMERNAME as FORMERNAME38_0_, userinfo2_.NATIVEPLACE as NATIVEP10_38_0_, userinfo2_.BIRTHDAY as BIRTHDAY38_0_, userinfo2_.POLITICALSTATUS as POLITIC12_38_0_, userinfo2_.ADDRESS as ADDRESS38_0_, userinfo2_.POSTCODE as POSTCODE38_0_, userinfo2_.OFFICEPHONE as OFFICEP15_38_0_, userinfo2_.MOBILEPHONE as MOBILEP16_38_0_, userinfo2_.HOMEPHONE as HOMEPHONE38_0_, userinfo2_.FAX as FA
X38_0_, userinfo2_.EMAIL as EMAIL38_0_, userinfo2_.DISPLAYORDER as DISPLAY20_38_0_, userinfo2_.DESCN as DESCN38_0_, userinfo2_.DELFLAG as DELFLAG38_0_, userinfo2_.OPERATERCODE as OPERATE23_38_0_, userinfo2_.OPERATETIME as OPERATE24_38_0_, userinfo2_.ORGID as ORGID38_0_, userinfo2_.MAJORPOSITIONID as MAJORPO26_38_0_, organizati3_.ID as ID20_1_, organizati3_.QZMC as QZMC20_1_, organizati3_.QZH as QZH20_1_, organizati3_.ORGNAME as ORGNAME20_1_, organizati3_.ORGCODE as ORGCODE20_1_, organizati3_.ORGABBRNAME as ORGABBRN6_20_1_, organizati3_.INNERCODE as INNERCODE20_1_, organizati3_.ORGTYPE as ORGTYPE20_1_, organizati3_.ORGLEVEL as ORGLEVEL20_1_, organizati3_.VIRTUALFLAG as VIRTUAL10_20_1_, organizati3_.UNITFLAG as UNITFLAG20_1_, organizati3_.BUSIFLAG as BUSIFLAG20_1_, organizati3_.DIRECTLYUNDERFLAG as DIRECTL13_20_1_, organizati3_.BUSIAREA as BUSIAREA20_1_, organizati3_.ADDRESS as ADDRESS20_1_, organizati3_.POSTCODE as POSTCODE20_1_, organizati3_.TELEPHONE as TELEPHONE20_1_, organizati3_.TELEGRAPHONE as TELEGRA18_20_1_, organizati3_.FAX as FAX20_1_, organizati3_.EMAIL as EMAIL20_1_, organizati3_.MANAGERID as MANAGERID20_1_, organizati3_.MANAGERNAME as MANAGER22_20_1_, organizati3_.TREEPATH as TREEPATH20_1_, organizati3_.STATUS as STATUS20_1_, organizati3_.DISPLAYORDER as DISPLAY25_20_1_, organizati3_.UNITID as UNITID20_1_, organizati3_.ALIASNAME as ALIASNAME20_1_, organizati3_.DESCN as DESCN20_1_, organizati3_.DELFLAG as DELFLAG20_1_, organiza
ti3_.OPERATERCODE as OPERATE30_20_1_, organizati3_.OPERATETIME as OPERATE31_20_1_, organizati3_.PARENTID as PARENTID20_1_, position4_.ID as ID26_2_, position4_.POSITIONNAME as POSITION2_26_2_, position4_.POSITIONCODE as POSITION3_26_2_, position4_.POSITIONTYPE as POSITION4_26_2_, position4_.POSITIONLEVEL as POSITION5_26_2_, position4_.DISPLAYORDER as DISPLAYO6_26_2_, position4_.DESCN as DESCN26_2_, position4_.DELFLAG as DELFLAG26_2_, position4_.OPERATERCODE as OPERATER9_26_2_, position4_.OPERATETIME as OPERATE10_26_2_, organizati5_.ID as ID20_3_, organizati5_.QZMC as QZMC20_3_, organizati5_.QZH as QZH20_3_, organizati5_.ORGNAME as ORGNAME20_3_, organizati5_.ORGCODE as ORGCODE20_3_, organizati5_.ORGABBRNAME as ORGABBRN6_20_3_, organizati5_.INNERCODE as INNERCODE20_3_, organizati5_.ORGTYPE as ORGTYPE20_3_, organizati5_.ORGLEVEL as ORGLEVEL20_3_, organizati5_.VIRTUALFLAG as VIRTUAL10_20_3_, organizati5_.UNITFLAG as UNITFLAG20_3_, organizati5_.BUSIFLAG as BUSIFLAG20_3_, organizati5_.DIRECTLYUNDERFLAG as DIRECTL13_20_3_, organizati5_.BUSIAREA as BUSIAREA20_3_, organizati5_.ADDRESS as ADDRESS20_3_, organizati5_.POSTCODE as POSTCODE20_3_, organizati5_.TELEPHONE as TELEPHONE20_3_, organizati5_.TELEGRAPHONE as TELEGRA18_20_3_, organizati5_.FAX as FAX20_3_, organizati5_.EMAIL as EMAIL20_3_, organizati5_.MANAGERID as MANAGERID20_3_, organizati5_.MANAGERNAME as MANAGER22_20_3_, organizati5_.TREEPATH as TREEPATH20_3_, organizati5_.STATUS as STATUS20_3_,
organizati5_.DISPLAYORDER as DISPLAY25_20_3_, organizati5_.UNITID as UNITID20_3_, organizati5_.ALIASNAME as ALIASNAME20_3_, organizati5_.DESCN as DESCN20_3_, organizati5_.DELFLAG as DELFLAG20_3_, organizati5_.OPERATERCODE as OPERATE30_20_3_, organizati5_.OPERATETIME as OPERATE31_20_3_, organizati5_.PARENTID as PARENTID20_3_, organizati6_.ID as ID20_4_, organizati6_.QZMC as QZMC20_4_, organizati6_.QZH as QZH20_4_, organizati6_.ORGNAME as ORGNAME20_4_, organizati6_.ORGCODE as ORGCODE20_4_, organizati6_.ORGABBRNAME as ORGABBRN6_20_4_, organizati6_.INNERCODE as INNERCODE20_4_, organizati6_.ORGTYPE as ORGTYPE20_4_, organizati6_.ORGLEVEL as ORGLEVEL20_4_, organizati6_.VIRTUALFLAG as VIRTUAL10_20_4_, organizati6_.UNITFLAG as UNITFLAG20_4_, organizati6_.BUSIFLAG as BUSIFLAG20_4_, organizati6_.DIRECTLYUNDERFLAG as DIRECTL13_20_4_, organizati6_.BUSIAREA as BUSIAREA20_4_, organizati6_.ADDRESS as ADDRESS20_4_, organizati6_.POSTCODE as POSTCODE20_4_, organizati6_.TELEPHONE as TELEPHONE20_4_, organizati6_.TELEGRAPHONE as TELEGRA18_20_4_, organizati6_.FAX as FAX20_4_, organizati6_.EMAIL as EMAIL20_4_, organizati6_.MANAGERID as MANAGERID20_4_, organizati6_.MANAGERNAME as MANAGER22_20_4_, organizati6_.TREEPATH as TREEPATH20_4_, organizati6_.STATUS as STATUS20_4_, organizati6_.DISPLAYORDER as DISPLAY25_20_4_, organizati6_.UNITID as UNITID20_4_, organizati6_.ALIASNAME as ALIASNAME20_4_, organizati6_.DESCN as DESCN20_4_, organizati6_.DELFLAG as DELFLAG20_4_,
organizati6_.OPERATERCODE as OPERATE30_20_4_, organizati6_.OPERATETIME as OPERATE31_20_4_, organizati6_.PARENTID as PARENTID20_4_, position7_.ID as ID26_5_, position7_.POSITIONNAME as POSITION2_26_5_, position7_.POSITIONCODE as POSITION3_26_5_, position7_.POSITIONTYPE as POSITION4_26_5_, position7_.POSITIONLEVEL as POSITION5_26_5_, position7_.DISPLAYORDER as DISPLAYO6_26_5_, position7_.DESCN as DESCN26_5_, position7_.DELFLAG as DELFLAG26_5_, position7_.OPERATERCODE as OPERATER9_26_5_, position7_.OPERATETIME as OPERATE10_26_5_ from T_SYS_USER this_ left outer join T_SYS_USERINFO userinfo2_ on this_.USERINFOID=userinfo2_.ID left outer join T_SYS_ORGANIZATION organizati3_ on userinfo2_.ORGID=organizati3_.ID left outer join T_SYS_POSITION position4_ on userinfo2_.MAJORPOSITIONID=position4_.ID left outer join T_SYS_ORGANIZATION organizati5_ on this_.ORGID=organizati5_.ID left outer join T_SYS_ORGANIZATION organizati6_ on this_.MANAGERORGID=organizati6_.ID left outer join T_SYS_POSITION position7_ on this_.MAJORPOSITIONID=position7_.ID where this_.LOGINID=:1 |
c2svzr8zs3s2r |
SELECT COUNT(*) as CT FROM (select distinct ajbh, ajmc, cbdw, cbr, ajlx, operatetime from (select xs.ajbh, xs.ajmc, decode(xs.yscbdw, null, xs.cbdw, xs.yscbdw) as cbdw, decode(xs.yscbr, null, xs.cbr, xs.yscbr) as cbr, cast('01' as varchar2(2)) as ajlx, xs.operatetime from t_aj_xsajfaxx xs where xs.ajzt <> '2904' and exists (select 1 from T_AJ_Baz baz, T_AJ_Bazcyxx bazcyxx where baz.zbh = bazcyxx.zbh and baz.ajbh = xs.ajbh and bazcyxx.bamjzh = :1) and exists (select 1 from t_aj_xsajrydy rydy inner join t_ry_saryjbxx ryxx on rydy.rybh = ryxx.rybh where xs.ajbh = rydy.ajbh and ryxx.ryxm like '%???%' ) union all select xs.ajbh, xs.ajmc, decode(xs.yscbdw, null, xs.cbdw, xs.yscbdw) as cbdw, decode(xs.yscbr, null, xs.cbr, xs.yscbr) as cbr, cast('01' as varchar2(2)) as ajlx, xs.operatetime from t_aj_xsajfaxx xs where xs.ajzt <> '2904' and exists (select 1 from t_doc_processinstance ce, t_doc_processinstanceex ex, t_doc_approvalrecord app where ce.id = ex.processinstanceid and ce.id = app.instanceid and app.approvalstage in ('01', '02', '06') and ce.status = '99' and ex.exkey = 'AJBH' and ex.exvalue = xs.ajbh and app.operatercode = :2 and exists (select 1 from t_aj_xsajrydy rydy inner join t_ry_saryjbxx ryxx on rydy.rybh = ryxx.rybh where xs.ajbh = rydy.ajbh and ryxx.ryxm like '%???%' ) ) union all select xz.ajbh, xz.ajmc, decode(xz.yscbdw, null, xz.cbdw, xz.yscbdw), decode(xz.ysc
br, null, xz.zbmj, xz.yscbr), cast('02' as varchar2(2)) as ajlx, xz.operatetime from t_aj_xzajfaxx xz where xz.ajzt <> '3210' and exists (select 1 from T_AJ_Baz baz, T_AJ_Bazcyxx bazcyxx where baz.zbh = bazcyxx.zbh and baz.ajbh = xz.ajbh and bazcyxx.bamjzh = :3) and exists (select 1 from t_aj_xzajrydy rydy inner join t_ry_saryjbxx ryxx on rydy.rybh = ryxx.rybh where xz.ajbh = rydy.ajbh and ryxx.ryxm like '%???%' ) union all select xz.ajbh, xz.ajmc, decode(xz.yscbdw, null, xz.cbdw, xz.yscbdw), decode(xz.yscbr, null, xz.zbmj, xz.yscbr), cast('02' as varchar2(2)) as ajlx, xz.operatetime from t_aj_xzajfaxx xz where xz.ajzt <> '3210' and exists (select 1 from t_doc_processinstance ce, t_doc_processinstanceex ex, t_doc_approvalrecord app where ce.id = ex.processinstanceid and ce.id = app.instanceid and app.approvalstage in ('01', '02', '06') and (ce.status = '99' or ce.status = '98' and ce.processcode = 'CQTZSPB') and ex.exkey = 'AJBH' and ex.exvalue = xz.ajbh and app.operatercode = :4 and exists (select 1 from t_aj_xzajrydy rydy inner join t_ry_saryjbxx ryxx on rydy.rybh = ryxx.rybh where xz.ajbh = rydy.ajbh and ryxx.ryxm like '%???%' ) ) ) ) |
c5wun4tb4tdpj | SELECT *
FROM H_AJ_XZAJFAXX
where operatetime >= :1
and delflag='D'
and operatetime >= TO_DATE('2012-01-01 20:00:00', 'yyyy-mm-dd hh24:mi:ss') |
c7tk81hanbgtr | SELECT "A1"."ORADATAID", "A1"."DATAID", "A2"."RYBH", "A2"."OPERATETIME", "A2"."PZSJ", "A2"."ZXDW", "A2"."CLJD", "A2"."JTQK", "A2"."ID" FROM "T_TB_TBHC" "A1", "T_RY_RYCLXX" "A2" WHERE "A2"."ID"="A1"."DATAID" AND "A1"."ORADATAID"=:1 |
cdh5vuc69gwdc | insert into t_doc_wsqxhis select * from t_doc_wsqx where id = :1 |
cjc6nwx9t0678 | select distinct a.rolecode from t_sys_role a, (select distinct roleid from ((select a1.roleid from t_sys_user_role a1 where a1.userid=(select b1.id from t_sys_user b1 where b1.loginid=:1) union all select a2.roleid from t_sys_role_group a2 where a2.groupid in (select b2.groupid from t_sys_user_group b2 where b2.userid=(select b1.id from t_sys_user b1 where b1.loginid=:2))))) b where a.id=b.roleid |
cr6ftdutdbw1a |
SELECT COUNT(*) as CT FROM (select distinct ajbh, ajmc, cbdw, cbr, ajlx, operatetime from (select xs.ajbh, xs.ajmc, decode(xs.yscbdw, null, xs.cbdw, xs.yscbdw) as cbdw, decode(xs.yscbr, null, xs.cbr, xs.yscbr) as cbr, cast('01' as varchar2(2)) as ajlx, xs.operatetime from t_aj_xsajfaxx xs where xs.ajzt <> '2904' and exists (select 1 from T_AJ_Baz baz, T_AJ_Bazcyxx bazcyxx where baz.zbh = bazcyxx.zbh and baz.ajbh = xs.ajbh and bazcyxx.bamjzh = :1) and exists (select 1 from t_aj_xsajrydy rydy inner join t_ry_saryjbxx ryxx on rydy.rybh = ryxx.rybh where xs.ajbh = rydy.ajbh and ryxx.ryxm like '%??%' ) union all select xs.ajbh, xs.ajmc, decode(xs.yscbdw, null, xs.cbdw, xs.yscbdw) as cbdw, decode(xs.yscbr, null, xs.cbr, xs.yscbr) as cbr, cast('01' as varchar2(2)) as ajlx, xs.operatetime from t_aj_xsajfaxx xs where xs.ajzt <> '2904' and exists (select 1 from t_doc_processinstance ce, t_doc_processinstanceex ex, t_doc_approvalrecord app where ce.id = ex.processinstanceid and ce.id = app.instanceid and app.approvalstage in ('01', '02', '06') and ce.status = '99' and ex.exkey = 'AJBH' and ex.exvalue = xs.ajbh and app.operatercode = :2 and exists (select 1 from t_aj_xsajrydy rydy inner join t_ry_saryjbxx ryxx on rydy.rybh = ryxx.rybh where xs.ajbh = rydy.ajbh and ryxx.ryxm like '%??%' ) ) union all select xz.ajbh, xz.ajmc, decode(xz.yscbdw, null, xz.cbdw, xz.yscbdw), decode(xz.yscbr
, null, xz.zbmj, xz.yscbr), cast('02' as varchar2(2)) as ajlx, xz.operatetime from t_aj_xzajfaxx xz where xz.ajzt <> '3210' and exists (select 1 from T_AJ_Baz baz, T_AJ_Bazcyxx bazcyxx where baz.zbh = bazcyxx.zbh and baz.ajbh = xz.ajbh and bazcyxx.bamjzh = :3) and exists (select 1 from t_aj_xzajrydy rydy inner join t_ry_saryjbxx ryxx on rydy.rybh = ryxx.rybh where xz.ajbh = rydy.ajbh and ryxx.ryxm like '%??%' ) union all select xz.ajbh, xz.ajmc, decode(xz.yscbdw, null, xz.cbdw, xz.yscbdw), decode(xz.yscbr, null, xz.zbmj, xz.yscbr), cast('02' as varchar2(2)) as ajlx, xz.operatetime from t_aj_xzajfaxx xz where xz.ajzt <> '3210' and exists (select 1 from t_doc_processinstance ce, t_doc_processinstanceex ex, t_doc_approvalrecord app where ce.id = ex.processinstanceid and ce.id = app.instanceid and app.approvalstage in ('01', '02', '06') and (ce.status = '99' or ce.status = '98' and ce.processcode = 'CQTZSPB') and ex.exkey = 'AJBH' and ex.exvalue = xz.ajbh and app.operatercode = :4 and exists (select 1 from t_aj_xzajrydy rydy inner join t_ry_saryjbxx ryxx on rydy.rybh = ryxx.rybh where xz.ajbh = rydy.ajbh and ryxx.ryxm like '%??%' ) ) ) ) |
cthyxymqsm242 | insert into BJCICBB.T_INFO_CASETOPEOPLE@BJCIC(ID, PEOPLEID, CASEID, CASENO, PEOPLETYPE, PEOPLENO, OPERATETIME, DELFLAG) select BJCICBB.HIBERNATE_SEQUENCE.NEXTVAL@BJCIC, -1, -1, AJBH, 'sus', REPLACE(RYBH, 'R', 'X'), BJCICBB.BJCICSYSDATE@BJCIC, 'A' from T_AJ_XSAJRYDY srcdata where exists(select 1 from T_TB_TBHC tbhc where tbhc.TABMAPID='XSAJRYDYTAB4001' and tbhc.DELFLAG='A' and tbhc.DATAID=srcdata.ID) and OperateTime<=:1 |
cwu035m3pkksd | select position1_.ID as ID26_, position1_.POSITIONNAME as POSITION2_26_, position1_.POSITIONCODE as POSITION3_26_, position1_.POSITIONTYPE as POSITION4_26_, position1_.POSITIONLEVEL as POSITION5_26_, position1_.DISPLAYORDER as DISPLAYO6_26_, position1_.DESCN as DESCN26_, position1_.DELFLAG as DELFLAG26_, position1_.OPERATERCODE as OPERATER9_26_, position1_.OPERATETIME as OPERATE10_26_ from T_SYS_USER user0_ inner join T_SYS_POSITION position1_ on user0_.MAJORPOSITIONID=position1_.ID where user0_.LOGINID=:1 |
cy6yd36bj51tc | select * from ( select j.jcjbh, j.id, j.barmc, j.badwmc, j.jbsj, j.fynr , j.ajlyid , j.sazt, j.cbr, (case when gl.cljg is null then j.cljg else gl.cljg end) cljg, j.bjlxid, gl.asjbh, j.jjlxbj, gl.clsj, gl.INSTID from T_AJ_JJDJ j left join T_AJ_JJAJGLXX gl on j.id = gl.jjid where j.SFYCLID = '1' and j.jbsj >= to_Date(:1, 'yyyy-MM-dd hh24:mi:ss') and j.jbsj <= to_Date(:2, 'yyyy-MM-dd hh24:mi:ss') and (j.jbdwid =:3 or j.cbdw = :4 ) order by j.jbsj desc ) where rownum <= :5 |
d2yc5qbzggqs3 | SELECT u.username FROM t_doc_approvalrecord r, t_sys_user u WHERE u.id=r.auditor AND operation='07' AND instanceid=:1 |
d32u5wax4m272 |
select * from ( select saryjbxx0_.ID as ID139_, saryjbxx0_.DATAVERSION as DATAVERS2_139_, saryjbxx0_.RYXM as RYXM139_, saryjbxx0_.RYXBID as RYXBID139_, saryjbxx0_.RYNL as RYNL139_, saryjbxx0_.RYZJZL as RYZJZL139_, saryjbxx0_.RYZLHM as RYZLHM139_, saryjbxx0_.RYJZDID as RYJZDID139_, saryjbxx0_.RYHJDID as RYHJDID139_, saryjbxx0_.RYGJID as RYGJID139_, saryjbxx0_.RYSWSFID as RYSWSFID139_, saryjbxx0_.RYXMPYM as RYXMPYM139_, saryjbxx0_.RYLX as RYLX139_, saryjbxx0_.AJID as AJID139_, saryjbxx0_.RYID as RYID139_, saryjbxx0_.DELFLAG as DELFLAG139_, saryjbxx0_.OPERATETIME as OPERATE17_139_, saryjbxx0_.OPERATERCODE as OPERATE18_139_, saryjbxx0_.ORGID as ORGID139_, saryjbxx0_.AJBH as AJBH139_, saryjbxx0_.RYBH as RYBH139_, saryjbxx0_.SSAJLX as SSAJLX139_, saryjbxx0_.LRDWID as LRDWID139_, saryjbxx0_.LRRZH as LRRZH139_, saryjbxx0_.LRR as LRR139_, saryjbxx0_.LRRQ as LRRQ139_, saryjbxx0_.LXDH as LXDH139_, saryjbxx0_.CJSQ as CJSQ139_, saryjbxx0_.RDRYBH as RDRYBH139_, saryjbxx0_.GXCZSJ as GXCZSJ139_, saryjbxx0_.RYJZDXZ as RYJZDXZ139_, saryjbxx0_.GZDW as GZDW139_, saryjbxx0_.RYHJDXZ as RYHJDXZ139_, saryjbxx0_.RYCSRQ as RYCSRQ139_, saryjbxx0_.RYJGID as RYJGID139_, saryjbxx0_.SJLYFLG as SJLYFLG139_, saryjbxx0_.AJHJ as AJHJ139_ from T_RY_SARYJBXX saryjbxx0_, T_AJ_XZAJRYDY xzajrydy1_ where saryjbxx0_.RYBH=xzajrydy1_.RYBH and xzajrydy1_.AJBH=:1 and (saryjbxx0_.RYLX in ('02' , '04' , '05' , '06' , '07')) order by saryjbxx0_.RYLX asc, saryjbxx0_.OPERATETIME desc
) where rownum <= :2 |
d9a4srp5nqm5q | insert into BJCICBB.H_INFO_GOODSBASEINFO@BJCIC select * from BJCICBB.T_INFO_GOODSBASEINFO@BJCIC tardata where delFlag='D' and exists(select 1 from BJCICBB.T_TB_TBHC@BJCIC tbhc where tbhc.TABMAPID='WPJBXXTAB0001' and tbhc.DELFLAG='D' and tbhc.BUSINO0 = tardata.GOODSNO) |
dbhj4uh5rtm3n |
SELECT COUNT(*) as CT FROM (select distinct ajbh, ajmc, cbdw, cbr, ajlx, operatetime from (select xs.ajbh, xs.ajmc, decode(xs.yscbdw, null, xs.cbdw, xs.yscbdw) as cbdw, decode(xs.yscbr, null, xs.cbr, xs.yscbr) as cbr, cast('01' as varchar2(2)) as ajlx, xs.operatetime from t_aj_xsajfaxx xs where xs.ajzt <> '2904' and exists (select 1 from T_AJ_Baz baz, T_AJ_Bazcyxx bazcyxx where baz.zbh = bazcyxx.zbh and baz.ajbh = xs.ajbh and bazcyxx.bamjzh = :1) and exists (select 1 from t_aj_xsajrydy rydy inner join t_ry_saryjbxx ryxx on rydy.rybh = ryxx.rybh where xs.ajbh = rydy.ajbh and ryxx.ryxm like '%?%' ) union all select xs.ajbh, xs.ajmc, decode(xs.yscbdw, null, xs.cbdw, xs.yscbdw) as cbdw, decode(xs.yscbr, null, xs.cbr, xs.yscbr) as cbr, cast('01' as varchar2(2)) as ajlx, xs.operatetime from t_aj_xsajfaxx xs where xs.ajzt <> '2904' and exists (select 1 from t_doc_processinstance ce, t_doc_processinstanceex ex, t_doc_approvalrecord app where ce.id = ex.processinstanceid and ce.id = app.instanceid and app.approvalstage in ('01', '02', '06') and ce.status = '99' and ex.exkey = 'AJBH' and ex.exvalue = xs.ajbh and app.operatercode = :2 and exists (select 1 from t_aj_xsajrydy rydy inner join t_ry_saryjbxx ryxx on rydy.rybh = ryxx.rybh where xs.ajbh = rydy.ajbh and ryxx.ryxm like '%?%' ) ) union all select xz.ajbh, xz.ajmc, decode(xz.yscbdw, null, xz.cbdw, xz.yscbdw), decode(xz.yscbr,
null, xz.zbmj, xz.yscbr), cast('02' as varchar2(2)) as ajlx, xz.operatetime from t_aj_xzajfaxx xz where xz.ajzt <> '3210' and exists (select 1 from T_AJ_Baz baz, T_AJ_Bazcyxx bazcyxx where baz.zbh = bazcyxx.zbh and baz.ajbh = xz.ajbh and bazcyxx.bamjzh = :3) and exists (select 1 from t_aj_xzajrydy rydy inner join t_ry_saryjbxx ryxx on rydy.rybh = ryxx.rybh where xz.ajbh = rydy.ajbh and ryxx.ryxm like '%?%' ) union all select xz.ajbh, xz.ajmc, decode(xz.yscbdw, null, xz.cbdw, xz.yscbdw), decode(xz.yscbr, null, xz.zbmj, xz.yscbr), cast('02' as varchar2(2)) as ajlx, xz.operatetime from t_aj_xzajfaxx xz where xz.ajzt <> '3210' and exists (select 1 from t_doc_processinstance ce, t_doc_processinstanceex ex, t_doc_approvalrecord app where ce.id = ex.processinstanceid and ce.id = app.instanceid and app.approvalstage in ('01', '02', '06') and (ce.status = '99' or ce.status = '98' and ce.processcode = 'CQTZSPB') and ex.exkey = 'AJBH' and ex.exvalue = xz.ajbh and app.operatercode = :4 and exists (select 1 from t_aj_xzajrydy rydy inner join t_ry_saryjbxx ryxx on rydy.rybh = ryxx.rybh where xz.ajbh = rydy.ajbh and ryxx.ryxm like '%?%' ) ) ) ) |
dbp4186cwasx8 |
select * from ( select distinct ajbh, ajmc, cbdw, cbr, ajlx, operatetime from (select xs.ajbh, xs.ajmc, decode(xs.yscbdw, null, xs.cbdw, xs.yscbdw) as cbdw, decode(xs.yscbr, null, xs.cbr, xs.yscbr) as cbr, cast('01' as varchar2(2)) as ajlx, xs.operatetime from t_aj_xsajfaxx xs where xs.ajzt <> '2904' and exists (select 1 from T_AJ_Baz baz, T_AJ_Bazcyxx bazcyxx where baz.zbh = bazcyxx.zbh and baz.ajbh = xs.ajbh and bazcyxx.bamjzh = :1) and exists (select 1 from t_aj_xsajrydy rydy inner join t_ry_saryjbxx ryxx on rydy.rybh = ryxx.rybh where xs.ajbh = rydy.ajbh and ryxx.ryxm like '%??%' ) union all select xs.ajbh, xs.ajmc, decode(xs.yscbdw, null, xs.cbdw, xs.yscbdw) as cbdw, decode(xs.yscbr, null, xs.cbr, xs.yscbr) as cbr, cast('01' as varchar2(2)) as ajlx, xs.operatetime from t_aj_xsajfaxx xs where xs.ajzt <> '2904' and exists (select 1 from t_doc_processinstance ce, t_doc_processinstanceex ex, t_doc_approvalrecord app where ce.id = ex.processinstanceid and ce.id = app.instanceid and app.approvalstage in ('01', '02', '06') and ce.status = '99' and ex.exkey = 'AJBH' and ex.exvalue = xs.ajbh and app.operatercode = :2 and exists (select 1 from t_aj_xsajrydy rydy inner join t_ry_saryjbxx ryxx on rydy.rybh = ryxx.rybh where xs.ajbh = rydy.ajbh and ryxx.ryxm like '%??%' ) ) union all select xz.ajbh, xz.ajmc, decode(xz.yscbdw, null, xz.cbdw, xz.yscbdw), decode(xz.yscbr, null, xz
.zbmj, xz.yscbr), cast('02' as varchar2(2)) as ajlx, xz.operatetime from t_aj_xzajfaxx xz where xz.ajzt <> '3210' and exists (select 1 from T_AJ_Baz baz, T_AJ_Bazcyxx bazcyxx where baz.zbh = bazcyxx.zbh and baz.ajbh = xz.ajbh and bazcyxx.bamjzh = :3) and exists (select 1 from t_aj_xzajrydy rydy inner join t_ry_saryjbxx ryxx on rydy.rybh = ryxx.rybh where xz.ajbh = rydy.ajbh and ryxx.ryxm like '%??%' ) union all select xz.ajbh, xz.ajmc, decode(xz.yscbdw, null, xz.cbdw, xz.yscbdw), decode(xz.yscbr, null, xz.zbmj, xz.yscbr), cast('02' as varchar2(2)) as ajlx, xz.operatetime from t_aj_xzajfaxx xz where xz.ajzt <> '3210' and exists (select 1 from t_doc_processinstance ce, t_doc_processinstanceex ex, t_doc_approvalrecord app where ce.id = ex.processinstanceid and ce.id = app.instanceid and app.approvalstage in ('01', '02', '06') and (ce.status = '99' or ce.status = '98' and ce.processcode = 'CQTZSPB') and ex.exkey = 'AJBH' and ex.exvalue = xz.ajbh and app.operatercode = :4 and exists (select 1 from t_aj_xzajrydy rydy inner join t_ry_saryjbxx ryxx on rydy.rybh = ryxx.rybh where xz.ajbh = rydy.ajbh and ryxx.ryxm like '%??%' ) ) ) order by operatetime desc ) where rownum <= :5 |
dcj65grydpwbj | insert into T_DOC_WSYZDY (DATAVERSION, INSTANCEID, DOCID, TEMPID, GJZ, YZMC, QFZ, OPERATERCODE, ORGID, OPERATETIME, DELFLAG, ID) values (:1, :2, :3, :4, :5, :6, :7, :8, :9, :10, :11, :12) |
dkxcxv8srbvsp | select max(operateTime) lastUpTime from T_RY_RYCLXX where CLJD in ('CQBYCF', 'CQCHBGS', 'CQCHSPB', 'CQDBBGS', 'CQFK', 'CQJCBGS', 'CQJG', 'CQJLBGS', 'CQJSJZBGS', 'CQQBHSBGS', 'CQSCBZJBGS', 'CQXZJL', 'CQXZJLBCFK', 'JXPWSPB') and OPERATETIME>:1 and OPERATETIME<=:2 |
dthk09qf5kxsf |
select this_.ID as ID127_0_, this_.DATAVERSION as DATAVERS2_127_0_, this_.AJBH as AJBH127_0_, this_.AJMC as AJMC127_0_, this_.ZABID as ZABID127_0_, this_.BCABID as BCABID127_0_, this_.AJLXID as AJLXID127_0_, this_.SGLXID as SGLXID127_0_, this_.SAJBID as SAJBID127_0_, this_.ZABSID as ZABSID127_0_, this_.ZABS as ZABS127_0_, this_.PCSGXID as PCSGXID127_0_, this_.ZRQDID as ZRQDID127_0_, this_.GSDZ as GSDZ127_0_, this_.JQ as JQ127_0_, this_.FADDID as FADDID127_0_, this_.FADDXZ as FADDXZ127_0_, this_.FAKSSJ as FAKSSJ127_0_, this_.FAJSSJ as FAJSSJ127_0_, this_.FAQYID as FAQYID127_0_, this_.FAZ as FAZ127_0_, this_.FASJXQ as FASJXQ127_0_, this_.FXSJ as FXSJ127_0_, this_.FXXSID as FXXSID127_0_, this_.XCLXID as XCLXID127_0_, this_.JBLXID as JBLXID127_0_, this_.JBRZH as JBRZH127_0_, this_.JBR as JBR127_0_, this_.JBDWID as JBDWID127_0_, this_.LASJ as LASJ127_0_, this_.LADW as LADW127_0_, this_.LAZJZJE as LAZJZJE127_0_, this_.LRDW as LRDW127_0_, this_.LRRZH as LRRZH127_0_, this_.LRR as LRR127_0_, this_.LRRQ as LRRQ127_0_, this_.AJLYID as AJLYID127_0_, this_.JYAQ as JYAQ127_0_, this_.JYAQGJZ as JYAQGJZ127_0_, this_.SLSJ as SLSJ127_0_, this_.SLRZH as SLRZH127_0_, this_.SLR as SLR127_0_, this_.SLFSID as SLFSID127_0_, this_.SLBMID as SLBMID127_0_, this_.XBBMID as XBBMID127_0_, this_.CLSJ as CLSJ127_0_, this_.CLDW as CLDW127_0_, this_.SJCLF as SJCLF127_0_, this_.SSZJZJE as SSZJZJE127_0_, this_.SAXS as SAXS127_0_, this_.ZATDID as ZATDID127_0_, t
his_.BCZATD as BCZATD127_0_, this_.ZAGJID as ZAGJID127_0_, this_.BCZAGJ as BCZAGJ127_0_, this_.SSSDID as SSSDID127_0_, this_.BCSSSD as BCSSSD127_0_, this_.YBSDID as YBSDID127_0_, this_.WZSDID as WZSDID127_0_, this_.PQLXID as PQLXID127_0_, this_.CCDMID as CCDMID127_0_, this_.GSJDID as GSJDID127_0_, this_.WBDWID as WBDWID127_0_, this_.NBDWID as NBDWID127_0_, this_.DBJBID as DBJBID127_0_, this_.DBQK as DBQK127_0_, this_.JZBZ as JZBZ127_0_, this_.YSDW as YSDW127_0_, this_.AJCL as AJCL127_0_, this_.AJZT as AJZT127_0_, this_.JTTQID as JTTQID127_0_, this_.TQID as TQID127_0_, this_.JHID as JHID127_0_, this_.SJID as SJID127_0_, this_.RQID as RQID127_0_, this_.GJZARS as GJZARS127_0_, this_.SFJTZA as SFJTZA127_0_, this_.QHQXID as QHQXID127_0_, this_.XZCS as XZCS127_0_, this_.BCXZCS as BCXZCS127_0_, this_.XZBW as XZBW127_0_, this_.BCXZBW as BCXZBW127_0_, this_.FZZTLXID as FZZTLXID127_0_, this_.SWSJGJDQID as SWSJGJDQID127_0_, this_.SXRTZMS as SXRTZMS127_0_, this_.SFCZF as SFCZF127_0_, this_.JD as JD127_0_, this_.WD as WD127_0_, this_.DQBS as DQBS127_0_, this_.BMJB as BMJB127_0_, this_.SFBM as SFBM127_0_, this_.SQID as SQID127_0_, this_.XCLXJTID as XCLXJTID127_0_, this_.GJSSGX as GJSSGX127_0_, this_.GJQYDM as GJQYDM127_0_, this_.SCZ as SCZ127_0_, this_.FXZ as FXZ127_0_, this_.BZ as BZ127_0_, this_.OPERATERCODE as OPERATE98_127_0_, this_.OPERATETIME as OPERATE99_127_0_, this_.DELFLAG as DELFLAG127_0_, this_.ORGID as ORGID127_0_, this_.AJDJ a
s AJDJ127_0_, this_.AJGX as AJGX127_0_, this_.CBR as CBR127_0_, this_.CBRZH as CBRZH127_0_, this_.CBDW as CBDW127_0_, this_.XBMJ as XBMJ127_0_, this_.ZADDXZ as ZADDXZ127_0_, this_.AJXZ as AJXZ127_0_, this_.LASZ as LASZ127_0_, this_.ZAFS as ZAFS127_0_, this_.ZAQK as ZAQK127_0_, this_.CXID as CXID127_0_, this_.JZGLLBQ as JZGLLBQ127_0_, this_.JZYWLBQ as JZYWLBQ127_0_, this_.SXWZ as SXWZ127_0_, this_.SXZH2 as SXZH117_127_0_, this_.ZHDSD2 as ZHDSD118_127_0_, this_.ZHGSD2 as ZHGSD119_127_0_, this_.SXDH2 as SXDH120_127_0_, this_.DHGSD2 as DHGSD121_127_0_, this_.SXZH as SXZH127_0_, this_.ZHDSD as ZHDSD127_0_, this_.ZHGSD as ZHGSD127_0_, this_.SXDH as SXDH127_0_, this_.DHGSD as DHGSD127_0_, this_.SXZH3 as SXZH127_127_0_, this_.ZHDSD3 as ZHDSD128_127_0_, this_.ZHGSD3 as ZHGSD129_127_0_, this_.SXDH3 as SXDH130_127_0_, this_.DHGSD3 as DHGSD131_127_0_, this_.AQSJGJDQ as AQSJGJDQ127_0_, this_.SFNWGJAJ as SFNWGJAJ127_0_, this_.GJDX as GJDX127_0_, this_.ZHAQ as ZHAQ127_0_, this_.AJHJ as AJHJ127_0_, this_.SAZT as SAZT127_0_, this_.SFCZCQZ as SFCZCQZ127_0_, this_.TSAJLX as TSAJLX127_0_, this_.SJLYFLG as SJLYFLG127_0_, this_.SFXBAJ as SFXBAJ127_0_, this_.SFSDAJ as SFSDAJ127_0_, this_.cbrlxxx as cbrlxxx127_0_, this_.JHZJZ as JHZJZ127_0_, this_.YSCBR as YSCBR127_0_, this_.YSCBRZH as YSCBRZH127_0_, this_.YSXBMJ as YSXBMJ127_0_, this_.YSCBDW as YSCBDW127_0_, this_.GKZTID as GKZTID127_0_ from T_AJ_XSAJFAXX this_ where this_.AJBH=:1
|
dttu6p04xka4a |
update BJCICBB.T_INFO_SUSPECTPEOINFOR@BJCIC tardata set (SUPECTPEOPLENO, NAME, SEXID, BIRTHDAY, AGE, ALIAS, NATIONALITYID, EDUCATIONLEVELID, STATUSID, SPECIALSTATUSID, PLITICALSTATUSID, RACEID, HOUSINGREASONID, DEPARTMENTID, REGISTEREDADDRESSID, DETAILADDRESS, PRESENTADDRESSID, PRESENTDETAILADDRESS, ABODETYPEID, DEADREASONID, DEADDATE, CRIMINALTYPEID, CRIMINALSITUATIONID, ISILLPREGNANTID, GATHERREASONID, ISDRUGGERID, ACCENTID, BLOODTYPEID, BODILYFORMID, COMPLEXIONID, HAIRSTYLEID, FACESTYLEID, EYEBOWID, EYEID, MOUTHID, NOSEID, LIPID, TOOTHID, CHINID, BEARDID, EARID, ATTIRECHARACTERID, CASETOOLID, CASEMETHODID, SPECIALITYID, CASEREASONID, FINGERPOINTCODE, DISPOSALMETHODID, DISPOSALAREAID, FLEEAREAID, FIRSTCASETIME, FEAKOUTDEGREE, COSTINSTANCE, FEAKOUTREASONID, FEAKOUTTYPEID, POSIONSORTID, RESUMETIMES, RESUMEINTERVALID, FEAKOUTRESULTID, MAININCOMEFORMID, FEAKOUTPLACEID, FEAKOUTINSTANCEID, ENGLISHNAME, PAPERKINDID, PAPERNUMBER, VISAKINDID, VISADEADTIMES, ENTERPORTID, ENTERTIME, SUBJECTPOLICESID, VISADEADTIMEE, DELFLAG, OPERATETIME, OPERATERID, CHOOSEPARTID, CHOOSEOBJECTID, CHOOOSELOCATIONID, CASECHARACTERID, NATIVEPLACEID, RECORDEPTID, RECORDER, RECORDDATE, PHOTOID, JINGDU, WEIDU, ARRESTTIME, STATUREUPPERLIMIT, STATURELOWERLIMIT, CID) = (select REPLACE(RYBH, 'R', 'X'), SUBSTRB(XM, 1, 52), case when XBID is null then '9' else XBID end, to_char(CSRQ, 'yyyymmdd'), NL, BM, GJID, BJCICBB.transCode@BJCIC('WHCD', JYCDID), SFID, BJCICBB.transCode@BJCIC('TSSF', TSSFID), BJCICBB.transCode@
BJCIC('ZZMM', ZZMMID), MZID, BJCICBB.transCode@BJCIC('JLYY', JLYYID), GZDW, HJDID, SUBSTRB(HJDXZ, 1, 64), ZZDID, ZZDXZ, JSLXID, SWYYID, to_char(SWRQ, 'yyyymmdd'), AFLXID, AFZKID, SFBCY, CJYYID, SFXD, KYID, XXID, BJCICBB.transCode@BJCIC('TMTZ', TXID), BJCICBB.transCode@BJCIC('TMTZ', FSID), BJCICBB.transCode@BJCIC('TMTZ', FXID), BJCICBB.transCode@BJCIC('TMTZ', NXID), BJCICBB.transCode@BJCIC('TMTZ', MID), BJCICBB.transCode@BJCIC('TMTZ', YID), BJCICBB.transCode@BJCIC('TMTZ', ZID), BJCICBB.transCode@BJCIC('TMTZ', BID), BJCICBB.transCode@BJCIC('TMTZ', CID), BJCICBB.transCode@BJCIC('TMTZ', YAID), BJCICBB.transCode@BJCIC('TMTZ', XBAID), BJCICBB.transCode@BJCIC('TMTZ', HXID), BJCICBB.transCode@BJCIC('TMTZ', ERID), BJCICBB.transCode@BJCIC('TMTZ', QTTMTZID), ZAGJID, BJCICBB.transCode@BJCIC('ZASD', ZASDID), TSZCID, ZAYYID, SUBSTRB(ZWM, 1, 32), XZFFID, XZQYID, SUBSTRB(LCQY, 1, 100), to_char(to_date(SCXDSJ, 'yyyy-mm-dd hh24:mi:ss'), 'yyyymmddhh24mi'), DYCD, SUBSTRB(HFQK, 1, 64), XDYYID, XDFSID, DPZLID, FXCS, FXJGID, XSHGID, ZYJJLYID, XSDD, XSHJID, YWM, BJCICBB.transCode@BJCIC('ZJZL', QTZJZL), QTZJHM, QZZLID, to_char(to_date(QZYXQKS, 'yyyy-mm-dd hh24:mi:ss'), 'yyyymmddhh24mi'), RJKAID, to_char(to_date(RJSJ, 'yyyy-mm-dd hh24:mi:ss'), 'yyyymmddhh24mi'), BJCICBB.transCode@BJCIC('ZZJG', SSPCS), to_char(to_date(QZYXQJZ, 'yyyy-mm-dd hh24:mi:ss'), 'yyyymmddhh24mi'), 'U', CAST(OPERATETIME AS DATE), BJCICBB.transCode@BJCIC('ZZYID', OPERATERCODE), SUBSTRB(XZBWID, 1, 20), XZDXID, BJCICBB.transCode@BJC
IC('XZCS', XZCSID), ZATDID, JGID, BJCICBB.transCode@BJCIC('ZZJG', LRDWID), SUBSTRB(LRR, 1, 20), to_char(LRRQ, 'yyyymmdd'), FILEID, JD, WD, to_char(JHRQ, 'yyyymmdd'), SGSX, SGXX, case when ZJZLID='111' then ZJHM else '' end from (select wfry.*, flmap.FILEID from T_RY_WFFZRYXX wfry left join T_TB_UPLOADFILESMAP flmap on wfry.ZPID=flmap.DATAID) srcdata where REPLACE(srcdata.RYBH, 'R', 'X') = tardata.SUPECTPEOPLENO) where exists(select 1 from BJCICBB.T_TB_TBHC@BJCIC tbhc where tbhc.TABMAPID='WFFZRYXXTAB1001' and tbhc.DELFLAG='U' and REPLACE(tbhc.BUSINO0, 'R', 'X') = tardata.SUPECTPEOPLENO) |
dx6dkt6486r5q | insert into T_TB_TBHC(ID, TABMAPID, ROWNO, DATAID, ORADATAID, BUSINO0, BUSINO1, BUSINO2, BUSINO3, BUSINO4, BUSINO5, BUSIID0, BUSIID1, BUSIID2, BUSIID3, BUSIID4, BUSIID5, OPERATERCODE, OPERATETIME, DELFLAG, ORGID, DATAVERSION) select sys_guid(), 'ZHXXTAB0001', ROWNUM ROWNO, DATAID, null, WFFZRYBH, null, null, null, null, null, null, null, null, null, null, null, null, OPERATETIME, 'A', null, 0 from (select ID DATAID, WFFZRYBH, operateTime from (select zhxx.*, tbhc.ORADATAID from T_RY_ZHXX zhxx left join T_TB_TBHC tbhc on zhxx.ID=tbhc.DATAID) srcdata0 where operateTime > :1 and operateTime <= :2 order by operateTime) |
f1k8f81r364tu |
select 'update t_doc_wsqx set mbmc = ''' ||(select templatename from t_doc_template where id = qx.temid) || ' '', mbcode = ''' || (select templatecode from t_doc_template where id = qx.temid) ||''', templateattr =''' || (select templateattr from t_doc_template where id = qx.temid) ||''' , status = '''|| ce.status || ''', processcode = ''' || ce.processcode || ''', username = '''|| ce.username || ''' , loginorgcode = '''|| ce.loginorgcode || ''', loginorgname = '''|| ce.loginorgname || ''', relationtype = '''|| d.relationtype || ''', owner = '''|| (select username from t_sys_user where id = ce.owner) || ''', featurename='''|| ce.featurename || ''', ender = '''|| (select username from t_sys_user where id = ce.ender) ||''', gsdw = '''|| d.gsdw ||''', starttime = '|| decode(ce.starttime, null, 'null', 'to_date(''' || to_char(ce.starttime, 'yyyy-mm-dd hh24:mi:ss') || ''', ''yyyy-mm-dd hh24:mi:ss'') ') ||', endtime = ' || decode(ce.endtime, null, 'null', 'to_date(''' || to_char(ce.endtime, 'yyyy-mm-dd hh24:mi:ss') || ''', ''yyyy-mm-dd hh24:mi:ss'') ') || ', kjsj = ' ||decode(d.kjsj, null, 'null', 'to_date(''' || to_char(d.kjsj, 'yyyy-mm-dd hh24:mi:ss') || ''', ''yyyy-mm-dd hh24:mi:ss'') ') || ', kjrname = '''||(select u.username from t_sys_user u where u.loginid = d.kjrzh) ||''' where id = '''|| qx.id ||'''' from t_doc_wsqx qx left join t_doc_processinstance ce on qx.proid = ce.id left join t_doc_docinstance d on d.id = qx.docid where templateattr is nu
ll and rownum < :1 |
faba0j8hwjbfb |
SELECT COUNT(*) as CT FROM (select distinct ajbh, ajmc, cbdw, cbr, ajlx, operatetime from (select xs.ajbh, xs.ajmc, decode(xs.yscbdw, null, xs.cbdw, xs.yscbdw) as cbdw, decode(xs.yscbr, null, xs.cbr, xs.yscbr) as cbr, cast('01' as varchar2(2)) as ajlx, xs.operatetime from t_aj_xsajfaxx xs where xs.ajzt <> '2904' and exists (select 1 from T_AJ_Baz baz, T_AJ_Bazcyxx bazcyxx where baz.zbh = bazcyxx.zbh and baz.ajbh = xs.ajbh and bazcyxx.bamjzh = :1) and exists (select 1 from t_aj_xsajrydy rydy inner join t_ry_saryjbxx ryxx on rydy.rybh = ryxx.rybh where xs.ajbh = rydy.ajbh and ryxx.ryxm like '%???%' ) union all select xs.ajbh, xs.ajmc, decode(xs.yscbdw, null, xs.cbdw, xs.yscbdw) as cbdw, decode(xs.yscbr, null, xs.cbr, xs.yscbr) as cbr, cast('01' as varchar2(2)) as ajlx, xs.operatetime from t_aj_xsajfaxx xs where xs.ajzt <> '2904' and exists (select 1 from t_doc_processinstance ce, t_doc_processinstanceex ex, t_doc_approvalrecord app where ce.id = ex.processinstanceid and ce.id = app.instanceid and app.approvalstage in ('01', '02', '06') and ce.status = '99' and ex.exkey = 'AJBH' and ex.exvalue = xs.ajbh and app.operatercode = :2 and exists (select 1 from t_aj_xsajrydy rydy inner join t_ry_saryjbxx ryxx on rydy.rybh = ryxx.rybh where xs.ajbh = rydy.ajbh and ryxx.ryxm like '%???%' ) ) union all select xz.ajbh, xz.ajmc, decode(xz.yscbdw, null, xz.cbdw, xz.yscbdw), decode(xz.ysc
br, null, xz.zbmj, xz.yscbr), cast('02' as varchar2(2)) as ajlx, xz.operatetime from t_aj_xzajfaxx xz where xz.ajzt <> '3210' and exists (select 1 from T_AJ_Baz baz, T_AJ_Bazcyxx bazcyxx where baz.zbh = bazcyxx.zbh and baz.ajbh = xz.ajbh and bazcyxx.bamjzh = :3) and exists (select 1 from t_aj_xzajrydy rydy inner join t_ry_saryjbxx ryxx on rydy.rybh = ryxx.rybh where xz.ajbh = rydy.ajbh and ryxx.ryxm like '%???%' ) union all select xz.ajbh, xz.ajmc, decode(xz.yscbdw, null, xz.cbdw, xz.yscbdw), decode(xz.yscbr, null, xz.zbmj, xz.yscbr), cast('02' as varchar2(2)) as ajlx, xz.operatetime from t_aj_xzajfaxx xz where xz.ajzt <> '3210' and exists (select 1 from t_doc_processinstance ce, t_doc_processinstanceex ex, t_doc_approvalrecord app where ce.id = ex.processinstanceid and ce.id = app.instanceid and app.approvalstage in ('01', '02', '06') and (ce.status = '99' or ce.status = '98' and ce.processcode = 'CQTZSPB') and ex.exkey = 'AJBH' and ex.exvalue = xz.ajbh and app.operatercode = :4 and exists (select 1 from t_aj_xzajrydy rydy inner join t_ry_saryjbxx ryxx on rydy.rybh = ryxx.rybh where xz.ajbh = rydy.ajbh and ryxx.ryxm like '%???%' ) ) ) ) |
fgcxa3uxf39zg |
SELECT COUNT(*) as CT FROM (select distinct ajbh, ajmc, cbdw, cbr, ajlx, operatetime from (select xs.ajbh, xs.ajmc, decode(xs.yscbdw, null, xs.cbdw, xs.yscbdw) as cbdw, decode(xs.yscbr, null, xs.cbr, xs.yscbr) as cbr, cast('01' as varchar2(2)) as ajlx, xs.operatetime from t_aj_xsajfaxx xs where xs.ajzt <> '2904' and exists (select 1 from T_AJ_Baz baz, T_AJ_Bazcyxx bazcyxx where baz.zbh = bazcyxx.zbh and baz.ajbh = xs.ajbh and bazcyxx.bamjzh = :1) and exists (select 1 from t_aj_xsajrydy rydy inner join t_ry_saryjbxx ryxx on rydy.rybh = ryxx.rybh where xs.ajbh = rydy.ajbh and ryxx.ryxm like '%???%' ) union all select xs.ajbh, xs.ajmc, decode(xs.yscbdw, null, xs.cbdw, xs.yscbdw) as cbdw, decode(xs.yscbr, null, xs.cbr, xs.yscbr) as cbr, cast('01' as varchar2(2)) as ajlx, xs.operatetime from t_aj_xsajfaxx xs where xs.ajzt <> '2904' and exists (select 1 from t_doc_processinstance ce, t_doc_processinstanceex ex, t_doc_approvalrecord app where ce.id = ex.processinstanceid and ce.id = app.instanceid and app.approvalstage in ('01', '02', '06') and ce.status = '99' and ex.exkey = 'AJBH' and ex.exvalue = xs.ajbh and app.operatercode = :2 and exists (select 1 from t_aj_xsajrydy rydy inner join t_ry_saryjbxx ryxx on rydy.rybh = ryxx.rybh where xs.ajbh = rydy.ajbh and ryxx.ryxm like '%???%' ) ) union all select xz.ajbh, xz.ajmc, decode(xz.yscbdw, null, xz.cbdw, xz.yscbdw), decode(xz.ysc
br, null, xz.zbmj, xz.yscbr), cast('02' as varchar2(2)) as ajlx, xz.operatetime from t_aj_xzajfaxx xz where xz.ajzt <> '3210' and exists (select 1 from T_AJ_Baz baz, T_AJ_Bazcyxx bazcyxx where baz.zbh = bazcyxx.zbh and baz.ajbh = xz.ajbh and bazcyxx.bamjzh = :3) and exists (select 1 from t_aj_xzajrydy rydy inner join t_ry_saryjbxx ryxx on rydy.rybh = ryxx.rybh where xz.ajbh = rydy.ajbh and ryxx.ryxm like '%???%' ) union all select xz.ajbh, xz.ajmc, decode(xz.yscbdw, null, xz.cbdw, xz.yscbdw), decode(xz.yscbr, null, xz.zbmj, xz.yscbr), cast('02' as varchar2(2)) as ajlx, xz.operatetime from t_aj_xzajfaxx xz where xz.ajzt <> '3210' and exists (select 1 from t_doc_processinstance ce, t_doc_processinstanceex ex, t_doc_approvalrecord app where ce.id = ex.processinstanceid and ce.id = app.instanceid and app.approvalstage in ('01', '02', '06') and (ce.status = '99' or ce.status = '98' and ce.processcode = 'CQTZSPB') and ex.exkey = 'AJBH' and ex.exvalue = xz.ajbh and app.operatercode = :4 and exists (select 1 from t_aj_xzajrydy rydy inner join t_ry_saryjbxx ryxx on rydy.rybh = ryxx.rybh where xz.ajbh = rydy.ajbh and ryxx.ryxm like '%???%' ) ) ) ) |
fn7az7jmau40r |
SELECT COUNT(*) as CT FROM (select distinct ajbh, ajmc, cbdw, cbr, ajlx, operatetime from (select xs.ajbh, xs.ajmc, decode(xs.yscbdw, null, xs.cbdw, xs.yscbdw) as cbdw, decode(xs.yscbr, null, xs.cbr, xs.yscbr) as cbr, cast('01' as varchar2(2)) as ajlx, xs.operatetime from t_aj_xsajfaxx xs where xs.ajzt <> '2904' and exists (select 1 from T_AJ_Baz baz, T_AJ_Bazcyxx bazcyxx where baz.zbh = bazcyxx.zbh and baz.ajbh = xs.ajbh and bazcyxx.bamjzh = :1) and exists (select 1 from t_aj_xsajrydy rydy inner join t_ry_saryjbxx ryxx on rydy.rybh = ryxx.rybh where xs.ajbh = rydy.ajbh and ryxx.ryxm like '%???%' ) union all select xs.ajbh, xs.ajmc, decode(xs.yscbdw, null, xs.cbdw, xs.yscbdw) as cbdw, decode(xs.yscbr, null, xs.cbr, xs.yscbr) as cbr, cast('01' as varchar2(2)) as ajlx, xs.operatetime from t_aj_xsajfaxx xs where xs.ajzt <> '2904' and exists (select 1 from t_doc_processinstance ce, t_doc_processinstanceex ex, t_doc_approvalrecord app where ce.id = ex.processinstanceid and ce.id = app.instanceid and app.approvalstage in ('01', '02', '06') and ce.status = '99' and ex.exkey = 'AJBH' and ex.exvalue = xs.ajbh and app.operatercode = :2 and exists (select 1 from t_aj_xsajrydy rydy inner join t_ry_saryjbxx ryxx on rydy.rybh = ryxx.rybh where xs.ajbh = rydy.ajbh and ryxx.ryxm like '%???%' ) ) union all select xz.ajbh, xz.ajmc, decode(xz.yscbdw, null, xz.cbdw, xz.yscbdw), decode(xz.ysc
br, null, xz.zbmj, xz.yscbr), cast('02' as varchar2(2)) as ajlx, xz.operatetime from t_aj_xzajfaxx xz where xz.ajzt <> '3210' and exists (select 1 from T_AJ_Baz baz, T_AJ_Bazcyxx bazcyxx where baz.zbh = bazcyxx.zbh and baz.ajbh = xz.ajbh and bazcyxx.bamjzh = :3) and exists (select 1 from t_aj_xzajrydy rydy inner join t_ry_saryjbxx ryxx on rydy.rybh = ryxx.rybh where xz.ajbh = rydy.ajbh and ryxx.ryxm like '%???%' ) union all select xz.ajbh, xz.ajmc, decode(xz.yscbdw, null, xz.cbdw, xz.yscbdw), decode(xz.yscbr, null, xz.zbmj, xz.yscbr), cast('02' as varchar2(2)) as ajlx, xz.operatetime from t_aj_xzajfaxx xz where xz.ajzt <> '3210' and exists (select 1 from t_doc_processinstance ce, t_doc_processinstanceex ex, t_doc_approvalrecord app where ce.id = ex.processinstanceid and ce.id = app.instanceid and app.approvalstage in ('01', '02', '06') and (ce.status = '99' or ce.status = '98' and ce.processcode = 'CQTZSPB') and ex.exkey = 'AJBH' and ex.exvalue = xz.ajbh and app.operatercode = :4 and exists (select 1 from t_aj_xzajrydy rydy inner join t_ry_saryjbxx ryxx on rydy.rybh = ryxx.rybh where xz.ajbh = rydy.ajbh and ryxx.ryxm like '%???%' ) ) ) ) |
fntjsu431ws52 |
SELECT COUNT(*) as CT FROM (select distinct ajbh, ajmc, cbdw, cbr, ajlx, operatetime from (select xs.ajbh, xs.ajmc, decode(xs.yscbdw, null, xs.cbdw, xs.yscbdw) as cbdw, decode(xs.yscbr, null, xs.cbr, xs.yscbr) as cbr, cast('01' as varchar2(2)) as ajlx, xs.operatetime from t_aj_xsajfaxx xs where xs.ajzt <> '2904' and exists (select 1 from T_AJ_Baz baz, T_AJ_Bazcyxx bazcyxx where baz.zbh = bazcyxx.zbh and baz.ajbh = xs.ajbh and bazcyxx.bamjzh = :1) and exists (select 1 from t_aj_xsajrydy rydy inner join t_ry_saryjbxx ryxx on rydy.rybh = ryxx.rybh where xs.ajbh = rydy.ajbh and ryxx.ryxm like '%???%' ) union all select xs.ajbh, xs.ajmc, decode(xs.yscbdw, null, xs.cbdw, xs.yscbdw) as cbdw, decode(xs.yscbr, null, xs.cbr, xs.yscbr) as cbr, cast('01' as varchar2(2)) as ajlx, xs.operatetime from t_aj_xsajfaxx xs where xs.ajzt <> '2904' and exists (select 1 from t_doc_processinstance ce, t_doc_processinstanceex ex, t_doc_approvalrecord app where ce.id = ex.processinstanceid and ce.id = app.instanceid and app.approvalstage in ('01', '02', '06') and ce.status = '99' and ex.exkey = 'AJBH' and ex.exvalue = xs.ajbh and app.operatercode = :2 and exists (select 1 from t_aj_xsajrydy rydy inner join t_ry_saryjbxx ryxx on rydy.rybh = ryxx.rybh where xs.ajbh = rydy.ajbh and ryxx.ryxm like '%???%' ) ) union all select xz.ajbh, xz.ajmc, decode(xz.yscbdw, null, xz.cbdw, xz.yscbdw), decode(xz.ysc
br, null, xz.zbmj, xz.yscbr), cast('02' as varchar2(2)) as ajlx, xz.operatetime from t_aj_xzajfaxx xz where xz.ajzt <> '3210' and exists (select 1 from T_AJ_Baz baz, T_AJ_Bazcyxx bazcyxx where baz.zbh = bazcyxx.zbh and baz.ajbh = xz.ajbh and bazcyxx.bamjzh = :3) and exists (select 1 from t_aj_xzajrydy rydy inner join t_ry_saryjbxx ryxx on rydy.rybh = ryxx.rybh where xz.ajbh = rydy.ajbh and ryxx.ryxm like '%???%' ) union all select xz.ajbh, xz.ajmc, decode(xz.yscbdw, null, xz.cbdw, xz.yscbdw), decode(xz.yscbr, null, xz.zbmj, xz.yscbr), cast('02' as varchar2(2)) as ajlx, xz.operatetime from t_aj_xzajfaxx xz where xz.ajzt <> '3210' and exists (select 1 from t_doc_processinstance ce, t_doc_processinstanceex ex, t_doc_approvalrecord app where ce.id = ex.processinstanceid and ce.id = app.instanceid and app.approvalstage in ('01', '02', '06') and (ce.status = '99' or ce.status = '98' and ce.processcode = 'CQTZSPB') and ex.exkey = 'AJBH' and ex.exvalue = xz.ajbh and app.operatercode = :4 and exists (select 1 from t_aj_xzajrydy rydy inner join t_ry_saryjbxx ryxx on rydy.rybh = ryxx.rybh where xz.ajbh = rydy.ajbh and ryxx.ryxm like '%???%' ) ) ) ) |
fp2dvavs0h3p4 |
SELECT COUNT(*) as CT FROM (select distinct ajbh, ajmc, cbdw, cbr, ajlx, operatetime from (select xs.ajbh, xs.ajmc, decode(xs.yscbdw, null, xs.cbdw, xs.yscbdw) as cbdw, decode(xs.yscbr, null, xs.cbr, xs.yscbr) as cbr, cast('01' as varchar2(2)) as ajlx, xs.operatetime from t_aj_xsajfaxx xs where xs.ajzt <> '2904' and exists (select 1 from T_AJ_Baz baz, T_AJ_Bazcyxx bazcyxx where baz.zbh = bazcyxx.zbh and baz.ajbh = xs.ajbh and bazcyxx.bamjzh = :1) and exists (select 1 from t_aj_xsajrydy rydy inner join t_ry_saryjbxx ryxx on rydy.rybh = ryxx.rybh where xs.ajbh = rydy.ajbh and ryxx.ryxm like '%???%' ) union all select xs.ajbh, xs.ajmc, decode(xs.yscbdw, null, xs.cbdw, xs.yscbdw) as cbdw, decode(xs.yscbr, null, xs.cbr, xs.yscbr) as cbr, cast('01' as varchar2(2)) as ajlx, xs.operatetime from t_aj_xsajfaxx xs where xs.ajzt <> '2904' and exists (select 1 from t_doc_processinstance ce, t_doc_processinstanceex ex, t_doc_approvalrecord app where ce.id = ex.processinstanceid and ce.id = app.instanceid and app.approvalstage in ('01', '02', '06') and ce.status = '99' and ex.exkey = 'AJBH' and ex.exvalue = xs.ajbh and app.operatercode = :2 and exists (select 1 from t_aj_xsajrydy rydy inner join t_ry_saryjbxx ryxx on rydy.rybh = ryxx.rybh where xs.ajbh = rydy.ajbh and ryxx.ryxm like '%???%' ) ) union all select xz.ajbh, xz.ajmc, decode(xz.yscbdw, null, xz.cbdw, xz.yscbdw), decode(xz.ysc
br, null, xz.zbmj, xz.yscbr), cast('02' as varchar2(2)) as ajlx, xz.operatetime from t_aj_xzajfaxx xz where xz.ajzt <> '3210' and exists (select 1 from T_AJ_Baz baz, T_AJ_Bazcyxx bazcyxx where baz.zbh = bazcyxx.zbh and baz.ajbh = xz.ajbh and bazcyxx.bamjzh = :3) and exists (select 1 from t_aj_xzajrydy rydy inner join t_ry_saryjbxx ryxx on rydy.rybh = ryxx.rybh where xz.ajbh = rydy.ajbh and ryxx.ryxm like '%???%' ) union all select xz.ajbh, xz.ajmc, decode(xz.yscbdw, null, xz.cbdw, xz.yscbdw), decode(xz.yscbr, null, xz.zbmj, xz.yscbr), cast('02' as varchar2(2)) as ajlx, xz.operatetime from t_aj_xzajfaxx xz where xz.ajzt <> '3210' and exists (select 1 from t_doc_processinstance ce, t_doc_processinstanceex ex, t_doc_approvalrecord app where ce.id = ex.processinstanceid and ce.id = app.instanceid and app.approvalstage in ('01', '02', '06') and (ce.status = '99' or ce.status = '98' and ce.processcode = 'CQTZSPB') and ex.exkey = 'AJBH' and ex.exvalue = xz.ajbh and app.operatercode = :4 and exists (select 1 from t_aj_xzajrydy rydy inner join t_ry_saryjbxx ryxx on rydy.rybh = ryxx.rybh where xz.ajbh = rydy.ajbh and ryxx.ryxm like '%???%' ) ) ) ) |
fu55yg282zyym | select max(operateTime) lastUpTime from T_AJ_XSAJRYDY where RYLX='04' and OPERATETIME>:1 and OPERATETIME<=:2 |
fvfqqdzfaksq1 | select docinstanc0_.PROCESSINSTANCEID as PROCESSI3_1_, docinstanc0_.ID as ID1_, docinstanc0_.ID as ID206_0_, docinstanc0_.TEMPLATEID as TEMPLATEID206_0_, docinstanc0_.PROCESSINSTANCEID as PROCESSI3_206_0_, docinstanc0_.DOCSTATUS as DOCSTATUS206_0_, docinstanc0_.DOCTYPE as DOCTYPE206_0_, docinstanc0_.RELATIONTYPE as RELATION6_206_0_, docinstanc0_.RELATIONID as RELATIONID206_0_, docinstanc0_.WORDBYTES as WORDBYTES206_0_, docinstanc0_.SEPBYTES as SEPBYTES206_0_, docinstanc0_.DOCURL as DOCURL206_0_, docinstanc0_.UPLOADURL as UPLOADURL206_0_, docinstanc0_.OPERATERCODE as OPERATE12_206_0_, docinstanc0_.OPERATETIME as OPERATE13_206_0_, docinstanc0_.DELFLAG as DELFLAG206_0_, docinstanc0_.ORGID as ORGID206_0_, docinstanc0_.CJSQ as CJSQ206_0_, docinstanc0_.BZXX as BZXX206_0_, docinstanc0_.GSDW as GSDW206_0_, docinstanc0_.KJRZH as KJRZH206_0_, docinstanc0_.KJSJ as KJSJ206_0_, docinstanc0_.WORDBYTESSIZE as WORDBYT21_206_0_, docinstanc0_.BDWORDSIZE as BDWORDSIZE206_0_, docinstanc0_.ZRZ as ZRZ206_0_, docinstanc0_.ZHAOPIANCONTENT as ZHAOPIA24_206_0_, docinstanc0_.WCQAJBH as WCQAJBH206_0_ from T_DOC_DOCINSTANCE docinstanc0_ where docinstanc0_.PROCESSINSTANCEID=:1 |
fw5dncbpz9atf | SELECT COUNT(*) as CT from T_AJ_JJDJ j where j.jjlxbj is null and j.sazt in ('1100', '2110', '2120', '3140', '3150') and j.cljg !='02' and j.blmjzh = :1 |
fzj55hwumfpbp |
SELECT COUNT(*) as CT from ( select distinct wsqx.docid , wsqx.asjbh, wsqx.dxbh, wsqx.cqdx, wsqx.wslx, wsqx.mbmc, wsqx.status, wsqx.processcode, wsqx.starttime, wsqx.loginorgcode , wsqx.username, wsqx.owner , wsqx.ender , wsqx.proid , wsqx.temid, wsqx.dxmc , wsqx.cqlx from t_doc_wsqxhis wsqx where wsqx.cqlx = '1' and wsqx.treepath like :1 and (wsqx.status = '99' or (wsqx.status = '98' and wsqx.processcode in ('CQTZSPB', 'LDJYCPBG', 'LDJYSWZXCPB'))) and wsqx.cqdx not in ('05', '06') and wsqx.loginorgcode in (select orgcode from t_sys_organization where treepath like '11000000000000.11010800000000.11010883000000%') and wsqx.mbmc = :2 and wsqx.starttime >= to_Date(:3, 'yyyy-MM-dd hh24:mi') and wsqx.starttime<= to_Date(:4, 'yyyy-MM-dd hh24:mi') and wsqx.status = :5 union all select distinct wsqx.docid , wsqx.asjbh, wsqx.dxbh, wsqx.cqdx, wsqx.wslx, wsqx.mbmc, wsqx.status, wsqx.processcode, wsqx.starttime, wsqx.loginorgcode , wsqx.username, wsqx.owner , wsqx.ender , wsqx.proid , wsqx.temid, wsqx.dxmc , wsqx.cqlx from t_doc_wsqxhis wsqx where wsqx.cqlx = '2' and wsqx.treepath like :6 and wsqx.cqdx not in ('05', '06') and wsqx.loginorgcode in (select orgcode from t_sys_organization where treepath like '11000000000000.11010800000000.11010883000000%') and wsqx.mbmc = :7 and wsqx.starttime >= to_Date(:8, 'yyyy-MM-dd hh24:m
i') and wsqx.starttime<= to_Date(:9, 'yyyy-MM-dd hh24:mi') and wsqx.status = :10 ) |
g7wgxc2tn9mmz |
SELECT COUNT(*) as CT FROM (select distinct ajbh, ajmc, cbdw, cbr, ajlx, operatetime from (select xs.ajbh, xs.ajmc, decode(xs.yscbdw, null, xs.cbdw, xs.yscbdw) as cbdw, decode(xs.yscbr, null, xs.cbr, xs.yscbr) as cbr, cast('01' as varchar2(2)) as ajlx, xs.operatetime from t_aj_xsajfaxx xs where xs.ajzt <> '2904' and exists (select 1 from T_AJ_Baz baz, T_AJ_Bazcyxx bazcyxx where baz.zbh = bazcyxx.zbh and baz.ajbh = xs.ajbh and bazcyxx.bamjzh = :1) and exists (select 1 from t_aj_xsajrydy rydy inner join t_ry_saryjbxx ryxx on rydy.rybh = ryxx.rybh where xs.ajbh = rydy.ajbh and ryxx.rybh = 'Q1101085800002013110018' ) union all select xs.ajbh, xs.ajmc, decode(xs.yscbdw, null, xs.cbdw, xs.yscbdw) as cbdw, decode(xs.yscbr, null, xs.cbr, xs.yscbr) as cbr, cast('01' as varchar2(2)) as ajlx, xs.operatetime from t_aj_xsajfaxx xs where xs.ajzt <> '2904' and exists (select 1 from t_doc_processinstance ce, t_doc_processinstanceex ex, t_doc_approvalrecord app where ce.id = ex.processinstanceid and ce.id = app.instanceid and app.approvalstage in ('01', '02', '06') and ce.status = '99' and ex.exkey = 'AJBH' and ex.exvalue = xs.ajbh and app.operatercode = :2 and exists (select 1 from t_aj_xsajrydy rydy inner join t_ry_saryjbxx ryxx on rydy.rybh = ryxx.rybh where xs.ajbh = rydy.ajbh and ryxx.rybh = 'Q1101085800002013110018' ) ) union all select xz.ajbh, xz.ajmc, decode(xz.yscbdw, null, xz.cb
dw, xz.yscbdw), decode(xz.yscbr, null, xz.zbmj, xz.yscbr), cast('02' as varchar2(2)) as ajlx, xz.operatetime from t_aj_xzajfaxx xz where xz.ajzt <> '3210' and exists (select 1 from T_AJ_Baz baz, T_AJ_Bazcyxx bazcyxx where baz.zbh = bazcyxx.zbh and baz.ajbh = xz.ajbh and bazcyxx.bamjzh = :3) and exists (select 1 from t_aj_xzajrydy rydy inner join t_ry_saryjbxx ryxx on rydy.rybh = ryxx.rybh where xz.ajbh = rydy.ajbh and ryxx.rybh = 'Q1101085800002013110018' ) union all select xz.ajbh, xz.ajmc, decode(xz.yscbdw, null, xz.cbdw, xz.yscbdw), decode(xz.yscbr, null, xz.zbmj, xz.yscbr), cast('02' as varchar2(2)) as ajlx, xz.operatetime from t_aj_xzajfaxx xz where xz.ajzt <> '3210' and exists (select 1 from t_doc_processinstance ce, t_doc_processinstanceex ex, t_doc_approvalrecord app where ce.id = ex.processinstanceid and ce.id = app.instanceid and app.approvalstage in ('01', '02', '06') and (ce.status = '99' or ce.status = '98' and ce.processcode = 'CQTZSPB') and ex.exkey = 'AJBH' and ex.exvalue = xz.ajbh and app.operatercode = :4 and exists (select 1 from t_aj_xzajrydy rydy inner join t_ry_saryjbxx ryxx on rydy.rybh = ryxx.rybh where xz.ajbh = rydy.ajbh and ryxx.rybh = 'Q1101085800002013110018' ) ) ) )
|
g82brgsvjagqn | insert into zfba_history.H_DOC_WSGD (select * from T_DOC_WSGD where id = :1) |
gcubhupfwxwsw |
SELECT COUNT(*) as CT from ( select distinct wsqx.docid , wsqx.asjbh, wsqx.dxbh, wsqx.cqdx, wsqx.wslx, wsqx.mbmc, wsqx.status, wsqx.processcode, wsqx.starttime, wsqx.loginorgcode , wsqx.username, wsqx.owner , wsqx.ender , wsqx.proid , wsqx.temid, wsqx.dxmc , wsqx.cqlx from t_doc_wsqx wsqx where wsqx.cqlx = '1' and wsqx.treepath like :1 and (wsqx.status = '99' or (wsqx.status = '98' and wsqx.processcode in ('CQTZSPB', 'LDJYCPBG', 'LDJYSWZXCPB'))) and wsqx.cqdx not in ('05', '06') and wsqx.loginorgcode in (select orgcode from t_sys_organization where treepath like '11000000000000.11022100000000.11022130000000%') and wsqx.starttime >= to_Date(:2, 'yyyy-MM-dd hh24:mi') and wsqx.starttime<= to_Date(:3, 'yyyy-MM-dd hh24:mi') and wsqx.status = :4 union all select distinct wsqx.docid , wsqx.asjbh, wsqx.dxbh, wsqx.cqdx, wsqx.wslx, wsqx.mbmc, wsqx.status, wsqx.processcode, wsqx.starttime, wsqx.loginorgcode , wsqx.username, wsqx.owner , wsqx.ender , wsqx.proid , wsqx.temid, wsqx.dxmc , wsqx.cqlx from t_doc_wsqx wsqx where wsqx.cqlx = '2' and wsqx.treepath like :5 and wsqx.cqdx not in ('05', '06') and wsqx.loginorgcode in (select orgcode from t_sys_organization where treepath like '11000000000000.11022100000000.11022130000000%') and wsqx.starttime >= to_Date(:6, 'yyyy-MM-dd hh24:mi') and wsqx.starttime<= to_Date(:7, 'yyyy
-MM-dd hh24:mi') and wsqx.status = :8 ) |
gf01b0jhpum8f |
select * from ( select distinct ajbh, ajmc, cbdw, cbr, ajlx, operatetime from (select xs.ajbh, xs.ajmc, decode(xs.yscbdw, null, xs.cbdw, xs.yscbdw) as cbdw, decode(xs.yscbr, null, xs.cbr, xs.yscbr) as cbr, cast('01' as varchar2(2)) as ajlx, xs.operatetime from t_aj_xsajfaxx xs where xs.ajzt <> '2904' and exists (select 1 from T_AJ_Baz baz, T_AJ_Bazcyxx bazcyxx where baz.zbh = bazcyxx.zbh and baz.ajbh = xs.ajbh and bazcyxx.bamjzh = :1) and exists (select 1 from t_aj_xsajrydy rydy inner join t_ry_saryjbxx ryxx on rydy.rybh = ryxx.rybh where xs.ajbh = rydy.ajbh and ryxx.ryxm like '%???%' ) union all select xs.ajbh, xs.ajmc, decode(xs.yscbdw, null, xs.cbdw, xs.yscbdw) as cbdw, decode(xs.yscbr, null, xs.cbr, xs.yscbr) as cbr, cast('01' as varchar2(2)) as ajlx, xs.operatetime from t_aj_xsajfaxx xs where xs.ajzt <> '2904' and exists (select 1 from t_doc_processinstance ce, t_doc_processinstanceex ex, t_doc_approvalrecord app where ce.id = ex.processinstanceid and ce.id = app.instanceid and app.approvalstage in ('01', '02', '06') and ce.status = '99' and ex.exkey = 'AJBH' and ex.exvalue = xs.ajbh and app.operatercode = :2 and exists (select 1 from t_aj_xsajrydy rydy inner join t_ry_saryjbxx ryxx on rydy.rybh = ryxx.rybh where xs.ajbh = rydy.ajbh and ryxx.ryxm like '%???%' ) ) union all select xz.ajbh, xz.ajmc, decode(xz.yscbdw, null, xz.cbdw, xz.yscbdw), decode(xz.yscbr, null,
xz.zbmj, xz.yscbr), cast('02' as varchar2(2)) as ajlx, xz.operatetime from t_aj_xzajfaxx xz where xz.ajzt <> '3210' and exists (select 1 from T_AJ_Baz baz, T_AJ_Bazcyxx bazcyxx where baz.zbh = bazcyxx.zbh and baz.ajbh = xz.ajbh and bazcyxx.bamjzh = :3) and exists (select 1 from t_aj_xzajrydy rydy inner join t_ry_saryjbxx ryxx on rydy.rybh = ryxx.rybh where xz.ajbh = rydy.ajbh and ryxx.ryxm like '%???%' ) union all select xz.ajbh, xz.ajmc, decode(xz.yscbdw, null, xz.cbdw, xz.yscbdw), decode(xz.yscbr, null, xz.zbmj, xz.yscbr), cast('02' as varchar2(2)) as ajlx, xz.operatetime from t_aj_xzajfaxx xz where xz.ajzt <> '3210' and exists (select 1 from t_doc_processinstance ce, t_doc_processinstanceex ex, t_doc_approvalrecord app where ce.id = ex.processinstanceid and ce.id = app.instanceid and app.approvalstage in ('01', '02', '06') and (ce.status = '99' or ce.status = '98' and ce.processcode = 'CQTZSPB') and ex.exkey = 'AJBH' and ex.exvalue = xz.ajbh and app.operatercode = :4 and exists (select 1 from t_aj_xzajrydy rydy inner join t_ry_saryjbxx ryxx on rydy.rybh = ryxx.rybh where xz.ajbh = rydy.ajbh and ryxx.ryxm like '%???%' ) ) ) order by operatetime desc ) where rownum <= :5 |
gfpx0qdgdhgtm | update t_ajgk_ryjbxx set fbztid = '02', fbsj=:1 where fbztid = '01' and operatetime<:2 |
guw1c79wpdus0 | update t_ajgk_ajjbxx set fbztid = '02', fbsj=:1 where fbztid = '01' and operatetime<:2 |