1. {
    2. "job": {
    3. "setting": {
    4. "speed": {
    5. "channel": 8,
    6. "batchSize": 2048,
    7. "concurrent": 4
    8. },
    9. },
    10. "content": [
    11. {
    12. "reader": {
    13. "name": "oraclereader",
    14. "parameter": {
    15. "username": "DdEYAvAW374bO0k8zJyScA==",
    16. "password": "kTH+EDRu64O/dN1LuuQ0kA==",
    17. "column": [
    18. "\"MLDZID\"",
    19. "\"JLXDM\"",
    20. "\"XZQHDM\"",
    21. "\"DZMC\"",
    22. "\"MPHHZ\"",
    23. "\"MPHHZ_HFH\"",
    24. "\"MPHHZ_ZHFH\"",
    25. "\"SFLJ\"",
    26. "\"SHIID\"",
    27. "\"QXGXID\"",
    28. "\"XZJDBSCID\"",
    29. "\"SQDM\"",
    30. "\"SFSCFW\"",
    31. "\"MPZBX\"",
    32. "\"MPZBY\"",
    33. "\"BZ\"",
    34. "\"XT_LRSJ\"",
    35. "\"XT_LRRXM\"",
    36. "\"XT_LRRID\"",
    37. "\"XT_LRRBM\"",
    38. "\"XT_LRRBMID\"",
    39. "\"XT_LRRBMID\"",
    40. "\"XT_ZHXGSJ\"",
    41. "\"XT_ZHXGRXM\"",
    42. "\"XT_ZHXGRID\"",
    43. "\"XT_ZHXGRBM\"",
    44. "\"XT_ZHXGRBMID\"",
    45. "\"XT_ZHXGIP\"",
    46. "\"XT_ZXBZ\"",
    47. "\"XT_ZXYY\"",
    48. "\"XT_TIMESTAMP\""
    49. ],
    50. "splitPk": "MLDZID",
    51. "where": "XT_TIMESTAMP >= TO_DATE('2017-06-18 09:08:54','yyyy-MM-dd HH24:mi:ss') and XT_TIMESTAMP < TO_DATE('2018-07-27 00:00:00','yyyy-MM-dd HH24:mi:ss')",
    52. "connection": [
    53. {
    54. "table": [
    55. "TMDCWW_BZDZ_ADD_MLDZDXB"
    56. ],
    57. "jdbcUrl": [
    58. "jdbc:oracle:thin:@//oracle.jwzh.online:51521/oradb"
    59. ]
    60. }
    61. ]
    62. }
    63. },
    64. "transformer": [
    65. {
    66. "name": "dx_groovy",
    67. "parameter": {
    68. "code": "Column column = record.getColumn(5);String str = column.asString();String newStr=null;if(str?.trim() && str.isInteger()){record.setColumn(5, new LongColumn(str.replaceAll(' ', '')));return record};record.setColumn(5, new LongColumn(null));return record",
    69. "extraPackage": [
    70. "import groovy.json.JsonSlurper;"
    71. ]
    72. }
    73. }
    74. ],
    75. "writer": {
    76. "name": "mysqlwriter",
    77. "parameter": {
    78. "writeMode": "insert ignore",
    79. "username": "yRjwDFuoPKlqya9h9H2Amg==",
    80. "password": "yRjwDFuoPKlqya9h9H2Amg==",
    81. "column": [
    82. "`id`",
    83. "`jlxid`",
    84. "`xzqhdm`",
    85. "`dzmc`",
    86. "`dzhzlx`",
    87. "`hfh`",
    88. "`zhfh`",
    89. "`sflj`",
    90. "`xzgx_sid`",
    91. "`xzgx_qxid`",
    92. "`xzgx_xzjdbscid`",
    93. "`xzgx_cjwhid`",
    94. "`sffw`",
    95. "`zbx`",
    96. "`zby`",
    97. "`bz`",
    98. "`xt_lrsj`",
    99. "`xt_lrrxm`",
    100. "`xt_lrrid`",
    101. "`xt_lrrbm`",
    102. "`xt_lrrbmid`",
    103. "`xt_lrip`",
    104. "`xt_zhxgsj`",
    105. "`xt_zhxgrxm`",
    106. "`xt_zhxgrid`",
    107. "`xt_zhxgrbm`",
    108. "`xt_zhxgrbmid`",
    109. "`xt_zhxgip`",
    110. "`xt_zxbz`",
    111. "`xt_zxyy`",
    112. "`xt_timestamp`"
    113. ],
    114. "preSql": [
    115. "select now()"
    116. ],
    117. "connection": [
    118. {
    119. "table": [
    120. "bzdz_add_mldzdxb"
    121. ],
    122. "jdbcUrl": "jdbc:mysql://192.168.160.40:3323/jwzh_dw"
    123. }
    124. ]
    125. }
    126. }
    127. }
    128. ]
    129. }
    130. }