Browse Source

config修改

xusirui 2 months ago
parent
commit
dc1b19c75f

+ 1 - 1
pom.xml

@@ -10,7 +10,7 @@
10
         <relativePath/> <!-- lookup parent from repository -->
10
         <relativePath/> <!-- lookup parent from repository -->
11
     </parent>
11
     </parent>
12
     <groupId>com.gct.tools</groupId>
12
     <groupId>com.gct.tools</groupId>
13
-    <artifactId>etl-camel-huge</artifactId>
13
+    <artifactId>etl-camel-huge-HYSA2</artifactId>
14
     <version>0.0.1-SNAPSHOT</version>
14
     <version>0.0.1-SNAPSHOT</version>
15
     <name>etl-camel-huge</name>
15
     <name>etl-camel-huge</name>
16
     <description>tool or scheme that resolve data source integration for all of the gct software</description>
16
     <description>tool or scheme that resolve data source integration for all of the gct software</description>

+ 6 - 6
src/main/java/com/gct/tools/etlcamelhuge/routeconfig/CamelJDBCConfiguration.java

@@ -447,8 +447,8 @@ public class CamelJDBCConfiguration /*extends RouteBuilder*/ {
447
                         .setBody(simple("SELECT well_id wellid FROM centralbase.sys_access_well_control where access_status = '1' and error_id = '1' "))
447
                         .setBody(simple("SELECT well_id wellid FROM centralbase.sys_access_well_control where access_status = '1' and error_id = '1' "))
448
                         .to("jdbc:centralbase")
448
                         .to("jdbc:centralbase")
449
                         .split(body())
449
                         .split(body())
450
-//                        .setBody(simple("select v.WELL_COMMON_NAME jh,v.PROD_DATE rq,v.OIL_PRODUCTION_METHOD cyfs,v.PUMP_DIAMETER yz,v.BACK_PRES hysx,v.MAX_TUBING_PRES yysx,v.MAX_CASING_PRES tysx,v.PUMP_DEPTH bs from V_PC_PRO_COM_DAILY_HYS_CYYC_A2 v  where  v.PROD_DATE = to_date('${header.date}','yyyy-MM-dd')  and  v.WELL_COMMON_NAME = '${body[wellid]}' "))
451
-                       .setBody(simple("select v.WELL_COMMON_NAME jh,v.PROD_DATE rq,v.OIL_PRODUCTION_METHOD cyfs,v.PUMP_DIAMETER yz,v.BACK_PRES hysx,v.MAX_TUBING_PRES yysx,v.MAX_CASING_PRES tysx,v.PUMP_DEPTH bs from V_PC_PRO_COM_DAILY_HYS_CYYC v  where  v.PROD_DATE = to_date('${header.date}','yyyy-MM-dd')  and  v.WELL_COMMON_NAME = '${body[wellid]}' "))
450
+//                        .setBody(simple("select v.WELL_COMMON_NAME jh,v.PROD_DATE rq,v.OIL_PRODUCTION_METHOD cyfs,v.PUMP_DIAMETER yz,v.BACK_PRES hysx,v.MAX_TUBING_PRES yysx,v.MAX_CASING_PRES tysx,v.PUMP_DEPTH bs from V_PC_PRO_COM_DAILY_HYS_A2 v  where  v.PROD_DATE = to_date('${header.date}','yyyy-MM-dd')  and  v.WELL_COMMON_NAME = '${body[wellid]}' "))
451
+                       .setBody(simple("select v.WELL_COMMON_NAME jh,v.PROD_DATE rq,v.OIL_PRODUCTION_METHOD cyfs,v.PUMP_DIAMETER yz,v.BACK_PRES hysx,v.MAX_TUBING_PRES yysx,v.MAX_CASING_PRES tysx,v.PUMP_DEPTH bs from V_PC_PRO_COM_DAILY_HYS v  where  v.PROD_DATE = to_date('${header.date}','yyyy-MM-dd')  and  v.WELL_COMMON_NAME = '${body[wellid]}' "))
452
                         .to("jdbc:oracle_A2")
452
                         .to("jdbc:oracle_A2")
453
                         .split(body()).process(exchange -> {
453
                         .split(body()).process(exchange -> {
454
                     Message in = exchange.getIn();
454
                     Message in = exchange.getIn();
@@ -485,14 +485,14 @@ public class CamelJDBCConfiguration /*extends RouteBuilder*/ {
485
                         .setBody(simple("SELECT well_id wellid FROM centralbase.sys_access_well_control where access_status = '1' and error_id = '1' "))
485
                         .setBody(simple("SELECT well_id wellid FROM centralbase.sys_access_well_control where access_status = '1' and error_id = '1' "))
486
                         .to("jdbc:centralbase")
486
                         .to("jdbc:centralbase")
487
                         .split(body())
487
                         .split(body())
488
-//                        .setBody(simple("select  WELL_COMMON_NAME jh, PROD_DATE rq,PROD_TIME scsj, LIQ_PROD_DAILY rcyl1,OIL_PROD_DAILY rcyl,GAS_PROD_DAILY rcql,WATER_CUT hs,REMARKS bz from V_PC_PRO_COM_DAILY_HYS_CYYC_A2 where prod_date = to_date('${header.date}','yyyy-MM-dd') and WELL_COMMON_NAME = '${body[wellid]}'"))
489
-//                        .setBody(simple("select  WELL_COMMON_NAME jh, PROD_DATE rq,PROD_TIME scsj, LIQ_PROD_DAILY rcyl1,OIL_PROD_DAILY rcyl,GAS_PROD_DAILY rcql,WATER_CUT hs,REMARKS bz from V_PC_PRO_COM_DAILY_HYS_CYYC where prod_date = to_date('${header.date}','yyyy-MM-dd') and WELL_COMMON_NAME = '${body[wellid]}' and LIQ_PROD_DAILY >0 "))
488
+//                        .setBody(simple("select  WELL_COMMON_NAME jh, PROD_DATE rq,PROD_TIME scsj, LIQ_PROD_DAILY rcyl1,OIL_PROD_DAILY rcyl,GAS_PROD_DAILY rcql,WATER_CUT hs,REMARKS bz from V_PC_PRO_COM_DAILY_HYS_A2 where prod_date = to_date('${header.date}','yyyy-MM-dd') and WELL_COMMON_NAME = '${body[wellid]}'"))
489
+//                        .setBody(simple("select  WELL_COMMON_NAME jh, PROD_DATE rq,PROD_TIME scsj, LIQ_PROD_DAILY rcyl1,OIL_PROD_DAILY rcyl,GAS_PROD_DAILY rcql,WATER_CUT hs,REMARKS bz from V_PC_PRO_COM_DAILY_HYS where prod_date = to_date('${header.date}','yyyy-MM-dd') and WELL_COMMON_NAME = '${body[wellid]}' and LIQ_PROD_DAILY >0 "))
490
                         .setBody(simple("select  WELL_COMMON_NAME jh,\n" +
490
                         .setBody(simple("select  WELL_COMMON_NAME jh,\n" +
491
                                 "                       PROD_DATE rq,\n" +
491
                                 "                       PROD_DATE rq,\n" +
492
                                 "                       PROD_TIME scsj,\n" +
492
                                 "                       PROD_TIME scsj,\n" +
493
-                                "                       (select  sum(LIQ_PROD_DAILY) from V_PC_PRO_COM_DAILY_HYS_CYYC where prod_date = to_date('${header.date}','yyyy-MM-dd') and WELL_COMMON_NAME = '${body[wellid]}') rcyl1,\n" +
493
+                                "                       (select  sum(LIQ_PROD_DAILY) from V_PC_PRO_COM_DAILY_HYS where prod_date = to_date('${header.date}','yyyy-MM-dd') and WELL_COMMON_NAME = '${body[wellid]}') rcyl1,\n" +
494
                                 "                       OIL_PROD_DAILY rcyl,GAS_PROD_DAILY rcql,WATER_CUT hs,REMARKS bz\n" +
494
                                 "                       OIL_PROD_DAILY rcyl,GAS_PROD_DAILY rcql,WATER_CUT hs,REMARKS bz\n" +
495
-                            "                       from   V_PC_PRO_COM_DAILY_HYS_CYYC\n" +
495
+                            "                       from   V_PC_PRO_COM_DAILY_HYS\n" +
496
                             "                       where prod_date = to_date('${header.date}','yyyy-MM-dd')\n" +
496
                             "                       where prod_date = to_date('${header.date}','yyyy-MM-dd')\n" +
497
                             "                       and WELL_COMMON_NAME = '${body[wellid]}'  "))
497
                             "                       and WELL_COMMON_NAME = '${body[wellid]}'  "))
498
                         .to("jdbc:oracle_A2")
498
                         .to("jdbc:oracle_A2")

+ 1 - 1
src/main/resources/application-pro.yml

@@ -163,7 +163,7 @@ management:
163
       cors:
163
       cors:
164
         allow-credentials: off
164
         allow-credentials: off
165
 server:
165
 server:
166
-  port: 21015
166
+  port: 21016
167
 
167
 
168
 
168
 
169
 rocketmq:
169
 rocketmq: