|
@@ -158,8 +158,8 @@ public class CamelJDBCCofRealTimeConfiguration {
|
158
|
158
|
in.setHeader("well_id",wellId);
|
159
|
159
|
sendDataToRocketMQ(wellName,wellId,prodDate,strokeLength,strokeFrequency,sgt);
|
160
|
160
|
})
|
161
|
|
- .setBody(simple("insert into centralbase.cb_temp_well_mech_runtime(well_id,prod_date,stroke_length,stroke_frequency,susp_max_load,susp_min_load,sgt) " +
|
162
|
|
- "select '${body[well_name]}','${body[dyna_create_time]}','${body[stroke]}','${body[frequency]}','${body[susp_max_load]}','${body[susp_min_load]}','${body[sgt]}' " +
|
|
161
|
+ .setBody(simple("insert into centralbase.cb_temp_well_mech_runtime(well_id,prod_date,susp_max_load,susp_min_load,sgt) " +
|
|
162
|
+ "select '${body[well_name]}','${body[dyna_create_time]}','${body[susp_max_load]}','${body[susp_min_load]}','${body[sgt]}' " +
|
163
|
163
|
"where NOT EXISTS (SELECT * FROM centralbase.cb_temp_well_mech_runtime WHERE well_id = '${body[well_name]}' and prod_date = '${body[dyna_create_time]}' )"))
|
164
|
164
|
.to("jdbc:centralbase")
|
165
|
165
|
.setBody(simple("update centralbase.sys_access_well_control set sgt_last_time = '${header.sgt_last_time}' where well_id ='${header.well_id}' "))
|