dept_ability.ktr 30 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <transformation>
  3. <info>
  4. <name>dept_ability</name>
  5. <description/>
  6. <extended_description/>
  7. <trans_version/>
  8. <trans_type>Normal</trans_type>
  9. <directory>/</directory>
  10. <parameters>
  11. <parameter>
  12. <name>input_db_ip</name>
  13. <default_value>172.17.0.1</default_value>
  14. <description/>
  15. </parameter>
  16. <parameter>
  17. <name>input_db_port</name>
  18. <default_value>27017</default_value>
  19. <description/>
  20. </parameter>
  21. <parameter>
  22. <name>out_db_ip</name>
  23. <default_value>172.17.0.1</default_value>
  24. <description/>
  25. </parameter>
  26. <parameter>
  27. <name>out_db_name</name>
  28. <default_value>ry</default_value>
  29. <description/>
  30. </parameter>
  31. <parameter>
  32. <name>out_db_port</name>
  33. <default_value>3306</default_value>
  34. <description/>
  35. </parameter>
  36. <parameter>
  37. <name>out_db_pwd</name>
  38. <default_value>sckjadmin</default_value>
  39. <description/>
  40. </parameter>
  41. <parameter>
  42. <name>out_db_username</name>
  43. <default_value>root</default_value>
  44. <description/>
  45. </parameter>
  46. </parameters>
  47. <log>
  48. <trans-log-table>
  49. <connection/>
  50. <schema/>
  51. <table/>
  52. <size_limit_lines/>
  53. <interval/>
  54. <timeout_days/>
  55. <field>
  56. <id>ID_BATCH</id>
  57. <enabled>Y</enabled>
  58. <name>ID_BATCH</name>
  59. </field>
  60. <field>
  61. <id>CHANNEL_ID</id>
  62. <enabled>Y</enabled>
  63. <name>CHANNEL_ID</name>
  64. </field>
  65. <field>
  66. <id>TRANSNAME</id>
  67. <enabled>Y</enabled>
  68. <name>TRANSNAME</name>
  69. </field>
  70. <field>
  71. <id>STATUS</id>
  72. <enabled>Y</enabled>
  73. <name>STATUS</name>
  74. </field>
  75. <field>
  76. <id>LINES_READ</id>
  77. <enabled>Y</enabled>
  78. <name>LINES_READ</name>
  79. <subject/>
  80. </field>
  81. <field>
  82. <id>LINES_WRITTEN</id>
  83. <enabled>Y</enabled>
  84. <name>LINES_WRITTEN</name>
  85. <subject/>
  86. </field>
  87. <field>
  88. <id>LINES_UPDATED</id>
  89. <enabled>Y</enabled>
  90. <name>LINES_UPDATED</name>
  91. <subject/>
  92. </field>
  93. <field>
  94. <id>LINES_INPUT</id>
  95. <enabled>Y</enabled>
  96. <name>LINES_INPUT</name>
  97. <subject/>
  98. </field>
  99. <field>
  100. <id>LINES_OUTPUT</id>
  101. <enabled>Y</enabled>
  102. <name>LINES_OUTPUT</name>
  103. <subject/>
  104. </field>
  105. <field>
  106. <id>LINES_REJECTED</id>
  107. <enabled>Y</enabled>
  108. <name>LINES_REJECTED</name>
  109. <subject/>
  110. </field>
  111. <field>
  112. <id>ERRORS</id>
  113. <enabled>Y</enabled>
  114. <name>ERRORS</name>
  115. </field>
  116. <field>
  117. <id>STARTDATE</id>
  118. <enabled>Y</enabled>
  119. <name>STARTDATE</name>
  120. </field>
  121. <field>
  122. <id>ENDDATE</id>
  123. <enabled>Y</enabled>
  124. <name>ENDDATE</name>
  125. </field>
  126. <field>
  127. <id>LOGDATE</id>
  128. <enabled>Y</enabled>
  129. <name>LOGDATE</name>
  130. </field>
  131. <field>
  132. <id>DEPDATE</id>
  133. <enabled>Y</enabled>
  134. <name>DEPDATE</name>
  135. </field>
  136. <field>
  137. <id>REPLAYDATE</id>
  138. <enabled>Y</enabled>
  139. <name>REPLAYDATE</name>
  140. </field>
  141. <field>
  142. <id>LOG_FIELD</id>
  143. <enabled>Y</enabled>
  144. <name>LOG_FIELD</name>
  145. </field>
  146. <field>
  147. <id>EXECUTING_SERVER</id>
  148. <enabled>N</enabled>
  149. <name>EXECUTING_SERVER</name>
  150. </field>
  151. <field>
  152. <id>EXECUTING_USER</id>
  153. <enabled>N</enabled>
  154. <name>EXECUTING_USER</name>
  155. </field>
  156. <field>
  157. <id>CLIENT</id>
  158. <enabled>N</enabled>
  159. <name>CLIENT</name>
  160. </field>
  161. </trans-log-table>
  162. <perf-log-table>
  163. <connection/>
  164. <schema/>
  165. <table/>
  166. <interval/>
  167. <timeout_days/>
  168. <field>
  169. <id>ID_BATCH</id>
  170. <enabled>Y</enabled>
  171. <name>ID_BATCH</name>
  172. </field>
  173. <field>
  174. <id>SEQ_NR</id>
  175. <enabled>Y</enabled>
  176. <name>SEQ_NR</name>
  177. </field>
  178. <field>
  179. <id>LOGDATE</id>
  180. <enabled>Y</enabled>
  181. <name>LOGDATE</name>
  182. </field>
  183. <field>
  184. <id>TRANSNAME</id>
  185. <enabled>Y</enabled>
  186. <name>TRANSNAME</name>
  187. </field>
  188. <field>
  189. <id>STEPNAME</id>
  190. <enabled>Y</enabled>
  191. <name>STEPNAME</name>
  192. </field>
  193. <field>
  194. <id>STEP_COPY</id>
  195. <enabled>Y</enabled>
  196. <name>STEP_COPY</name>
  197. </field>
  198. <field>
  199. <id>LINES_READ</id>
  200. <enabled>Y</enabled>
  201. <name>LINES_READ</name>
  202. </field>
  203. <field>
  204. <id>LINES_WRITTEN</id>
  205. <enabled>Y</enabled>
  206. <name>LINES_WRITTEN</name>
  207. </field>
  208. <field>
  209. <id>LINES_UPDATED</id>
  210. <enabled>Y</enabled>
  211. <name>LINES_UPDATED</name>
  212. </field>
  213. <field>
  214. <id>LINES_INPUT</id>
  215. <enabled>Y</enabled>
  216. <name>LINES_INPUT</name>
  217. </field>
  218. <field>
  219. <id>LINES_OUTPUT</id>
  220. <enabled>Y</enabled>
  221. <name>LINES_OUTPUT</name>
  222. </field>
  223. <field>
  224. <id>LINES_REJECTED</id>
  225. <enabled>Y</enabled>
  226. <name>LINES_REJECTED</name>
  227. </field>
  228. <field>
  229. <id>ERRORS</id>
  230. <enabled>Y</enabled>
  231. <name>ERRORS</name>
  232. </field>
  233. <field>
  234. <id>INPUT_BUFFER_ROWS</id>
  235. <enabled>Y</enabled>
  236. <name>INPUT_BUFFER_ROWS</name>
  237. </field>
  238. <field>
  239. <id>OUTPUT_BUFFER_ROWS</id>
  240. <enabled>Y</enabled>
  241. <name>OUTPUT_BUFFER_ROWS</name>
  242. </field>
  243. </perf-log-table>
  244. <channel-log-table>
  245. <connection/>
  246. <schema/>
  247. <table/>
  248. <timeout_days/>
  249. <field>
  250. <id>ID_BATCH</id>
  251. <enabled>Y</enabled>
  252. <name>ID_BATCH</name>
  253. </field>
  254. <field>
  255. <id>CHANNEL_ID</id>
  256. <enabled>Y</enabled>
  257. <name>CHANNEL_ID</name>
  258. </field>
  259. <field>
  260. <id>LOG_DATE</id>
  261. <enabled>Y</enabled>
  262. <name>LOG_DATE</name>
  263. </field>
  264. <field>
  265. <id>LOGGING_OBJECT_TYPE</id>
  266. <enabled>Y</enabled>
  267. <name>LOGGING_OBJECT_TYPE</name>
  268. </field>
  269. <field>
  270. <id>OBJECT_NAME</id>
  271. <enabled>Y</enabled>
  272. <name>OBJECT_NAME</name>
  273. </field>
  274. <field>
  275. <id>OBJECT_COPY</id>
  276. <enabled>Y</enabled>
  277. <name>OBJECT_COPY</name>
  278. </field>
  279. <field>
  280. <id>REPOSITORY_DIRECTORY</id>
  281. <enabled>Y</enabled>
  282. <name>REPOSITORY_DIRECTORY</name>
  283. </field>
  284. <field>
  285. <id>FILENAME</id>
  286. <enabled>Y</enabled>
  287. <name>FILENAME</name>
  288. </field>
  289. <field>
  290. <id>OBJECT_ID</id>
  291. <enabled>Y</enabled>
  292. <name>OBJECT_ID</name>
  293. </field>
  294. <field>
  295. <id>OBJECT_REVISION</id>
  296. <enabled>Y</enabled>
  297. <name>OBJECT_REVISION</name>
  298. </field>
  299. <field>
  300. <id>PARENT_CHANNEL_ID</id>
  301. <enabled>Y</enabled>
  302. <name>PARENT_CHANNEL_ID</name>
  303. </field>
  304. <field>
  305. <id>ROOT_CHANNEL_ID</id>
  306. <enabled>Y</enabled>
  307. <name>ROOT_CHANNEL_ID</name>
  308. </field>
  309. </channel-log-table>
  310. <step-log-table>
  311. <connection/>
  312. <schema/>
  313. <table/>
  314. <timeout_days/>
  315. <field>
  316. <id>ID_BATCH</id>
  317. <enabled>Y</enabled>
  318. <name>ID_BATCH</name>
  319. </field>
  320. <field>
  321. <id>CHANNEL_ID</id>
  322. <enabled>Y</enabled>
  323. <name>CHANNEL_ID</name>
  324. </field>
  325. <field>
  326. <id>LOG_DATE</id>
  327. <enabled>Y</enabled>
  328. <name>LOG_DATE</name>
  329. </field>
  330. <field>
  331. <id>TRANSNAME</id>
  332. <enabled>Y</enabled>
  333. <name>TRANSNAME</name>
  334. </field>
  335. <field>
  336. <id>STEPNAME</id>
  337. <enabled>Y</enabled>
  338. <name>STEPNAME</name>
  339. </field>
  340. <field>
  341. <id>STEP_COPY</id>
  342. <enabled>Y</enabled>
  343. <name>STEP_COPY</name>
  344. </field>
  345. <field>
  346. <id>LINES_READ</id>
  347. <enabled>Y</enabled>
  348. <name>LINES_READ</name>
  349. </field>
  350. <field>
  351. <id>LINES_WRITTEN</id>
  352. <enabled>Y</enabled>
  353. <name>LINES_WRITTEN</name>
  354. </field>
  355. <field>
  356. <id>LINES_UPDATED</id>
  357. <enabled>Y</enabled>
  358. <name>LINES_UPDATED</name>
  359. </field>
  360. <field>
  361. <id>LINES_INPUT</id>
  362. <enabled>Y</enabled>
  363. <name>LINES_INPUT</name>
  364. </field>
  365. <field>
  366. <id>LINES_OUTPUT</id>
  367. <enabled>Y</enabled>
  368. <name>LINES_OUTPUT</name>
  369. </field>
  370. <field>
  371. <id>LINES_REJECTED</id>
  372. <enabled>Y</enabled>
  373. <name>LINES_REJECTED</name>
  374. </field>
  375. <field>
  376. <id>ERRORS</id>
  377. <enabled>Y</enabled>
  378. <name>ERRORS</name>
  379. </field>
  380. <field>
  381. <id>LOG_FIELD</id>
  382. <enabled>N</enabled>
  383. <name>LOG_FIELD</name>
  384. </field>
  385. </step-log-table>
  386. <metrics-log-table>
  387. <connection/>
  388. <schema/>
  389. <table/>
  390. <timeout_days/>
  391. <field>
  392. <id>ID_BATCH</id>
  393. <enabled>Y</enabled>
  394. <name>ID_BATCH</name>
  395. </field>
  396. <field>
  397. <id>CHANNEL_ID</id>
  398. <enabled>Y</enabled>
  399. <name>CHANNEL_ID</name>
  400. </field>
  401. <field>
  402. <id>LOG_DATE</id>
  403. <enabled>Y</enabled>
  404. <name>LOG_DATE</name>
  405. </field>
  406. <field>
  407. <id>METRICS_DATE</id>
  408. <enabled>Y</enabled>
  409. <name>METRICS_DATE</name>
  410. </field>
  411. <field>
  412. <id>METRICS_CODE</id>
  413. <enabled>Y</enabled>
  414. <name>METRICS_CODE</name>
  415. </field>
  416. <field>
  417. <id>METRICS_DESCRIPTION</id>
  418. <enabled>Y</enabled>
  419. <name>METRICS_DESCRIPTION</name>
  420. </field>
  421. <field>
  422. <id>METRICS_SUBJECT</id>
  423. <enabled>Y</enabled>
  424. <name>METRICS_SUBJECT</name>
  425. </field>
  426. <field>
  427. <id>METRICS_TYPE</id>
  428. <enabled>Y</enabled>
  429. <name>METRICS_TYPE</name>
  430. </field>
  431. <field>
  432. <id>METRICS_VALUE</id>
  433. <enabled>Y</enabled>
  434. <name>METRICS_VALUE</name>
  435. </field>
  436. </metrics-log-table>
  437. </log>
  438. <maxdate>
  439. <connection/>
  440. <table/>
  441. <field/>
  442. <offset>0.0</offset>
  443. <maxdiff>0.0</maxdiff>
  444. </maxdate>
  445. <size_rowset>10000</size_rowset>
  446. <sleep_time_empty>50</sleep_time_empty>
  447. <sleep_time_full>50</sleep_time_full>
  448. <unique_connections>N</unique_connections>
  449. <feedback_shown>Y</feedback_shown>
  450. <feedback_size>50000</feedback_size>
  451. <using_thread_priorities>Y</using_thread_priorities>
  452. <shared_objects_file/>
  453. <capture_step_performance>N</capture_step_performance>
  454. <step_performance_capturing_delay>1000</step_performance_capturing_delay>
  455. <step_performance_capturing_size_limit>100</step_performance_capturing_size_limit>
  456. <dependencies>
  457. </dependencies>
  458. <partitionschemas>
  459. </partitionschemas>
  460. <slaveservers>
  461. </slaveservers>
  462. <clusterschemas>
  463. </clusterschemas>
  464. <created_user>-</created_user>
  465. <created_date>2020/08/03 09:36:42.416</created_date>
  466. <modified_user>-</modified_user>
  467. <modified_date>2020/08/03 09:36:42.416</modified_date>
  468. <key_for_session_key>H4sIAAAAAAAAAAMAAAAAAAAAAAA=</key_for_session_key>
  469. <is_key_private>N</is_key_private>
  470. </info>
  471. <notepads>
  472. </notepads>
  473. <connection>
  474. <name>ry_ability</name>
  475. <server>${out_db_ip}</server>
  476. <type>MYSQL</type>
  477. <access>Native</access>
  478. <database>${out_db_name}</database>
  479. <port>${out_db_port}</port>
  480. <username>${out_db_username}</username>
  481. <password>${out_db_pwd}</password>
  482. <servername/>
  483. <data_tablespace/>
  484. <index_tablespace/>
  485. <attributes>
  486. <attribute>
  487. <code>EXTRA_OPTION_MYSQL.characterEncoding</code>
  488. <attribute>UTF-8</attribute>
  489. </attribute>
  490. <attribute>
  491. <code>EXTRA_OPTION_MYSQL.defaultFetchSize</code>
  492. <attribute>500</attribute>
  493. </attribute>
  494. <attribute>
  495. <code>EXTRA_OPTION_MYSQL.useCursorFetch</code>
  496. <attribute>true</attribute>
  497. </attribute>
  498. <attribute>
  499. <code>FORCE_IDENTIFIERS_TO_LOWERCASE</code>
  500. <attribute>N</attribute>
  501. </attribute>
  502. <attribute>
  503. <code>FORCE_IDENTIFIERS_TO_UPPERCASE</code>
  504. <attribute>N</attribute>
  505. </attribute>
  506. <attribute>
  507. <code>IS_CLUSTERED</code>
  508. <attribute>N</attribute>
  509. </attribute>
  510. <attribute>
  511. <code>PORT_NUMBER</code>
  512. <attribute>${out_db_port}</attribute>
  513. </attribute>
  514. <attribute>
  515. <code>PRESERVE_RESERVED_WORD_CASE</code>
  516. <attribute>Y</attribute>
  517. </attribute>
  518. <attribute>
  519. <code>QUOTE_ALL_FIELDS</code>
  520. <attribute>N</attribute>
  521. </attribute>
  522. <attribute>
  523. <code>STREAM_RESULTS</code>
  524. <attribute>Y</attribute>
  525. </attribute>
  526. <attribute>
  527. <code>SUPPORTS_BOOLEAN_DATA_TYPE</code>
  528. <attribute>Y</attribute>
  529. </attribute>
  530. <attribute>
  531. <code>SUPPORTS_TIMESTAMP_DATA_TYPE</code>
  532. <attribute>Y</attribute>
  533. </attribute>
  534. <attribute>
  535. <code>USE_POOLING</code>
  536. <attribute>N</attribute>
  537. </attribute>
  538. </attributes>
  539. </connection>
  540. <order>
  541. <hop>
  542. <from>dept_ability1</from>
  543. <to>更新ability</to>
  544. <enabled>Y</enabled>
  545. </hop>
  546. <hop>
  547. <from>dept_ability 2</from>
  548. <to>更新ability 2</to>
  549. <enabled>Y</enabled>
  550. </hop>
  551. <hop>
  552. <from>dept_ability3</from>
  553. <to>更新ability 3</to>
  554. <enabled>Y</enabled>
  555. </hop>
  556. <hop>
  557. <from>dept_ability4</from>
  558. <to>更新ability 4</to>
  559. <enabled>Y</enabled>
  560. </hop>
  561. <hop>
  562. <from>dept_ability5</from>
  563. <to>更新ability 5</to>
  564. <enabled>Y</enabled>
  565. </hop>
  566. </order>
  567. <step>
  568. <name>dept_ability 2</name>
  569. <type>MongoDbInput</type>
  570. <description/>
  571. <distribute>Y</distribute>
  572. <custom_distribution/>
  573. <copies>1</copies>
  574. <partitioning>
  575. <method>none</method>
  576. <schema_name/>
  577. </partitioning>
  578. <hostname>${input_db_ip}</hostname>
  579. <port>${input_db_port}</port>
  580. <use_all_replica_members>N</use_all_replica_members>
  581. <db_name>info_admin</db_name>
  582. <fields_name/>
  583. <collection>sys_dept</collection>
  584. <json_field_name>json</json_field_name>
  585. <json_query>
  586. { $match: {"level":'2',code:{$regex:"22"}} },
  587. { $lookup: { from: 'info', localField: '_id', foreignField: 'dept2', as: 'infos' } },
  588. { $unwind: { path: '$infos', preserveNullAndEmptyArrays: true } },
  589. { $unwind: { path: '$infos.status', preserveNullAndEmptyArrays: true } },
  590. { $match: { 'infos.status': '3' } },
  591. { $group:
  592. { _id: '$_id',
  593. tyep_disability: {
  594. $sum: {
  595. $cond: [{ $eq: [ '$infos.ability', '失能' ] }, 1, 0 ],
  596. },
  597. },
  598. },
  599. },
  600. { $sort: { order: 1 } },
  601. </json_query>
  602. <auth_database/>
  603. <auth_user/>
  604. <auth_password>Encrypted </auth_password>
  605. <auth_mech/>
  606. <auth_kerberos>N</auth_kerberos>
  607. <connect_timeout/>
  608. <socket_timeout/>
  609. <use_ssl_socket_factory>N</use_ssl_socket_factory>
  610. <read_preference>primary</read_preference>
  611. <output_json>N</output_json>
  612. <query_is_pipeline>Y</query_is_pipeline>
  613. <execute_for_each_row>N</execute_for_each_row>
  614. <mongo_fields>
  615. <mongo_field>
  616. <field_name>_id</field_name>
  617. <field_path>$._id</field_path>
  618. <field_type>String</field_type>
  619. </mongo_field>
  620. <mongo_field>
  621. <field_name>tyep_disability</field_name>
  622. <field_path>$.tyep_disability</field_path>
  623. <field_type>Integer</field_type>
  624. </mongo_field>
  625. </mongo_fields>
  626. <attributes/>
  627. <cluster_schema/>
  628. <remotesteps>
  629. <input>
  630. </input>
  631. <output>
  632. </output>
  633. </remotesteps>
  634. <GUI>
  635. <xloc>240</xloc>
  636. <yloc>240</yloc>
  637. <draw>Y</draw>
  638. </GUI>
  639. </step>
  640. <step>
  641. <name>dept_ability1</name>
  642. <type>MongoDbInput</type>
  643. <description/>
  644. <distribute>Y</distribute>
  645. <custom_distribution/>
  646. <copies>1</copies>
  647. <partitioning>
  648. <method>none</method>
  649. <schema_name/>
  650. </partitioning>
  651. <hostname>${input_db_ip}</hostname>
  652. <port>${input_db_port}</port>
  653. <use_all_replica_members>N</use_all_replica_members>
  654. <db_name>info_admin</db_name>
  655. <fields_name/>
  656. <collection>sys_dept</collection>
  657. <json_field_name>json</json_field_name>
  658. <json_query>
  659. { $match: {"level":'1',code:{$regex:"22"}} },
  660. { $lookup: { from: 'info', localField: '_id', foreignField: 'dept1', as: 'infos' } },
  661. { $unwind: { path: '$infos', preserveNullAndEmptyArrays: true } },
  662. { $unwind: { path: '$infos.status', preserveNullAndEmptyArrays: true } },
  663. { $match: { 'infos.status': '3' } },
  664. { $group:
  665. { _id: '$_id',
  666. tyep_disability: {
  667. $sum: {
  668. $cond: [{ $eq: [ '$infos.ability', '失能' ] }, 1, 0 ],
  669. },
  670. },
  671. },
  672. },
  673. { $sort: { order: 1 } },
  674. </json_query>
  675. <auth_database/>
  676. <auth_user/>
  677. <auth_password>Encrypted </auth_password>
  678. <auth_mech/>
  679. <auth_kerberos>N</auth_kerberos>
  680. <connect_timeout/>
  681. <socket_timeout/>
  682. <use_ssl_socket_factory>N</use_ssl_socket_factory>
  683. <read_preference>primary</read_preference>
  684. <output_json>N</output_json>
  685. <query_is_pipeline>Y</query_is_pipeline>
  686. <execute_for_each_row>N</execute_for_each_row>
  687. <mongo_fields>
  688. <mongo_field>
  689. <field_name>_id</field_name>
  690. <field_path>$._id</field_path>
  691. <field_type>String</field_type>
  692. </mongo_field>
  693. <mongo_field>
  694. <field_name>tyep_disability</field_name>
  695. <field_path>$.tyep_disability</field_path>
  696. <field_type>Integer</field_type>
  697. </mongo_field>
  698. </mongo_fields>
  699. <attributes/>
  700. <cluster_schema/>
  701. <remotesteps>
  702. <input>
  703. </input>
  704. <output>
  705. </output>
  706. </remotesteps>
  707. <GUI>
  708. <xloc>240</xloc>
  709. <yloc>128</yloc>
  710. <draw>Y</draw>
  711. </GUI>
  712. </step>
  713. <step>
  714. <name>dept_ability3</name>
  715. <type>MongoDbInput</type>
  716. <description/>
  717. <distribute>Y</distribute>
  718. <custom_distribution/>
  719. <copies>1</copies>
  720. <partitioning>
  721. <method>none</method>
  722. <schema_name/>
  723. </partitioning>
  724. <hostname>${input_db_ip}</hostname>
  725. <port>${input_db_port}</port>
  726. <use_all_replica_members>N</use_all_replica_members>
  727. <db_name>info_admin</db_name>
  728. <fields_name/>
  729. <collection>sys_dept</collection>
  730. <json_field_name>json</json_field_name>
  731. <json_query>
  732. { $match: {"level":'3',code:{$regex:"22"}} },
  733. { $lookup: { from: 'info', localField: '_id', foreignField: 'dept3', as: 'infos' } },
  734. { $unwind: { path: '$infos', preserveNullAndEmptyArrays: true } },
  735. { $unwind: { path: '$infos.status', preserveNullAndEmptyArrays: true } },
  736. { $match: { 'infos.status': '3' } },
  737. { $group:
  738. { _id: '$_id',
  739. tyep_disability: {
  740. $sum: {
  741. $cond: [{ $eq: [ '$infos.ability', '失能' ] }, 1, 0 ],
  742. },
  743. },
  744. },
  745. },
  746. { $sort: { order: 1 } },
  747. </json_query>
  748. <auth_database/>
  749. <auth_user/>
  750. <auth_password>Encrypted </auth_password>
  751. <auth_mech/>
  752. <auth_kerberos>N</auth_kerberos>
  753. <connect_timeout/>
  754. <socket_timeout/>
  755. <use_ssl_socket_factory>N</use_ssl_socket_factory>
  756. <read_preference>primary</read_preference>
  757. <output_json>N</output_json>
  758. <query_is_pipeline>Y</query_is_pipeline>
  759. <execute_for_each_row>N</execute_for_each_row>
  760. <mongo_fields>
  761. <mongo_field>
  762. <field_name>_id</field_name>
  763. <field_path>$._id</field_path>
  764. <field_type>String</field_type>
  765. </mongo_field>
  766. <mongo_field>
  767. <field_name>tyep_disability</field_name>
  768. <field_path>$.tyep_disability</field_path>
  769. <field_type>Integer</field_type>
  770. </mongo_field>
  771. </mongo_fields>
  772. <attributes/>
  773. <cluster_schema/>
  774. <remotesteps>
  775. <input>
  776. </input>
  777. <output>
  778. </output>
  779. </remotesteps>
  780. <GUI>
  781. <xloc>240</xloc>
  782. <yloc>368</yloc>
  783. <draw>Y</draw>
  784. </GUI>
  785. </step>
  786. <step>
  787. <name>dept_ability4</name>
  788. <type>MongoDbInput</type>
  789. <description/>
  790. <distribute>Y</distribute>
  791. <custom_distribution/>
  792. <copies>1</copies>
  793. <partitioning>
  794. <method>none</method>
  795. <schema_name/>
  796. </partitioning>
  797. <hostname>${input_db_ip}</hostname>
  798. <port>${input_db_port}</port>
  799. <use_all_replica_members>N</use_all_replica_members>
  800. <db_name>info_admin</db_name>
  801. <fields_name/>
  802. <collection>sys_dept</collection>
  803. <json_field_name>json</json_field_name>
  804. <json_query>
  805. { $match: {"level":'4',code:{$regex:"22"}} },
  806. { $lookup: { from: 'info', localField: '_id', foreignField: 'dept4', as: 'infos' } },
  807. { $unwind: { path: '$infos', preserveNullAndEmptyArrays: true } },
  808. { $unwind: { path: '$infos.status', preserveNullAndEmptyArrays: true } },
  809. { $match: { 'infos.status': '3' } },
  810. { $group:
  811. { _id: '$_id',
  812. tyep_disability: {
  813. $sum: {
  814. $cond: [{ $eq: [ '$infos.ability', '失能' ] }, 1, 0 ],
  815. },
  816. },
  817. },
  818. },
  819. { $sort: { order: 1 } },
  820. </json_query>
  821. <auth_database/>
  822. <auth_user/>
  823. <auth_password>Encrypted </auth_password>
  824. <auth_mech/>
  825. <auth_kerberos>N</auth_kerberos>
  826. <connect_timeout/>
  827. <socket_timeout/>
  828. <use_ssl_socket_factory>N</use_ssl_socket_factory>
  829. <read_preference>primary</read_preference>
  830. <output_json>N</output_json>
  831. <query_is_pipeline>Y</query_is_pipeline>
  832. <execute_for_each_row>N</execute_for_each_row>
  833. <mongo_fields>
  834. <mongo_field>
  835. <field_name>_id</field_name>
  836. <field_path>$._id</field_path>
  837. <field_type>String</field_type>
  838. </mongo_field>
  839. <mongo_field>
  840. <field_name>tyep_disability</field_name>
  841. <field_path>$.tyep_disability</field_path>
  842. <field_type>Integer</field_type>
  843. </mongo_field>
  844. </mongo_fields>
  845. <attributes/>
  846. <cluster_schema/>
  847. <remotesteps>
  848. <input>
  849. </input>
  850. <output>
  851. </output>
  852. </remotesteps>
  853. <GUI>
  854. <xloc>240</xloc>
  855. <yloc>496</yloc>
  856. <draw>Y</draw>
  857. </GUI>
  858. </step>
  859. <step>
  860. <name>dept_ability5</name>
  861. <type>MongoDbInput</type>
  862. <description/>
  863. <distribute>Y</distribute>
  864. <custom_distribution/>
  865. <copies>1</copies>
  866. <partitioning>
  867. <method>none</method>
  868. <schema_name/>
  869. </partitioning>
  870. <hostname>${input_db_ip}</hostname>
  871. <port>${input_db_port}</port>
  872. <use_all_replica_members>N</use_all_replica_members>
  873. <db_name>info_admin</db_name>
  874. <fields_name/>
  875. <collection>sys_dept</collection>
  876. <json_field_name>json</json_field_name>
  877. <json_query>
  878. { $match: {"level":'5',code:{$regex:"22"}} },
  879. { $lookup: { from: 'info', localField: '_id', foreignField: 'dept5', as: 'infos' } },
  880. { $unwind: { path: '$infos', preserveNullAndEmptyArrays: true } },
  881. { $unwind: { path: '$infos.status', preserveNullAndEmptyArrays: true } },
  882. { $match: { 'infos.status': '3' } },
  883. { $group:
  884. { _id: '$_id',
  885. tyep_disability: {
  886. $sum: {
  887. $cond: [{ $eq: [ '$infos.ability', '失能' ] }, 1, 0 ],
  888. },
  889. },
  890. },
  891. },
  892. { $sort: { order: 1 } },
  893. </json_query>
  894. <auth_database/>
  895. <auth_user/>
  896. <auth_password>Encrypted </auth_password>
  897. <auth_mech/>
  898. <auth_kerberos>N</auth_kerberos>
  899. <connect_timeout/>
  900. <socket_timeout/>
  901. <use_ssl_socket_factory>N</use_ssl_socket_factory>
  902. <read_preference>primary</read_preference>
  903. <output_json>N</output_json>
  904. <query_is_pipeline>Y</query_is_pipeline>
  905. <execute_for_each_row>N</execute_for_each_row>
  906. <mongo_fields>
  907. <mongo_field>
  908. <field_name>_id</field_name>
  909. <field_path>$._id</field_path>
  910. <field_type>String</field_type>
  911. </mongo_field>
  912. <mongo_field>
  913. <field_name>tyep_disability</field_name>
  914. <field_path>$.tyep_disability</field_path>
  915. <field_type>Integer</field_type>
  916. </mongo_field>
  917. </mongo_fields>
  918. <attributes/>
  919. <cluster_schema/>
  920. <remotesteps>
  921. <input>
  922. </input>
  923. <output>
  924. </output>
  925. </remotesteps>
  926. <GUI>
  927. <xloc>240</xloc>
  928. <yloc>656</yloc>
  929. <draw>Y</draw>
  930. </GUI>
  931. </step>
  932. <step>
  933. <name>更新ability</name>
  934. <type>Update</type>
  935. <description/>
  936. <distribute>Y</distribute>
  937. <custom_distribution/>
  938. <copies>1</copies>
  939. <partitioning>
  940. <method>none</method>
  941. <schema_name/>
  942. </partitioning>
  943. <connection>ry_ability</connection>
  944. <skip_lookup>N</skip_lookup>
  945. <commit>20000</commit>
  946. <use_batch>N</use_batch>
  947. <error_ignored>N</error_ignored>
  948. <ignore_flag_field/>
  949. <lookup>
  950. <schema>ry</schema>
  951. <table>dept</table>
  952. <key>
  953. <name>_id</name>
  954. <field>dept_id</field>
  955. <condition>=</condition>
  956. <name2/>
  957. </key>
  958. <value>
  959. <name>tyep_disability</name>
  960. <rename>tyep_disability</rename>
  961. </value>
  962. </lookup>
  963. <attributes/>
  964. <cluster_schema/>
  965. <remotesteps>
  966. <input>
  967. </input>
  968. <output>
  969. </output>
  970. </remotesteps>
  971. <GUI>
  972. <xloc>560</xloc>
  973. <yloc>128</yloc>
  974. <draw>Y</draw>
  975. </GUI>
  976. </step>
  977. <step>
  978. <name>更新ability 2</name>
  979. <type>Update</type>
  980. <description/>
  981. <distribute>Y</distribute>
  982. <custom_distribution/>
  983. <copies>1</copies>
  984. <partitioning>
  985. <method>none</method>
  986. <schema_name/>
  987. </partitioning>
  988. <connection>ry_ability</connection>
  989. <skip_lookup>N</skip_lookup>
  990. <commit>20000</commit>
  991. <use_batch>N</use_batch>
  992. <error_ignored>N</error_ignored>
  993. <ignore_flag_field/>
  994. <lookup>
  995. <schema>ry</schema>
  996. <table>dept</table>
  997. <key>
  998. <name>_id</name>
  999. <field>dept_id</field>
  1000. <condition>=</condition>
  1001. <name2/>
  1002. </key>
  1003. <value>
  1004. <name>tyep_disability</name>
  1005. <rename>tyep_disability</rename>
  1006. </value>
  1007. </lookup>
  1008. <attributes/>
  1009. <cluster_schema/>
  1010. <remotesteps>
  1011. <input>
  1012. </input>
  1013. <output>
  1014. </output>
  1015. </remotesteps>
  1016. <GUI>
  1017. <xloc>560</xloc>
  1018. <yloc>240</yloc>
  1019. <draw>Y</draw>
  1020. </GUI>
  1021. </step>
  1022. <step>
  1023. <name>更新ability 3</name>
  1024. <type>Update</type>
  1025. <description/>
  1026. <distribute>Y</distribute>
  1027. <custom_distribution/>
  1028. <copies>1</copies>
  1029. <partitioning>
  1030. <method>none</method>
  1031. <schema_name/>
  1032. </partitioning>
  1033. <connection>ry_ability</connection>
  1034. <skip_lookup>N</skip_lookup>
  1035. <commit>20000</commit>
  1036. <use_batch>N</use_batch>
  1037. <error_ignored>N</error_ignored>
  1038. <ignore_flag_field/>
  1039. <lookup>
  1040. <schema>ry</schema>
  1041. <table>dept</table>
  1042. <key>
  1043. <name>_id</name>
  1044. <field>dept_id</field>
  1045. <condition>=</condition>
  1046. <name2/>
  1047. </key>
  1048. <value>
  1049. <name>tyep_disability</name>
  1050. <rename>tyep_disability</rename>
  1051. </value>
  1052. </lookup>
  1053. <attributes/>
  1054. <cluster_schema/>
  1055. <remotesteps>
  1056. <input>
  1057. </input>
  1058. <output>
  1059. </output>
  1060. </remotesteps>
  1061. <GUI>
  1062. <xloc>560</xloc>
  1063. <yloc>368</yloc>
  1064. <draw>Y</draw>
  1065. </GUI>
  1066. </step>
  1067. <step>
  1068. <name>更新ability 4</name>
  1069. <type>Update</type>
  1070. <description/>
  1071. <distribute>Y</distribute>
  1072. <custom_distribution/>
  1073. <copies>1</copies>
  1074. <partitioning>
  1075. <method>none</method>
  1076. <schema_name/>
  1077. </partitioning>
  1078. <connection>ry_ability</connection>
  1079. <skip_lookup>N</skip_lookup>
  1080. <commit>20000</commit>
  1081. <use_batch>N</use_batch>
  1082. <error_ignored>N</error_ignored>
  1083. <ignore_flag_field/>
  1084. <lookup>
  1085. <schema>ry</schema>
  1086. <table>dept</table>
  1087. <key>
  1088. <name>_id</name>
  1089. <field>dept_id</field>
  1090. <condition>=</condition>
  1091. <name2/>
  1092. </key>
  1093. <value>
  1094. <name>tyep_disability</name>
  1095. <rename>tyep_disability</rename>
  1096. </value>
  1097. </lookup>
  1098. <attributes/>
  1099. <cluster_schema/>
  1100. <remotesteps>
  1101. <input>
  1102. </input>
  1103. <output>
  1104. </output>
  1105. </remotesteps>
  1106. <GUI>
  1107. <xloc>560</xloc>
  1108. <yloc>496</yloc>
  1109. <draw>Y</draw>
  1110. </GUI>
  1111. </step>
  1112. <step>
  1113. <name>更新ability 5</name>
  1114. <type>Update</type>
  1115. <description/>
  1116. <distribute>Y</distribute>
  1117. <custom_distribution/>
  1118. <copies>1</copies>
  1119. <partitioning>
  1120. <method>none</method>
  1121. <schema_name/>
  1122. </partitioning>
  1123. <connection>ry_ability</connection>
  1124. <skip_lookup>N</skip_lookup>
  1125. <commit>20000</commit>
  1126. <use_batch>N</use_batch>
  1127. <error_ignored>N</error_ignored>
  1128. <ignore_flag_field/>
  1129. <lookup>
  1130. <schema>ry</schema>
  1131. <table>dept</table>
  1132. <key>
  1133. <name>_id</name>
  1134. <field>dept_id</field>
  1135. <condition>=</condition>
  1136. <name2/>
  1137. </key>
  1138. <value>
  1139. <name>tyep_disability</name>
  1140. <rename>tyep_disability</rename>
  1141. </value>
  1142. </lookup>
  1143. <attributes/>
  1144. <cluster_schema/>
  1145. <remotesteps>
  1146. <input>
  1147. </input>
  1148. <output>
  1149. </output>
  1150. </remotesteps>
  1151. <GUI>
  1152. <xloc>560</xloc>
  1153. <yloc>656</yloc>
  1154. <draw>Y</draw>
  1155. </GUI>
  1156. </step>
  1157. <step_error_handling>
  1158. </step_error_handling>
  1159. <slave-step-copy-partition-distribution>
  1160. </slave-step-copy-partition-distribution>
  1161. <slave_transformation>N</slave_transformation>
  1162. <attributes/>
  1163. </transformation>