PSDEDQCODE.json 6.9 KB
Newer Older
root's avatar
root committed
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 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223
{
  "querycode" : "SELECT\nt1.ARCHIVESCENTERID,\nt21.ARCHIVESCENTERNAME||' '||t21.CABINETNO||' ' ||(case when t21.LAYERNO = '10' then '上层'   when t21.LAYERNO = '20' then '中层'  when t21.LAYERNO = '30'  then '下层'  else ' ' end ) ||t21.LAYERNO AS ARCHIVESCENTERNAME,\nt1.BZ,\nt1.CFGH,\nt1.CREATEDATE,\nt1.CREATEMAN,\nt1.DABGD,\nt1.DABGDD,\nt1.DABH,\nt1.DADCDW,\nt1.DADRRQ,\nt1.DALYD,\nt1.DAMU,\nt1.DASTATE,\nt1.DATEOFBIRTH,\nt1.DAZT,\nt11.DBDWSJ,\nt1.DCDA,\nt1.DRDA,\nt1.DURATION,\nt1.EDUCATION,\nt1.ENABLE,\nt1.FILEAUDIT,\nt1.FJ,\nt41.ZZDZS AS GLZZDZS,\nt1.JOINPARTYDATE,\nt11.LEAVEDATE,\nt1.OPERATIONDATE,\nt1.OPERATIONS,\nt41.ORGCODE,\nt11.ORMORGID AS ORGID,\nt11.ORMORGID,\nt1.ORMORGID2,\nt1.ORMORGID3,\nt31.ZZDZS AS ORMORGNAME,\nt1.ORMORGNAME2,\nt41.ORGNAME AS ORMORGNAME3,\nt1.PIMARCHIVESID,\nt1.PIMARCHIVESNAME,\nt1.PIMPERSONID,\nt11.PIMPERSONNAME,\nt1.SFXJD,\nt31.ZZDZS AS SSZZDZS,\nt1.STARTWORKDATAE,\nt1.TRANSTOOUT,\nt1.UPDATEDATE,\nt1.UPDATEMAN,\nt1.XDABGDW,\nt11.YGBH,\nt11.YGZT,\ncase when  t11.YGZT in ('40','50','60','130','51') then '20' else '10' end AS ZGCODE,\nt1.ZT,\nt41.ZZDZS\nFROM T_PIMARCHIVES t1 \nLEFT JOIN T_PIMPERSON t11 ON t1.PIMPERSONID = t11.PIMPERSONID \nLEFT JOIN T_ARCHIVESCENTER t21 ON t1.ARCHIVESCENTERID = t21.ARCHIVESCENTERID \nLEFT JOIN T_SRFORG t31 ON t11.ORMORGID = t31.ORGID \nLEFT JOIN T_SRFORG t41 ON t1.ORMORGID3 = t41.ORGID \n",
  "dbtype" : "ORACLE",
  "psdedqcodename" : "Oracle",
  "psdedqcodeexps" : [ {
    "expcode" : "t1.ARCHIVESCENTERID",
    "ordervalue" : 0,
    "psdedqcodeexpname" : "ARCHIVESCENTERID"
  }, {
    "expcode" : "t21.ARCHIVESCENTERNAME||' '||t21.CABINETNO||' ' ||(case when t21.LAYERNO = '10' then '上层'   when t21.LAYERNO = '20' then '中层'  when t21.LAYERNO = '30'  then '下层'  else ' ' end ) ||t21.LAYERNO",
    "ordervalue" : 1,
    "psdedqcodeexpname" : "ARCHIVESCENTERNAME"
  }, {
    "expcode" : "t1.BZ",
    "ordervalue" : 2,
    "psdedqcodeexpname" : "BZ"
  }, {
    "expcode" : "t1.CFGH",
    "ordervalue" : 3,
    "psdedqcodeexpname" : "CFGH"
  }, {
    "expcode" : "t1.CREATEDATE",
    "ordervalue" : 4,
    "psdedqcodeexpname" : "CREATEDATE"
  }, {
    "expcode" : "t1.CREATEMAN",
    "ordervalue" : 5,
    "psdedqcodeexpname" : "CREATEMAN"
  }, {
    "expcode" : "t1.DABGD",
    "ordervalue" : 6,
    "psdedqcodeexpname" : "DABGD"
  }, {
    "expcode" : "t1.DABGDD",
    "ordervalue" : 7,
    "psdedqcodeexpname" : "DABGDD"
  }, {
    "expcode" : "t1.DABH",
    "ordervalue" : 8,
    "psdedqcodeexpname" : "DABH"
  }, {
    "expcode" : "t1.DADCDW",
    "ordervalue" : 9,
    "psdedqcodeexpname" : "DADCDW"
  }, {
    "expcode" : "t1.DADRRQ",
    "ordervalue" : 10,
    "psdedqcodeexpname" : "DADRRQ"
  }, {
    "expcode" : "t1.DALYD",
    "ordervalue" : 11,
    "psdedqcodeexpname" : "DALYD"
  }, {
    "expcode" : "t1.DAMU",
    "ordervalue" : 12,
    "psdedqcodeexpname" : "DAMU"
  }, {
    "expcode" : "t1.DASTATE",
    "ordervalue" : 13,
    "psdedqcodeexpname" : "DASTATE"
  }, {
    "expcode" : "t1.DATEOFBIRTH",
    "ordervalue" : 14,
    "psdedqcodeexpname" : "DATEOFBIRTH"
  }, {
    "expcode" : "t1.DAZT",
    "ordervalue" : 15,
    "psdedqcodeexpname" : "DAZT"
  }, {
    "expcode" : "t11.DBDWSJ",
    "ordervalue" : 16,
    "psdedqcodeexpname" : "DBDWSJ"
  }, {
    "expcode" : "t1.DCDA",
    "ordervalue" : 17,
    "psdedqcodeexpname" : "DCDA"
  }, {
    "expcode" : "t1.DRDA",
    "ordervalue" : 18,
    "psdedqcodeexpname" : "DRDA"
  }, {
    "expcode" : "t1.DURATION",
    "ordervalue" : 19,
    "psdedqcodeexpname" : "DURATION"
  }, {
    "expcode" : "t1.EDUCATION",
    "ordervalue" : 20,
    "psdedqcodeexpname" : "EDUCATION"
  }, {
    "expcode" : "t1.ENABLE",
    "ordervalue" : 21,
    "psdedqcodeexpname" : "ENABLE"
  }, {
    "expcode" : "t1.FILEAUDIT",
    "ordervalue" : 22,
    "psdedqcodeexpname" : "FILEAUDIT"
  }, {
    "expcode" : "t1.FJ",
    "ordervalue" : 23,
    "psdedqcodeexpname" : "FJ"
  }, {
    "expcode" : "t41.ZZDZS",
    "ordervalue" : 24,
    "psdedqcodeexpname" : "GLZZDZS"
  }, {
    "expcode" : "t1.JOINPARTYDATE",
    "ordervalue" : 25,
    "psdedqcodeexpname" : "JOINPARTYDATE"
  }, {
    "expcode" : "t11.LEAVEDATE",
    "ordervalue" : 26,
    "psdedqcodeexpname" : "LEAVEDATE"
  }, {
    "expcode" : "t1.OPERATIONDATE",
    "ordervalue" : 27,
    "psdedqcodeexpname" : "OPERATIONDATE"
  }, {
    "expcode" : "t1.OPERATIONS",
    "ordervalue" : 28,
    "psdedqcodeexpname" : "OPERATIONS"
  }, {
    "expcode" : "t41.ORGCODE",
    "ordervalue" : 29,
    "psdedqcodeexpname" : "ORGCODE"
  }, {
    "expcode" : "t11.ORMORGID",
    "ordervalue" : 30,
    "psdedqcodeexpname" : "ORGID"
  }, {
    "expcode" : "t11.ORMORGID",
    "ordervalue" : 31,
    "psdedqcodeexpname" : "ORMORGID"
  }, {
    "expcode" : "t1.ORMORGID2",
    "ordervalue" : 32,
    "psdedqcodeexpname" : "ORMORGID2"
  }, {
    "expcode" : "t1.ORMORGID3",
    "ordervalue" : 33,
    "psdedqcodeexpname" : "ORMORGID3"
  }, {
    "expcode" : "t31.ZZDZS",
    "ordervalue" : 34,
    "psdedqcodeexpname" : "ORMORGNAME"
  }, {
    "expcode" : "t1.ORMORGNAME2",
    "ordervalue" : 35,
    "psdedqcodeexpname" : "ORMORGNAME2"
  }, {
    "expcode" : "t41.ORGNAME",
    "ordervalue" : 36,
    "psdedqcodeexpname" : "ORMORGNAME3"
  }, {
    "expcode" : "t1.PIMARCHIVESID",
    "ordervalue" : 37,
    "psdedqcodeexpname" : "PIMARCHIVESID"
  }, {
    "expcode" : "t1.PIMARCHIVESNAME",
    "ordervalue" : 38,
    "psdedqcodeexpname" : "PIMARCHIVESNAME"
  }, {
    "expcode" : "t1.PIMPERSONID",
    "ordervalue" : 39,
    "psdedqcodeexpname" : "PIMPERSONID"
  }, {
    "expcode" : "t11.PIMPERSONNAME",
    "ordervalue" : 40,
    "psdedqcodeexpname" : "PIMPERSONNAME"
  }, {
    "expcode" : "t1.SFXJD",
    "ordervalue" : 41,
    "psdedqcodeexpname" : "SFXJD"
  }, {
    "expcode" : "t31.ZZDZS",
    "ordervalue" : 42,
    "psdedqcodeexpname" : "SSZZDZS"
  }, {
    "expcode" : "t1.STARTWORKDATAE",
    "ordervalue" : 43,
    "psdedqcodeexpname" : "STARTWORKDATAE"
  }, {
    "expcode" : "t1.TRANSTOOUT",
    "ordervalue" : 44,
    "psdedqcodeexpname" : "TRANSTOOUT"
  }, {
    "expcode" : "t1.UPDATEDATE",
    "ordervalue" : 45,
    "psdedqcodeexpname" : "UPDATEDATE"
  }, {
    "expcode" : "t1.UPDATEMAN",
    "ordervalue" : 46,
    "psdedqcodeexpname" : "UPDATEMAN"
  }, {
    "expcode" : "t1.XDABGDW",
    "ordervalue" : 47,
    "psdedqcodeexpname" : "XDABGDW"
  }, {
    "expcode" : "t11.YGBH",
    "ordervalue" : 48,
    "psdedqcodeexpname" : "YGBH"
  }, {
    "expcode" : "t11.YGZT",
    "ordervalue" : 49,
    "psdedqcodeexpname" : "YGZT"
  }, {
    "expcode" : "case when  t11.YGZT in ('40','50','60','130','51') then '20' else '10' end",
    "ordervalue" : 50,
    "psdedqcodeexpname" : "ZGCODE"
  }, {
    "expcode" : "t1.ZT",
    "ordervalue" : 51,
    "psdedqcodeexpname" : "ZT"
  }, {
    "expcode" : "t41.ZZDZS",
    "ordervalue" : 52,
    "psdedqcodeexpname" : "ZZDZS"
  } ],
  "psdedqcodeconds" : [ {
    "condcode" : "( t1.ORMORGID3 IS NOT NULL )",
    "psdedqcodecondname" : "查询条件",
    "ordervalue" : 0
  } ]
}