Commit f5c9a246c3d796320ac77f4ae0b4188a0de21578

Authored by 徐烜
1 parent 6df5f7ab

1、修改车辆同步ktr,修改当车辆没有配置在线路上时作废也要保存车辆设备信息,具体看ktr实现

src/main/resources/datatools/ktrs/vehicleDataSync.ktr
... ... @@ -166,6 +166,27 @@
166 166 <bordercolorblue>100</bordercolorblue>
167 167 <drawshadow>Y</drawshadow>
168 168 </notepad>
  169 + <notepad>
  170 + <note>&#x4e0d;&#x7ba1;&#x8f66;&#x8f86;&#x662f;&#x5426;&#x914d;&#x7f6e;&#x4e86;&#x7ebf;&#x8def;&#xff0c;&#x90fd;&#x8981;&#x4fdd;&#x5b58;&#x8f66;&#x8f86;&#x8bbe;&#x5907;&#x4fe1;&#x606f;&#xa;&#x5728;&#x5b;&#x62a5;&#x5e9f;&#x8f66;&#x8f86;&#x7ba1;&#x7406;&#x8bbe;&#x5907;&#x6570;&#x636e;&#x5904;&#x7406;&#x5d;step&#x4e2d;&#x4f1a;&#x8bf4;&#x660e; </note>
  171 + <xloc>551</xloc>
  172 + <yloc>653</yloc>
  173 + <width>274</width>
  174 + <heigth>42</heigth>
  175 + <fontname>YaHei Consolas Hybrid</fontname>
  176 + <fontsize>12</fontsize>
  177 + <fontbold>N</fontbold>
  178 + <fontitalic>N</fontitalic>
  179 + <fontcolorred>0</fontcolorred>
  180 + <fontcolorgreen>0</fontcolorgreen>
  181 + <fontcolorblue>0</fontcolorblue>
  182 + <backgroundcolorred>255</backgroundcolorred>
  183 + <backgroundcolorgreen>205</backgroundcolorgreen>
  184 + <backgroundcolorblue>112</backgroundcolorblue>
  185 + <bordercolorred>100</bordercolorred>
  186 + <bordercolorgreen>100</bordercolorgreen>
  187 + <bordercolorblue>100</bordercolorblue>
  188 + <drawshadow>Y</drawshadow>
  189 + </notepad>
169 190 </notepads>
170 191 <connection>
171 192 <name>192.168.168.1_jwgl_dw</name>
... ... @@ -528,6 +549,61 @@
528 549 </attributes>
529 550 </connection>
530 551 <connection>
  552 + <name>wzk_mysql_jndi</name>
  553 + <server/>
  554 + <type>MYSQL</type>
  555 + <access>JNDI</access>
  556 + <database>wzk_mysql</database>
  557 + <port>1521</port>
  558 + <username/>
  559 + <password>Encrypted </password>
  560 + <servername/>
  561 + <data_tablespace/>
  562 + <index_tablespace/>
  563 + <attributes>
  564 + <attribute><code>EXTRA_OPTION_MYSQL.defaultFetchSize</code><attribute>500</attribute></attribute>
  565 + <attribute><code>EXTRA_OPTION_MYSQL.useCursorFetch</code><attribute>true</attribute></attribute>
  566 + <attribute><code>FORCE_IDENTIFIERS_TO_LOWERCASE</code><attribute>N</attribute></attribute>
  567 + <attribute><code>FORCE_IDENTIFIERS_TO_UPPERCASE</code><attribute>N</attribute></attribute>
  568 + <attribute><code>IS_CLUSTERED</code><attribute>N</attribute></attribute>
  569 + <attribute><code>PORT_NUMBER</code><attribute>1521</attribute></attribute>
  570 + <attribute><code>PRESERVE_RESERVED_WORD_CASE</code><attribute>N</attribute></attribute>
  571 + <attribute><code>QUOTE_ALL_FIELDS</code><attribute>N</attribute></attribute>
  572 + <attribute><code>STREAM_RESULTS</code><attribute>Y</attribute></attribute>
  573 + <attribute><code>SUPPORTS_BOOLEAN_DATA_TYPE</code><attribute>Y</attribute></attribute>
  574 + <attribute><code>SUPPORTS_TIMESTAMP_DATA_TYPE</code><attribute>Y</attribute></attribute>
  575 + <attribute><code>USE_POOLING</code><attribute>N</attribute></attribute>
  576 + </attributes>
  577 + </connection>
  578 + <connection>
  579 + <name>wzk&#xff08;&#x672c;&#x673a;&#xff09;</name>
  580 + <server>localhost</server>
  581 + <type>MYSQL</type>
  582 + <access>Native</access>
  583 + <database>pdgj_wzk_sys</database>
  584 + <port>3306</port>
  585 + <username>root</username>
  586 + <password>Encrypted </password>
  587 + <servername/>
  588 + <data_tablespace/>
  589 + <index_tablespace/>
  590 + <attributes>
  591 + <attribute><code>EXTRA_OPTION_MYSQL.characterEncoding</code><attribute>utf8</attribute></attribute>
  592 + <attribute><code>EXTRA_OPTION_MYSQL.defaultFetchSize</code><attribute>500</attribute></attribute>
  593 + <attribute><code>EXTRA_OPTION_MYSQL.useCursorFetch</code><attribute>true</attribute></attribute>
  594 + <attribute><code>FORCE_IDENTIFIERS_TO_LOWERCASE</code><attribute>N</attribute></attribute>
  595 + <attribute><code>FORCE_IDENTIFIERS_TO_UPPERCASE</code><attribute>N</attribute></attribute>
  596 + <attribute><code>IS_CLUSTERED</code><attribute>N</attribute></attribute>
  597 + <attribute><code>PORT_NUMBER</code><attribute>3306</attribute></attribute>
  598 + <attribute><code>PRESERVE_RESERVED_WORD_CASE</code><attribute>N</attribute></attribute>
  599 + <attribute><code>QUOTE_ALL_FIELDS</code><attribute>N</attribute></attribute>
  600 + <attribute><code>STREAM_RESULTS</code><attribute>Y</attribute></attribute>
  601 + <attribute><code>SUPPORTS_BOOLEAN_DATA_TYPE</code><attribute>Y</attribute></attribute>
  602 + <attribute><code>SUPPORTS_TIMESTAMP_DATA_TYPE</code><attribute>Y</attribute></attribute>
  603 + <attribute><code>USE_POOLING</code><attribute>N</attribute></attribute>
  604 + </attributes>
  605 + </connection>
  606 + <connection>
531 607 <name>xlab_mysql_youle</name>
532 608 <server>101.231.124.8</server>
533 609 <type>MYSQL</type>
... ... @@ -680,7 +756,7 @@
680 756 </connection>
681 757 <connection>
682 758 <name>&#x516c;&#x53f8;ygjw</name>
683   - <server>192.168.168.1</server>
  759 + <server>192.168.168.178</server>
684 760 <type>ORACLE</type>
685 761 <access>Native</access>
686 762 <database>orcl</database>
... ... @@ -703,6 +779,30 @@
703 779 </attributes>
704 780 </connection>
705 781 <connection>
  782 + <name>&#x516c;&#x53f8;&#x673a;&#x52a1;_pdgj</name>
  783 + <server>192.168.168.178</server>
  784 + <type>ORACLE</type>
  785 + <access>Native</access>
  786 + <database>orcl</database>
  787 + <port>1521</port>
  788 + <username>pdgj</username>
  789 + <password>Encrypted 2be98afc86aa7f2e4cb79ce10ce96a8d0</password>
  790 + <servername/>
  791 + <data_tablespace/>
  792 + <index_tablespace/>
  793 + <attributes>
  794 + <attribute><code>FORCE_IDENTIFIERS_TO_LOWERCASE</code><attribute>N</attribute></attribute>
  795 + <attribute><code>FORCE_IDENTIFIERS_TO_UPPERCASE</code><attribute>N</attribute></attribute>
  796 + <attribute><code>IS_CLUSTERED</code><attribute>N</attribute></attribute>
  797 + <attribute><code>PORT_NUMBER</code><attribute>1521</attribute></attribute>
  798 + <attribute><code>PRESERVE_RESERVED_WORD_CASE</code><attribute>N</attribute></attribute>
  799 + <attribute><code>QUOTE_ALL_FIELDS</code><attribute>N</attribute></attribute>
  800 + <attribute><code>SUPPORTS_BOOLEAN_DATA_TYPE</code><attribute>Y</attribute></attribute>
  801 + <attribute><code>SUPPORTS_TIMESTAMP_DATA_TYPE</code><attribute>Y</attribute></attribute>
  802 + <attribute><code>USE_POOLING</code><attribute>N</attribute></attribute>
  803 + </attributes>
  804 + </connection>
  805 + <connection>
706 806 <name>&#x5916;&#x7f51;vpn&#x4e34;&#x6e2f;&#x673a;&#x52a1;oracle</name>
707 807 <server>10.10.150.114</server>
708 808 <type>ORACLE</type>
... ... @@ -825,10 +925,9 @@
825 925 <hop> <from>&#x5224;&#x5b9a;&#x662f;&#x5426;&#x66f4;&#x65b0;</from><to>&#x5f85;&#x5904;&#x7406;&#x66f4;&#x65b0;&#x6570;&#x636e;</to><enabled>Y</enabled> </hop>
826 926 <hop> <from>&#x5f85;&#x5904;&#x7406;&#x66f4;&#x65b0;&#x6570;&#x636e;</from><to>&#x66f4;&#x65b0;&#x8f66;&#x8f86;&#x6570;&#x636e;&#x8f93;&#x51fa;</to><enabled>Y</enabled> </hop>
827 927 <hop> <from>&#x5f85;&#x5904;&#x7406;&#x66f4;&#x65b0;&#x6570;&#x636e;</from><to>&#x5224;&#x65ad;&#x662f;&#x5426;&#x62a5;&#x5e9f;&#x66f4;&#x65b0;</to><enabled>Y</enabled> </hop>
828   - <hop> <from>&#x5224;&#x65ad;&#x662f;&#x5426;&#x62a5;&#x5e9f;&#x66f4;&#x65b0;</from><to>&#x662f;&#x5426;&#x62a5;&#x5e9f;&#x4e14;&#x66fe;&#x7ecf;&#x914d;&#x7f6e;&#x8fc7;&#x7ebf;&#x8def;</to><enabled>Y</enabled> </hop>
829   - <hop> <from>&#x662f;&#x5426;&#x62a5;&#x5e9f;&#x4e14;&#x66fe;&#x7ecf;&#x914d;&#x7f6e;&#x8fc7;&#x7ebf;&#x8def;</from><to>&#x62a5;&#x5e9f;&#x8f66;&#x8f86;&#x7ba1;&#x7406;&#x8bbe;&#x5907;&#x6570;&#x636e;&#x5904;&#x7406;</to><enabled>Y</enabled> </hop>
830 928 <hop> <from>&#x516c;&#x53f8;&#xff0c;&#x5206;&#x516c;&#x53f8;&#x540d;&#x79f0;&#x4ee3;&#x7801;&#x6570;&#x636e;</from><to>&#x6570;&#x636e;&#x68c0;&#x9a8c;</to><enabled>Y</enabled> </hop>
831 929 <hop> <from>&#x516c;&#x53f8;&#xff0c;&#x5206;&#x516c;&#x53f8;&#x540d;&#x79f0;&#x4ee3;&#x7801;&#x6570;&#x636e;</from><to>&#x83b7;&#x53d6;&#x516c;&#x53f8;&#x5206;&#x516c;&#x53f8;&#x7f16;&#x7801;</to><enabled>Y</enabled> </hop>
  930 + <hop> <from>&#x5224;&#x65ad;&#x662f;&#x5426;&#x62a5;&#x5e9f;&#x66f4;&#x65b0;</from><to>&#x62a5;&#x5e9f;&#x8f66;&#x8f86;&#x7ba1;&#x7406;&#x8bbe;&#x5907;&#x6570;&#x636e;&#x5904;&#x7406;</to><enabled>Y</enabled> </hop>
832 931 </order>
833 932 <step>
834 933 <name>JavaScript&#x89e3;&#x6790;json&#x751f;&#x6210;&#x6570;&#x636e;</name>
... ... @@ -1115,7 +1214,7 @@
1115 1214 <method>none</method>
1116 1215 <schema_name/>
1117 1216 </partitioning>
1118   -<send_true_to>&#x662f;&#x5426;&#x62a5;&#x5e9f;&#x4e14;&#x66fe;&#x7ecf;&#x914d;&#x7f6e;&#x8fc7;&#x7ebf;&#x8def;</send_true_to>
  1217 +<send_true_to>&#x62a5;&#x5e9f;&#x8f66;&#x8f86;&#x7ba1;&#x7406;&#x8bbe;&#x5907;&#x6570;&#x636e;&#x5904;&#x7406;</send_true_to>
1119 1218 <send_false_to/>
1120 1219 <compare>
1121 1220 <condition>
... ... @@ -1524,7 +1623,7 @@
1524 1623 <optimizationLevel>9</optimizationLevel>
1525 1624 <jsScripts> <jsScript> <jsScript_type>0</jsScript_type>
1526 1625 <jsScript_name>Script 1</jsScript_name>
1527   - <jsScript_script>&#x2f;&#x2f;Script here&#xa;&#xa;&#x2f;&#x2f;---------------- &#x8f66;&#x8f86;&#x62a5;&#x5e9f;&#x65f6;&#x9700;&#x8981;&#x5411;&#x8bbe;&#x5907;&#x8868;&#x6dfb;&#x52a0;&#x4e00;&#x6761;&#x8bb0;&#x5f55; -------------&#x2f;&#x2f;&#xa;&#x2f;&#x2f; TODO&#xff1a;&#x6ca1;&#x6709;&#x914d;&#x7f6e;&#x8fc7;&#x7ebf;&#x8def;&#x7684;&#x8f66;&#x8f86;&#x62a5;&#x5e9f;&#x65f6;&#xff0c;&#x4e0d;&#x6dfb;&#x52a0;&#x8f66;&#x8f86;&#x8bbe;&#x5907;&#x8bb0;&#x5f55;&#xa;&#xa;var device_gsName &#x3d; gsmc&#x3b; &#x2f;&#x2f; &#x516c;&#x53f8;&#x540d;&#x79f0;&#xa;var device_company &#x3d; gsdm&#x3b; &#x2f;&#x2f; &#x516c;&#x53f8;&#x4ee3;&#x7801;&#xa;var device_branch_company &#x3d; fgsdm&#x3b; &#x2f;&#x2f; &#x5206;&#x516c;&#x53f8;&#x4ee3;&#x7801;&#xa;var device_cl &#x3d; id&#x3b; &#x2f;&#x2f; &#x8f66;&#x8f86;Id&#xa;var device_clzbh &#x3d; clzbh&#x3b; &#x2f;&#x2f; &#x8f66;&#x8f86;&#x81ea;&#x7f16;&#x53f7;&#xa;var device_old_no &#x3d; equipment_code&#x3b; &#x2f;&#x2f; &#x4e4b;&#x524d;&#x7684;&#x8bbe;&#x5907;&#x7f16;&#x7801;&#xa;var device_new_no &#x3d; equipmentCode_update&#x3b; &#x2f;&#x2f; &#x65b0;&#x7684;&#x8bbe;&#x5907;&#x7f16;&#x7801;&#xa;var device_is_cancel &#x3d; 1&#x3b; &#x2f;&#x2f; &#x662f;&#x5426;&#x5220;&#x9664;&#xa;var device_create_date &#x3d; new Date&#x28;&#x29;&#x3b; &#x2f;&#x2f; &#x521b;&#x5efa;&#x65f6;&#x95f4;&#xa;var device_update_date &#x3d; new Date&#x28;&#x29;&#x3b; &#x2f;&#x2f; &#x66f4;&#x65b0;&#x65e5;&#x671f;&#xa;var device_qyrq &#x3d; new Date&#x28;&#x29;&#x3b; &#x2f;&#x2f; &#x542f;&#x7528;&#x65e5;&#x671f;&#xa;var device_xl &#x3d; xl&#x3b; &#x2f;&#x2f; &#x7ebf;&#x8def;Id&#xa;var device_xlName &#x3d; name&#x3b; &#x2f;&#x2f; &#x7ebf;&#x8def;&#x540d;&#x5b57;&#xa;var device_xlbm &#x3d; line_code&#x3b; &#x2f;&#x2f; &#x7ebf;&#x8def;&#x7f16;&#x7801;</jsScript_script>
  1626 + <jsScript_script>&#x2f;&#x2f;Script here&#xa;&#xa;&#x2f;&#x2f;---------------- &#x8f66;&#x8f86;&#x62a5;&#x5e9f;&#x65f6;&#x9700;&#x8981;&#x5411;&#x8bbe;&#x5907;&#x8868;&#x6dfb;&#x52a0;&#x4e00;&#x6761;&#x8bb0;&#x5f55; -------------&#x2f;&#x2f;&#xa;&#x2f;&#x2f; &#x6ce8;&#x610f;&#xff1a;&#x6ca1;&#x6709;&#x914d;&#x7f6e;&#x8fc7;&#x7ebf;&#x8def;&#x7684;&#x8f66;&#x8f86;&#x62a5;&#x5e9f;&#x65f6;&#xff0c;&#x7ebf;&#x8def;Id&#xff0c;&#x7ebf;&#x8def;&#x540d;&#x5b57;&#xff0c;&#x7ebf;&#x8def;&#x7f16;&#x7801;&#x4e3a;&#x7a7a;&#xa;&#xa;var device_gsName &#x3d; gsmc&#x3b; &#x2f;&#x2f; &#x516c;&#x53f8;&#x540d;&#x79f0;&#xa;var device_company &#x3d; gsdm&#x3b; &#x2f;&#x2f; &#x516c;&#x53f8;&#x4ee3;&#x7801;&#xa;var device_branch_company &#x3d; fgsdm&#x3b; &#x2f;&#x2f; &#x5206;&#x516c;&#x53f8;&#x4ee3;&#x7801;&#xa;var device_cl &#x3d; id&#x3b; &#x2f;&#x2f; &#x8f66;&#x8f86;Id&#xa;var device_clzbh &#x3d; clzbh&#x3b; &#x2f;&#x2f; &#x8f66;&#x8f86;&#x81ea;&#x7f16;&#x53f7;&#xa;var device_old_no &#x3d; equipment_code&#x3b; &#x2f;&#x2f; &#x4e4b;&#x524d;&#x7684;&#x8bbe;&#x5907;&#x7f16;&#x7801;&#xa;var device_new_no &#x3d; equipmentCode_update&#x3b; &#x2f;&#x2f; &#x65b0;&#x7684;&#x8bbe;&#x5907;&#x7f16;&#x7801;&#xa;var device_is_cancel &#x3d; 1&#x3b; &#x2f;&#x2f; &#x662f;&#x5426;&#x5220;&#x9664;&#xa;var device_create_date &#x3d; new Date&#x28;&#x29;&#x3b; &#x2f;&#x2f; &#x521b;&#x5efa;&#x65f6;&#x95f4;&#xa;var device_update_date &#x3d; new Date&#x28;&#x29;&#x3b; &#x2f;&#x2f; &#x66f4;&#x65b0;&#x65e5;&#x671f;&#xa;var device_qyrq &#x3d; new Date&#x28;&#x29;&#x3b; &#x2f;&#x2f; &#x542f;&#x7528;&#x65e5;&#x671f;&#xa;var device_xl &#x3d; xl&#x3b; &#x2f;&#x2f; &#x7ebf;&#x8def;Id&#xa;var device_xlName &#x3d; name&#x3b; &#x2f;&#x2f; &#x7ebf;&#x8def;&#x540d;&#x5b57;&#xa;var device_xlbm &#x3d; line_code&#x3b; &#x2f;&#x2f; &#x7ebf;&#x8def;&#x7f16;&#x7801;</jsScript_script>
1528 1627 </jsScript> </jsScripts> <fields> <field> <name>device_gsName</name>
1529 1628 <rename>device_gsName</rename>
1530 1629 <type>String</type>
... ... @@ -2308,47 +2407,6 @@
2308 2407 </step>
2309 2408  
2310 2409 <step>
2311   - <name>&#x662f;&#x5426;&#x62a5;&#x5e9f;&#x4e14;&#x66fe;&#x7ecf;&#x914d;&#x7f6e;&#x8fc7;&#x7ebf;&#x8def;</name>
2312   - <type>FilterRows</type>
2313   - <description/>
2314   - <distribute>Y</distribute>
2315   - <custom_distribution/>
2316   - <copies>1</copies>
2317   - <partitioning>
2318   - <method>none</method>
2319   - <schema_name/>
2320   - </partitioning>
2321   -<send_true_to>&#x62a5;&#x5e9f;&#x8f66;&#x8f86;&#x7ba1;&#x7406;&#x8bbe;&#x5907;&#x6570;&#x636e;&#x5904;&#x7406;</send_true_to>
2322   -<send_false_to/>
2323   - <compare>
2324   -<condition>
2325   - <negated>N</negated>
2326   - <conditions>
2327   - <condition>
2328   - <negated>N</negated>
2329   - <leftvalue>scrapState_update</leftvalue>
2330   - <function>&#x3d;</function>
2331   - <rightvalue/>
2332   - <value><name>constant</name><type>String</type><text>1</text><length>-1</length><precision>-1</precision><isnull>N</isnull><mask/></value> </condition>
2333   - <condition>
2334   - <negated>N</negated>
2335   - <operator>AND</operator>
2336   - <leftvalue>xl</leftvalue>
2337   - <function>IS NOT NULL</function>
2338   - <rightvalue/>
2339   - </condition>
2340   - </conditions>
2341   - </condition>
2342   - </compare>
2343   - <cluster_schema/>
2344   - <remotesteps> <input> </input> <output> </output> </remotesteps> <GUI>
2345   - <xloc>513</xloc>
2346   - <yloc>585</yloc>
2347   - <draw>Y</draw>
2348   - </GUI>
2349   - </step>
2350   -
2351   - <step>
2352 2410 <name>&#x66f4;&#x65b0;&#x6570;&#x636e;&#x5904;&#x7406;</name>
2353 2411 <type>ScriptValueMod</type>
2354 2412 <description/>
... ...