Commit 9d003d178143d4840a8f07ef50b6a511c88d149b

Authored by 娄高锋
2 parents 828cfd94 612f4636

Merge branch 'pudong_jdk8' of http://101.95.0.106:8888/panzhaov5/bsth_control into pudong_jdk8

src/main/java/com/bsth/service/gps/GpsServiceImpl.java
@@ -664,7 +664,7 @@ public class GpsServiceImpl implements GpsService { @@ -664,7 +664,7 @@ public class GpsServiceImpl implements GpsService {
664 Collections.sort(rs, new Comparator<GpsEntity>() { 664 Collections.sort(rs, new Comparator<GpsEntity>() {
665 @Override 665 @Override
666 public int compare(GpsEntity o1, GpsEntity o2) { 666 public int compare(GpsEntity o1, GpsEntity o2) {
667 - return o2.getTimestamp().intValue() - o1.getTimestamp().intValue(); 667 + return (int)(o2.getTimestamp().longValue() - o1.getTimestamp().longValue());
668 } 668 }
669 }); 669 });
670 670
@@ -1185,7 +1185,7 @@ public class GpsServiceImpl implements GpsService { @@ -1185,7 +1185,7 @@ public class GpsServiceImpl implements GpsService {
1185 Collections.sort(rs, new Comparator<SafeDriv>() { 1185 Collections.sort(rs, new Comparator<SafeDriv>() {
1186 @Override 1186 @Override
1187 public int compare(SafeDriv o1, SafeDriv o2) { 1187 public int compare(SafeDriv o1, SafeDriv o2) {
1188 - return o2.getTs().intValue() - o1.getTs().intValue(); 1188 + return (int)(o2.getTs().longValue() - o1.getTs().longValue());
1189 } 1189 }
1190 }); 1190 });
1191 1191
src/main/resources/datatools/ktrs/vehicleDataSync.ktr
@@ -703,6 +703,30 @@ @@ -703,6 +703,30 @@
703 </attributes> 703 </attributes>
704 </connection> 704 </connection>
705 <connection> 705 <connection>
  706 + <name>&#x5916;&#x7f51;vpn&#x4e34;&#x6e2f;&#x673a;&#x52a1;oracle</name>
  707 + <server>10.10.150.114</server>
  708 + <type>ORACLE</type>
  709 + <access>Native</access>
  710 + <database>helowin</database>
  711 + <port>1521</port>
  712 + <username>lgjw</username>
  713 + <password>Encrypted 2be98afc86aa7f2e4cb79ce10d295a5cd</password>
  714 + <servername/>
  715 + <data_tablespace/>
  716 + <index_tablespace/>
  717 + <attributes>
  718 + <attribute><code>FORCE_IDENTIFIERS_TO_LOWERCASE</code><attribute>N</attribute></attribute>
  719 + <attribute><code>FORCE_IDENTIFIERS_TO_UPPERCASE</code><attribute>N</attribute></attribute>
  720 + <attribute><code>IS_CLUSTERED</code><attribute>N</attribute></attribute>
  721 + <attribute><code>PORT_NUMBER</code><attribute>1521</attribute></attribute>
  722 + <attribute><code>PRESERVE_RESERVED_WORD_CASE</code><attribute>N</attribute></attribute>
  723 + <attribute><code>QUOTE_ALL_FIELDS</code><attribute>N</attribute></attribute>
  724 + <attribute><code>SUPPORTS_BOOLEAN_DATA_TYPE</code><attribute>Y</attribute></attribute>
  725 + <attribute><code>SUPPORTS_TIMESTAMP_DATA_TYPE</code><attribute>Y</attribute></attribute>
  726 + <attribute><code>USE_POOLING</code><attribute>N</attribute></attribute>
  727 + </attributes>
  728 + </connection>
  729 + <connection>
706 <name>&#x5916;&#x7f51;&#x5357;&#x6c47;&#x673a;&#x52a1;oracle</name> 730 <name>&#x5916;&#x7f51;&#x5357;&#x6c47;&#x673a;&#x52a1;oracle</name>
707 <server>58.247.254.118</server> 731 <server>58.247.254.118</server>
708 <type>ORACLE</type> 732 <type>ORACLE</type>
@@ -1815,7 +1839,7 @@ @@ -1815,7 +1839,7 @@
1815 <optimizationLevel>9</optimizationLevel> 1839 <optimizationLevel>9</optimizationLevel>
1816 <jsScripts> <jsScript> <jsScript_type>0</jsScript_type> 1840 <jsScripts> <jsScript> <jsScript_type>0</jsScript_type>
1817 <jsScript_name>Script 1</jsScript_name> 1841 <jsScript_name>Script 1</jsScript_name>
1818 - <jsScript_script>&#x2f;&#x2f;Script here&#xa;&#xa;&#x2f;&#x2f;---------------- &#x65b0;&#x589e;&#x7528;&#x7684;&#x5b57;&#x6bb5;&#x91cd;&#x65b0;&#x547d;&#x540d;&#xff08;&#x65b9;&#x4fbf;&#x540e;&#x7eed;&#x64cd;&#x4f5c;&#xff09;-----------&#x2f;&#x2f;&#xa;var insideCode_add &#x3d; clzbh&#x3b; &#x2f;&#x2f; &#x8f66;&#x8f86;&#x81ea;&#x7f16;&#x53f7;&#xa;var carPlate_add &#x3d; cph&#x3b; &#x2f;&#x2f; &#x8f66;&#x724c;&#x53f7;&#xa;var carCode_add &#x3d; clzbh&#x3b; &#x2f;&#x2f; &#x8f66;&#x8f86;&#x7f16;&#x7801;&#xff08;&#x521d;&#x59cb;&#x4f7f;&#x7528;&#x81ea;&#x7f16;&#x53f7;&#x4ee3;&#x66ff;&#xff09;&#xa;var supplierName_add &#x3d; &#x22;1&#x22;&#x3b; &#x2f;&#x2f; &#x4f9b;&#x5e94;&#x5546;&#x540d;&#x79f0;&#xff08;&#x5b57;&#x5178;&#xff1a;1&#x3d;&#x5df4;&#x58eb;&#x62d3;&#x534e;&#xff09;&#xa;var businessCode_add &#x3d; gsdm&#x3b; &#x2f;&#x2f; &#x516c;&#x53f8;&#x4ee3;&#x7801;&#xa;var company_add &#x3d; gsmc&#x3b; &#x2f;&#x2f; &#x516c;&#x53f8;&#x540d;&#x79f0;&#xa;var brancheCompanyCode_add &#x3d; fgsdm&#x3b; &#x2f;&#x2f; &#x5206;&#x516c;&#x53f8;&#x4ee3;&#x7801;&#xa;var brancheCompany_add &#x3d; fgsmc&#x3b; &#x2f;&#x2f; &#x5206;&#x516c;&#x53f8;&#x540d;&#x79f0;&#xa;var equipmentCode_add &#x3d; gsdm &#x2b; clzbh.replace&#x28;&#x2f;-&#x2f;g, &#x22;&#x22;&#x29;&#x3b; &#x2f;&#x2f; &#x8bbe;&#x5907;&#x7f16;&#x53f7;&#xff08;&#x521d;&#x59cb;&#x4f7f;&#x7528;&#x516c;&#x53f8;&#x4ee3;&#x7801;&#x2b;&#x8f66;&#x8f86;&#x81ea;&#x7f16;&#x53f7;&#x53bb;&#x9664;&#x4e2d;&#x95f4;-&#xff0c;&#x5982;&#xff1a;S0I-039 -&#x3e; 22S0I039&#xff09;&#xa;var scrapState_add &#x3d; 0&#x3b; &#x2f;&#x2f; &#x662f;&#x5426;&#x62a5;&#x5e9f;&#xa;var scrapDate_add&#x3b; &#x2f;&#x2f; &#x62a5;&#x5e9f;&#x65e5;&#x671f;&#xa;var scrapCode_add&#x3b; &#x2f;&#x2f; &#x62a5;&#x5e9f;&#x53f7;&#xa;var sfdc_add&#x3b; &#x2f;&#x2f; &#x662f;&#x5426;&#x7eaf;&#x7535;&#x8f66;&#xa;var sfmix_add&#x3b; &#x2f;&#x2f; &#x662f;&#x5426;&#x6df7;&#x5408;&#x52a8;&#x529b;&#xa;if &#x28;carState &#x3d;&#x3d; &#x27;3&#x27; &#x7c;&#x7c; scrapType &#x3d;&#x3d; &#x27;1&#x27;&#x29; &#x7b;&#xa; scrapState_add &#x3d; 1&#x3b;&#xa; scrapDate_add &#x3d; scrapDate &#x3d;&#x3d; null &#x3f; null &#x3a; str2date&#x28;scrapDate, &#x27;yyyy-MM-dd&#x27;&#x29;&#x3b;&#xa; equipmentCode_add &#x3d; &#x27;BF-&#x27; &#x2b; equipmentCode_add&#x3b;&#xa; scrapCode_add &#x3d; &#x27;BF-&#x27; &#x2b; equipmentCode_add&#x3b;&#xa;&#x7d;&#xa;if &#x28;carEnergyType &#x3d;&#x3d; &#x27;&#x7eaf;&#x7535;&#x52a8;&#x27; &#x7c;&#x7c; carEnergyType &#x3d;&#x3d; &#x27;&#x53cc;&#x7535;&#x5f0f;&#x7eaf;&#x7535;&#x52a8;&#x27; &#x7c;&#x7c; carEnergyType &#x3d;&#x3d; &#x27;&#x5feb;&#x5145;&#x5f0f;&#x7eaf;&#x7535;&#x52a8;&#x27;&#x29; &#x7b;&#xa; sfdc_add &#x3d; 1&#x3b;&#xa;&#x7d; else &#x7b;&#xa; sfdc_add &#x3d; 0&#x3b;&#xa;&#x7d;&#xa;if &#x28;carEnergyType &#x3d;&#x3d; &#x27;&#x63d2;&#x7535;&#x5f0f;&#x6df7;&#x5408;&#x52a8;&#x529b;&#x27; &#x7c;&#x7c; carEnergyType &#x3d;&#x3d; &#x27;&#x6df7;&#x5408;&#x52a8;&#x529b;&#x27;&#x29; &#x7b;&#xa; sfmix_add &#x3d; 1&#x3b;&#xa;&#x7d; else &#x7b;&#xa; sfmix_add &#x3d; 0&#x3b;&#xa;&#x7d;&#xa;var createDate_add &#x3d; new Date&#x28;&#x29;&#x3b; &#x2f;&#x2f; &#x521b;&#x5efa;&#x65f6;&#x95f4;&#xa;var updateDate_add &#x3d; createDate_add&#x3b; &#x2f;&#x2f; &#x66f4;&#x65b0;&#x65f6;&#x95f4;</jsScript_script> 1842 + <jsScript_script>&#x2f;&#x2f;Script here&#xa;&#xa;&#x2f;&#x2f;---------------- &#x65b0;&#x589e;&#x7528;&#x7684;&#x5b57;&#x6bb5;&#x91cd;&#x65b0;&#x547d;&#x540d;&#xff08;&#x65b9;&#x4fbf;&#x540e;&#x7eed;&#x64cd;&#x4f5c;&#xff09;-----------&#x2f;&#x2f;&#xa;var insideCode_add &#x3d; clzbh&#x3b; &#x2f;&#x2f; &#x8f66;&#x8f86;&#x81ea;&#x7f16;&#x53f7;&#xa;var carPlate_add &#x3d; cph&#x3b; &#x2f;&#x2f; &#x8f66;&#x724c;&#x53f7;&#xa;var carCode_add &#x3d; clzbh&#x3b; &#x2f;&#x2f; &#x8f66;&#x8f86;&#x7f16;&#x7801;&#xff08;&#x521d;&#x59cb;&#x4f7f;&#x7528;&#x81ea;&#x7f16;&#x53f7;&#x4ee3;&#x66ff;&#xff09;&#xa;var supplierName_add &#x3d; &#x22;1&#x22;&#x3b; &#x2f;&#x2f; &#x4f9b;&#x5e94;&#x5546;&#x540d;&#x79f0;&#xff08;&#x5b57;&#x5178;&#xff1a;1&#x3d;&#x5df4;&#x58eb;&#x62d3;&#x534e;&#xff09;&#xa;var businessCode_add &#x3d; gsdm&#x3b; &#x2f;&#x2f; &#x516c;&#x53f8;&#x4ee3;&#x7801;&#xa;var company_add &#x3d; gsmc&#x3b; &#x2f;&#x2f; &#x516c;&#x53f8;&#x540d;&#x79f0;&#xa;var brancheCompanyCode_add &#x3d; fgsdm&#x3b; &#x2f;&#x2f; &#x5206;&#x516c;&#x53f8;&#x4ee3;&#x7801;&#xa;var brancheCompany_add &#x3d; fgsmc&#x3b; &#x2f;&#x2f; &#x5206;&#x516c;&#x53f8;&#x540d;&#x79f0;&#xa;var equipmentCode_add &#x3d; gsdm &#x2b; clzbh.replace&#x28;&#x2f;-&#x2f;g, &#x22;&#x22;&#x29;&#x3b; &#x2f;&#x2f; &#x8bbe;&#x5907;&#x7f16;&#x53f7;&#xff08;&#x521d;&#x59cb;&#x4f7f;&#x7528;&#x516c;&#x53f8;&#x4ee3;&#x7801;&#x2b;&#x8f66;&#x8f86;&#x81ea;&#x7f16;&#x53f7;&#x53bb;&#x9664;&#x4e2d;&#x95f4;-&#xff0c;&#x5982;&#xff1a;S0I-039 -&#x3e; 22S0I039&#xff09;&#xa;var scrapState_add &#x3d; 0&#x3b; &#x2f;&#x2f; &#x662f;&#x5426;&#x62a5;&#x5e9f;&#xa;var scrapDate_add&#x3b; &#x2f;&#x2f; &#x62a5;&#x5e9f;&#x65e5;&#x671f;&#xa;var scrapCode_add&#x3b; &#x2f;&#x2f; &#x62a5;&#x5e9f;&#x53f7;&#xa;var sfdc_add&#x3b; &#x2f;&#x2f; &#x662f;&#x5426;&#x7eaf;&#x7535;&#x8f66;&#xa;var sfmix_add&#x3b; &#x2f;&#x2f; &#x662f;&#x5426;&#x6df7;&#x5408;&#x52a8;&#x529b;&#xa;if &#x28;carState &#x3d;&#x3d; &#x27;3&#x27; &#x7c;&#x7c; scrapType &#x3d;&#x3d; &#x27;1&#x27;&#x29; &#x7b;&#xa; scrapState_add &#x3d; 1&#x3b;&#xa; scrapDate_add &#x3d; scrapDate &#x3d;&#x3d; null &#x3f; null &#x3a; str2date&#x28;scrapDate, &#x27;yyyy-MM-dd&#x27;&#x29;&#x3b;&#xa; equipmentCode_add &#x3d; &#x27;BF-&#x27; &#x2b; equipmentCode_add&#x3b;&#xa; scrapCode_add &#x3d; &#x27;BF-&#x27; &#x2b; equipmentCode_add&#x3b;&#xa;&#x7d;&#xa;if &#x28;carEnergyType &#x3d;&#x3d; &#x27;&#x7eaf;&#x7535;&#x52a8;&#x27; &#x7c;&#x7c; carEnergyType &#x3d;&#x3d; &#x27;&#x53cc;&#x7535;&#x5f0f;&#x7eaf;&#x7535;&#x52a8;&#x27; &#x7c;&#x7c; carEnergyType &#x3d;&#x3d; &#x27;&#x5feb;&#x5145;&#x5f0f;&#x7eaf;&#x7535;&#x52a8;&#x27; &#x7c;&#x7c; carEnergyType &#x3d;&#x3d; &#x27;&#x8d85;&#x7ea7;&#x7535;&#x5bb9;&#x27;&#x29; &#x7b;&#xa; sfdc_add &#x3d; 1&#x3b;&#xa;&#x7d; else &#x7b;&#xa; sfdc_add &#x3d; 0&#x3b;&#xa;&#x7d;&#xa;if &#x28;carEnergyType &#x3d;&#x3d; &#x27;&#x63d2;&#x7535;&#x5f0f;&#x6df7;&#x5408;&#x52a8;&#x529b;&#x27; &#x7c;&#x7c; carEnergyType &#x3d;&#x3d; &#x27;&#x6df7;&#x5408;&#x52a8;&#x529b;&#x27;&#x29; &#x7b;&#xa; sfmix_add &#x3d; 1&#x3b;&#xa;&#x7d; else &#x7b;&#xa; sfmix_add &#x3d; 0&#x3b;&#xa;&#x7d;&#xa;var createDate_add &#x3d; new Date&#x28;&#x29;&#x3b; &#x2f;&#x2f; &#x521b;&#x5efa;&#x65f6;&#x95f4;&#xa;var updateDate_add &#x3d; createDate_add&#x3b; &#x2f;&#x2f; &#x66f4;&#x65b0;&#x65f6;&#x95f4;</jsScript_script>
1819 </jsScript> </jsScripts> <fields> <field> <name>insideCode_add</name> 1843 </jsScript> </jsScripts> <fields> <field> <name>insideCode_add</name>
1820 <rename>insideCode_add</rename> 1844 <rename>insideCode_add</rename>
1821 <type>String</type> 1845 <type>String</type>
@@ -2339,7 +2363,7 @@ @@ -2339,7 +2363,7 @@
2339 <optimizationLevel>9</optimizationLevel> 2363 <optimizationLevel>9</optimizationLevel>
2340 <jsScripts> <jsScript> <jsScript_type>0</jsScript_type> 2364 <jsScripts> <jsScript> <jsScript_type>0</jsScript_type>
2341 <jsScript_name>Script 1</jsScript_name> 2365 <jsScript_name>Script 1</jsScript_name>
2342 - <jsScript_script>&#x2f;&#x2f;Script here&#xa;&#xa;&#x2f;&#x2f;---------------- &#x66f4;&#x65b0;&#x7528;&#x7684;&#x5b57;&#x6bb5;&#x91cd;&#x65b0;&#x547d;&#x540d;&#xff08;&#x65b9;&#x4fbf;&#x540e;&#x7eed;&#x64cd;&#x4f5c;&#xff09;-----------&#x2f;&#x2f;&#xa;&#x2f;&#x2f; TODO&#xff1a;&#x540e;&#x9762;&#x8fd8;&#x6709;&#x66f4;&#x591a;&#x7684;&#x66f4;&#x65b0;&#x5b57;&#x6bb5;&#xa;&#xa;var update_date &#x3d; new Date&#x28;&#x29;&#x3b;&#xa;&#xa;&#x2f;&#x2f;------------ 1&#x3001;&#x516c;&#x53f8;&#x5206;&#x516c;&#x53f8;&#x76f8;&#x5173;&#x5b57;&#x6bb5; -----------&#x2f;&#x2f;&#xa;var company_update &#x3d; gsmc&#x3b; &#x2f;&#x2f; &#x516c;&#x53f8;&#x540d;&#x79f0;&#xa;var branche_company_update &#x3d; fgsmc&#x3b; &#x2f;&#x2f; &#x5206;&#x516c;&#x53f8;&#x540d;&#x79f0;&#xa;var business_code_update &#x3d; gsdm&#x3b; &#x2f;&#x2f; &#x516c;&#x53f8;&#x4ee3;&#x7801;&#xa;var branch_company_code_update &#x3d; fgsdm&#x3b; &#x2f;&#x2f; &#x5206;&#x516c;&#x53f8;&#x4ee3;&#x7801;&#xa;var isGsUpdate &#x3d; false&#x3b; &#x2f;&#x2f; &#x662f;&#x5426;&#x66f4;&#x65b0;&#xa;if &#x28;&#x21;company_update.equals&#x28;company&#x29;&#x29; &#x7b;&#xa; isGsUpdate &#x3d; true&#x3b;&#xa;&#x7d;&#xa;if &#x28;&#x21;branche_company_update.equals&#x28;branche_company&#x29;&#x29; &#x7b;&#xa; isGsUpdate &#x3d; true&#x3b;&#xa;&#x7d;&#xa;&#xa;&#x2f;&#x2f;------------- 2&#x3001;&#x62a5;&#x5e9f;&#x76f8;&#x5173;&#x5b57;&#x6bb5; ------------&#x2f;&#x2f;&#xa;var equipmentCode_update &#x3d; equipment_code&#x3b; &#x2f;&#x2f; &#x8bbe;&#x5907;&#x7f16;&#x53f7;&#xa;var scrapCode_update &#x3d; scrap_code&#x3b; &#x2f;&#x2f; &#x62a5;&#x5e9f;&#x53f7;&#xa;var scrapState_update &#x3d; &#x28;scrap_state &#x3d;&#x3d; true &#x3f; 1 &#x3a; 0&#x29;&#x3b; &#x2f;&#x2f; &#x62a5;&#x5e9f;&#x72b6;&#x6001;&#xa;var scrapState_update_b &#x3d; scrap_state&#x3b; &#x2f;&#x2f; &#x62a5;&#x5e9f;&#x72b6;&#x6001;&#xa;var scrapDate_update &#x3d; scrap_date&#x3b; &#x2f;&#x2f; &#x62a5;&#x5e9f;&#x65e5;&#x671f;&#xa;var isScrapUpdate &#x3d; false&#x3b; &#x2f;&#x2f; &#x662f;&#x5426;&#x66f4;&#x65b0;&#xa;if &#x28;carState &#x3d;&#x3d; &#x27;3&#x27; &#x7c;&#x7c; scrapType &#x3d;&#x3d; &#x27;1&#x27;&#x29; &#x7b;&#xa; scrapState_update_b &#x3d; true&#x3b;&#xa; scrapState_update &#x3d; 1&#x3b;&#xa; &#x2f;&#x2f; &#x4f7f;&#x7528;&#x8f66;&#x8f86;&#x5e93;&#x7684;&#x62a5;&#x5e9f;&#x65f6;&#x95f4;&#xa; scrapDate_update &#x3d; scrapDate &#x3d;&#x3d; null &#x3f; null &#x3a; str2date&#x28;scrapDate, &#x27;yyyy-MM-dd&#x27;&#x29;&#x3b;&#xa; &#x2f;&#x2f; &#x8f66;&#x8f86;&#x5e93;&#x62a5;&#x5e9f;&#x65f6;&#x95f4;&#x4e3a;&#x7a7a;&#xff0c;&#x518d;&#x4f7f;&#x7528;&#x5f53;&#x524d;&#x65f6;&#x95f4;&#xa; if &#x28;scrapDate_update &#x3d;&#x3d; null&#x29; &#x7b;&#xa; scrapDate_update &#x3d; new Date&#x28;&#x29;&#x3b; &#x2f;&#x2f; &#x62a5;&#x5e9f;&#x65e5;&#x671f;&#x8bbe;&#x5b9a;&#x4f4d;&#x5f53;&#x524d;&#x65e5;&#x671f;&#xa; &#x7d;&#xa; equipmentCode_update &#x3d; &#x27;BF-&#x27; &#x2b; equipmentCode_update&#x3b;&#xa; scrapCode_update &#x3d; &#x27;BF-&#x27; &#x2b; equipmentCode_update&#x3b;&#xa;&#x7d;&#xa;if &#x28;scrapState_update_b &#x21;&#x3d; scrap_state&#x29; &#x7b;&#xa; isScrapUpdate &#x3d; true&#x3b;&#xa;&#x7d;&#xa;&#x2f;&#x2f;-------------- 3-1&#x3001;&#x662f;&#x5426;&#x7eaf;&#x7535;&#x8f66;&#x76f8;&#x5173;&#x5b57;&#x6bb5; ------------&#x2f;&#x2f;&#xa;var sfdc_update &#x3d; 0&#x3b; &#x2f;&#x2f; &#x662f;&#x5426;&#x7eaf;&#x7535;&#x8f66;&#xff08;&#x5f85;&#x66f4;&#x65b0;&#xff09;&#xa;if &#x28;carEnergyType &#x3d;&#x3d; &#x27;&#x7eaf;&#x7535;&#x52a8;&#x27; &#x7c;&#x7c; carEnergyType &#x3d;&#x3d; &#x27;&#x53cc;&#x7535;&#x5f0f;&#x7eaf;&#x7535;&#x52a8;&#x27; &#x7c;&#x7c; carEnergyType &#x3d;&#x3d; &#x27;&#x5feb;&#x5145;&#x5f0f;&#x7eaf;&#x7535;&#x52a8;&#x27;&#x29; &#x7b;&#xa; sfdc_update &#x3d; 1&#x3b;&#xa;&#x7d;&#xa;var sfdc_update_b &#x3d; 0&#x3b; &#x2f;&#x2f; &#x662f;&#x5426;&#x7eaf;&#x7535;&#x8f66;&#xff08;&#x539f;&#x59cb;&#x6570;&#x636e;&#xff09;&#xa;if &#x28;sfdc &#x3d;&#x3d; null&#x29; &#x7b; &#xa; sfdc_update_b &#x3d; null&#x3b;&#xa;&#x7d; else &#x7b;&#xa; sfdc_update_b &#x3d; &#x28;sfdc &#x3d;&#x3d; true &#x3f; 1 &#x3a; 0&#x29;&#x3b;&#xa;&#x7d;&#xa;var isSfdcUpdate &#x3d; false&#x3b; &#x2f;&#x2f; &#x662f;&#x5426;&#x66f4;&#x65b0; &#xa;if &#x28;sfdc_update_b &#x21;&#x3d; sfdc_update&#x29; &#x7b; &#xa; isSfdcUpdate &#x3d; true&#x3b;&#xa;&#x7d;&#xa;&#xa;&#x2f;&#x2f;-------------- 3-2&#x3001;&#x662f;&#x5426;&#x6df7;&#x5408;&#x52a8;&#x529b;&#x76f8;&#x5173;&#x5b57;&#x6bb5; ------------&#x2f;&#x2f;&#xa;var sfmix_update &#x3d; 0&#x3b; &#x2f;&#x2f; &#x662f;&#x5426;&#x6df7;&#x5408;&#x52a8;&#x529b;&#xff08;&#x5f85;&#x66f4;&#x65b0;&#xff09;&#xa;if &#x28;carEnergyType &#x3d;&#x3d; &#x27;&#x63d2;&#x7535;&#x5f0f;&#x6df7;&#x5408;&#x52a8;&#x529b;&#x27; &#x7c;&#x7c; carEnergyType &#x3d;&#x3d; &#x27;&#x6df7;&#x5408;&#x52a8;&#x529b;&#x27;&#x29; &#x7b;&#xa; sfmix_update &#x3d; 1&#x3b;&#xa;&#x7d;&#xa;var sfmix_update_b &#x3d; 0&#x3b; &#x2f;&#x2f; &#x662f;&#x5426;&#x6df7;&#x5408;&#x52a8;&#x529b;&#xff08;&#x539f;&#x59cb;&#x6570;&#x636e;&#xff09;&#xa;if &#x28;sfmix &#x3d;&#x3d; null&#x29; &#x7b;&#xa; sfmix_update_b &#x3d; null&#x3b;&#xa;&#x7d; else &#x7b;&#xa; sfmix_update_b &#x3d; &#x28;sfmix &#x3d;&#x3d; true &#x3f; 1 &#x3a; 0&#x29;&#x3b;&#xa;&#x7d;&#xa;var isSfmixUpdate &#x3d; false&#x3b; &#x2f;&#x2f; &#x662f;&#x5426;&#x66f4;&#x65b0;&#xa;if &#x28;sfmix_update_b &#x21;&#x3d; sfmix_update&#x29; &#x7b; &#xa; isSfmixUpdate &#x3d; true&#x3b;&#xa;&#x7d;&#xa;&#xa;&#x2f;&#x2f;--------------- 4&#x3001;&#x8f66;&#x724c;&#x53f7;&#x76f8;&#x5173;&#x5b57;&#x6bb5; ---------------&#x2f;&#x2f;&#xa;var cph_update &#x3d; cph&#x3b; &#x2f;&#x2f; &#x5f85;&#x66f4;&#x65b0;&#x8f66;&#x724c;&#x53f7;&#xa;var isChpUpdate &#x3d; false&#x3b; &#x2f;&#x2f; &#x662f;&#x5426;&#x66f4;&#x65b0;&#xa;if &#x28;&#x21;cph_update.equals&#x28;car_plate&#x29;&#x29; &#x7b;&#xa; isChpUpdate &#x3d; true&#x3b;&#xa;&#x7d;&#xa;</jsScript_script> 2366 + <jsScript_script>&#x2f;&#x2f;Script here&#xa;&#xa;&#x2f;&#x2f;---------------- &#x66f4;&#x65b0;&#x7528;&#x7684;&#x5b57;&#x6bb5;&#x91cd;&#x65b0;&#x547d;&#x540d;&#xff08;&#x65b9;&#x4fbf;&#x540e;&#x7eed;&#x64cd;&#x4f5c;&#xff09;-----------&#x2f;&#x2f;&#xa;&#x2f;&#x2f; TODO&#xff1a;&#x540e;&#x9762;&#x8fd8;&#x6709;&#x66f4;&#x591a;&#x7684;&#x66f4;&#x65b0;&#x5b57;&#x6bb5;&#xa;&#xa;var update_date &#x3d; new Date&#x28;&#x29;&#x3b;&#xa;&#xa;&#x2f;&#x2f;------------ 1&#x3001;&#x516c;&#x53f8;&#x5206;&#x516c;&#x53f8;&#x76f8;&#x5173;&#x5b57;&#x6bb5; -----------&#x2f;&#x2f;&#xa;var company_update &#x3d; gsmc&#x3b; &#x2f;&#x2f; &#x516c;&#x53f8;&#x540d;&#x79f0;&#xa;var branche_company_update &#x3d; fgsmc&#x3b; &#x2f;&#x2f; &#x5206;&#x516c;&#x53f8;&#x540d;&#x79f0;&#xa;var business_code_update &#x3d; gsdm&#x3b; &#x2f;&#x2f; &#x516c;&#x53f8;&#x4ee3;&#x7801;&#xa;var branch_company_code_update &#x3d; fgsdm&#x3b; &#x2f;&#x2f; &#x5206;&#x516c;&#x53f8;&#x4ee3;&#x7801;&#xa;var isGsUpdate &#x3d; false&#x3b; &#x2f;&#x2f; &#x662f;&#x5426;&#x66f4;&#x65b0;&#xa;if &#x28;&#x21;company_update.equals&#x28;company&#x29;&#x29; &#x7b;&#xa; isGsUpdate &#x3d; true&#x3b;&#xa;&#x7d;&#xa;if &#x28;&#x21;branche_company_update.equals&#x28;branche_company&#x29;&#x29; &#x7b;&#xa; isGsUpdate &#x3d; true&#x3b;&#xa;&#x7d;&#xa;&#xa;&#x2f;&#x2f;------------- 2&#x3001;&#x62a5;&#x5e9f;&#x76f8;&#x5173;&#x5b57;&#x6bb5; ------------&#x2f;&#x2f;&#xa;var equipmentCode_update &#x3d; equipment_code&#x3b; &#x2f;&#x2f; &#x8bbe;&#x5907;&#x7f16;&#x53f7;&#xa;var scrapCode_update &#x3d; scrap_code&#x3b; &#x2f;&#x2f; &#x62a5;&#x5e9f;&#x53f7;&#xa;var scrapState_update &#x3d; &#x28;scrap_state &#x3d;&#x3d; true &#x3f; 1 &#x3a; 0&#x29;&#x3b; &#x2f;&#x2f; &#x62a5;&#x5e9f;&#x72b6;&#x6001;&#xa;var scrapState_update_b &#x3d; scrap_state&#x3b; &#x2f;&#x2f; &#x62a5;&#x5e9f;&#x72b6;&#x6001;&#xa;var scrapDate_update &#x3d; scrap_date&#x3b; &#x2f;&#x2f; &#x62a5;&#x5e9f;&#x65e5;&#x671f;&#xa;var isScrapUpdate &#x3d; false&#x3b; &#x2f;&#x2f; &#x662f;&#x5426;&#x66f4;&#x65b0;&#xa;if &#x28;carState &#x3d;&#x3d; &#x27;3&#x27; &#x7c;&#x7c; scrapType &#x3d;&#x3d; &#x27;1&#x27;&#x29; &#x7b;&#xa; scrapState_update_b &#x3d; true&#x3b;&#xa; scrapState_update &#x3d; 1&#x3b;&#xa; &#x2f;&#x2f; &#x4f7f;&#x7528;&#x8f66;&#x8f86;&#x5e93;&#x7684;&#x62a5;&#x5e9f;&#x65f6;&#x95f4;&#xa; scrapDate_update &#x3d; scrapDate &#x3d;&#x3d; null &#x3f; null &#x3a; str2date&#x28;scrapDate, &#x27;yyyy-MM-dd&#x27;&#x29;&#x3b;&#xa; &#x2f;&#x2f; &#x8f66;&#x8f86;&#x5e93;&#x62a5;&#x5e9f;&#x65f6;&#x95f4;&#x4e3a;&#x7a7a;&#xff0c;&#x518d;&#x4f7f;&#x7528;&#x5f53;&#x524d;&#x65f6;&#x95f4;&#xa; if &#x28;scrapDate_update &#x3d;&#x3d; null&#x29; &#x7b;&#xa; scrapDate_update &#x3d; new Date&#x28;&#x29;&#x3b; &#x2f;&#x2f; &#x62a5;&#x5e9f;&#x65e5;&#x671f;&#x8bbe;&#x5b9a;&#x4f4d;&#x5f53;&#x524d;&#x65e5;&#x671f;&#xa; &#x7d;&#xa; equipmentCode_update &#x3d; &#x27;BF-&#x27; &#x2b; equipmentCode_update&#x3b;&#xa; scrapCode_update &#x3d; &#x27;BF-&#x27; &#x2b; equipmentCode_update&#x3b;&#xa;&#x7d;&#xa;if &#x28;scrapState_update_b &#x21;&#x3d; scrap_state&#x29; &#x7b;&#xa; isScrapUpdate &#x3d; true&#x3b;&#xa;&#x7d;&#xa;&#x2f;&#x2f;-------------- 3-1&#x3001;&#x662f;&#x5426;&#x7eaf;&#x7535;&#x8f66;&#x76f8;&#x5173;&#x5b57;&#x6bb5; ------------&#x2f;&#x2f;&#xa;var sfdc_update &#x3d; 0&#x3b; &#x2f;&#x2f; &#x662f;&#x5426;&#x7eaf;&#x7535;&#x8f66;&#xff08;&#x5f85;&#x66f4;&#x65b0;&#xff09;&#xa;if &#x28;carEnergyType &#x3d;&#x3d; &#x27;&#x7eaf;&#x7535;&#x52a8;&#x27; &#x7c;&#x7c; carEnergyType &#x3d;&#x3d; &#x27;&#x53cc;&#x7535;&#x5f0f;&#x7eaf;&#x7535;&#x52a8;&#x27; &#x7c;&#x7c; carEnergyType &#x3d;&#x3d; &#x27;&#x5feb;&#x5145;&#x5f0f;&#x7eaf;&#x7535;&#x52a8;&#x27; &#x7c;&#x7c; carEnergyType &#x3d;&#x3d; &#x27;&#x8d85;&#x7ea7;&#x7535;&#x5bb9;&#x27;&#x29; &#x7b;&#xa; sfdc_update &#x3d; 1&#x3b;&#xa;&#x7d;&#xa;var sfdc_update_b &#x3d; 0&#x3b; &#x2f;&#x2f; &#x662f;&#x5426;&#x7eaf;&#x7535;&#x8f66;&#xff08;&#x539f;&#x59cb;&#x6570;&#x636e;&#xff09;&#xa;if &#x28;sfdc &#x3d;&#x3d; null&#x29; &#x7b; &#xa; sfdc_update_b &#x3d; null&#x3b;&#xa;&#x7d; else &#x7b;&#xa; sfdc_update_b &#x3d; &#x28;sfdc &#x3d;&#x3d; true &#x3f; 1 &#x3a; 0&#x29;&#x3b;&#xa;&#x7d;&#xa;var isSfdcUpdate &#x3d; false&#x3b; &#x2f;&#x2f; &#x662f;&#x5426;&#x66f4;&#x65b0; &#xa;if &#x28;sfdc_update_b &#x21;&#x3d; sfdc_update&#x29; &#x7b; &#xa; isSfdcUpdate &#x3d; true&#x3b;&#xa;&#x7d;&#xa;&#xa;&#x2f;&#x2f;-------------- 3-2&#x3001;&#x662f;&#x5426;&#x6df7;&#x5408;&#x52a8;&#x529b;&#x76f8;&#x5173;&#x5b57;&#x6bb5; ------------&#x2f;&#x2f;&#xa;var sfmix_update &#x3d; 0&#x3b; &#x2f;&#x2f; &#x662f;&#x5426;&#x6df7;&#x5408;&#x52a8;&#x529b;&#xff08;&#x5f85;&#x66f4;&#x65b0;&#xff09;&#xa;if &#x28;carEnergyType &#x3d;&#x3d; &#x27;&#x63d2;&#x7535;&#x5f0f;&#x6df7;&#x5408;&#x52a8;&#x529b;&#x27; &#x7c;&#x7c; carEnergyType &#x3d;&#x3d; &#x27;&#x6df7;&#x5408;&#x52a8;&#x529b;&#x27;&#x29; &#x7b;&#xa; sfmix_update &#x3d; 1&#x3b;&#xa;&#x7d;&#xa;var sfmix_update_b &#x3d; 0&#x3b; &#x2f;&#x2f; &#x662f;&#x5426;&#x6df7;&#x5408;&#x52a8;&#x529b;&#xff08;&#x539f;&#x59cb;&#x6570;&#x636e;&#xff09;&#xa;if &#x28;sfmix &#x3d;&#x3d; null&#x29; &#x7b;&#xa; sfmix_update_b &#x3d; null&#x3b;&#xa;&#x7d; else &#x7b;&#xa; sfmix_update_b &#x3d; &#x28;sfmix &#x3d;&#x3d; true &#x3f; 1 &#x3a; 0&#x29;&#x3b;&#xa;&#x7d;&#xa;var isSfmixUpdate &#x3d; false&#x3b; &#x2f;&#x2f; &#x662f;&#x5426;&#x66f4;&#x65b0;&#xa;if &#x28;sfmix_update_b &#x21;&#x3d; sfmix_update&#x29; &#x7b; &#xa; isSfmixUpdate &#x3d; true&#x3b;&#xa;&#x7d;&#xa;&#xa;&#x2f;&#x2f;--------------- 4&#x3001;&#x8f66;&#x724c;&#x53f7;&#x76f8;&#x5173;&#x5b57;&#x6bb5; ---------------&#x2f;&#x2f;&#xa;var cph_update &#x3d; cph&#x3b; &#x2f;&#x2f; &#x5f85;&#x66f4;&#x65b0;&#x8f66;&#x724c;&#x53f7;&#xa;var isChpUpdate &#x3d; false&#x3b; &#x2f;&#x2f; &#x662f;&#x5426;&#x66f4;&#x65b0;&#xa;if &#x28;&#x21;cph_update.equals&#x28;car_plate&#x29;&#x29; &#x7b;&#xa; isChpUpdate &#x3d; true&#x3b;&#xa;&#x7d;&#xa;</jsScript_script>
2343 </jsScript> </jsScripts> <fields> <field> <name>update_date</name> 2367 </jsScript> </jsScripts> <fields> <field> <name>update_date</name>
2344 <rename>update_date</rename> 2368 <rename>update_date</rename>
2345 <type>Date</type> 2369 <type>Date</type>