| 
				
			 | 
			
			
				@@ -106,10 +106,14 @@ public class CamelJDBCCofRealTimeConfiguration { 
			 | 
		
	
		
			
			| 
				
					106
				
			 | 
			
				
					106
				
			 | 
			
			
				                         .split(body()).process(exchange -> { 
			 | 
		
	
		
			
			| 
				
					107
				
			 | 
			
				
					107
				
			 | 
			
			
				                             HashMap body = exchange.getIn().getBody(HashMap.class); 
			 | 
		
	
		
			
			| 
				
					108
				
			 | 
			
				
					108
				
			 | 
			
			
				                             exchange.getIn().setHeader("well_id", body.get("well_id")); 
			 | 
		
	
		
			
			| 
				
			 | 
			
				
					109
				
			 | 
			
			
				+//                            System.out.println(body.get("well_id")); 
			 | 
		
	
		
			
			| 
				
			 | 
			
				
					110
				
			 | 
			
			
				+                            if (Objects.isNull(body.get("sgt_last_time")))body.put("sgt_last_time" 
			 | 
		
	
		
			
			| 
				
			 | 
			
				
					111
				
			 | 
			
			
				+                                    ,LocalDateTime.now().minusHours(4).format(DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss"))); 
			 | 
		
	
		
			
			| 
				
					109
				
			 | 
			
				
					112
				
			 | 
			
			
				                             exchange.getIn().setHeader("sgt_last_time", body.get("sgt_last_time").toString().substring(0,19)); 
			 | 
		
	
		
			
			| 
				
					110
				
			 | 
			
				
					113
				
			 | 
			
			
				                         }) 
			 | 
		
	
		
			
			| 
				
					111
				
			 | 
			
				
					114
				
			 | 
			
			
				                         .setBody(simple("select WELL_ID,WELL_NAME,DYNA_CREATE_TIME,CHECK_DATE,DISPLACEMENT,DISP_LOAD,STROKE,FREQUENCY,SUSP_MAX_LOAD,SUSP_MIN_LOAD" + 
			 | 
		
	
		
			
			| 
				
					112
				
			 | 
			
				
			 | 
			
			
				-                                " from DEFAULT_GONGTU where well_id='${header.well_id}' and DYNA_CREATE_TIME >= to_date('${header.sgt_last_time}','yyyy-mm-dd hh24:mi:ss') and rownum<50 ")) 
			 | 
		
	
		
			
			| 
				
			 | 
			
				
					115
				
			 | 
			
			
				+                                " from DEFAULT_GONGTU where CHECK_DATE >= to_date('${header.sgt_last_time}','yyyy-mm-dd hh24:mi:ss') " + 
			 | 
		
	
		
			
			| 
				
			 | 
			
				
					116
				
			 | 
			
			
				+                                "and well_id='${header.well_id}' and  rownum<50 ")) 
			 | 
		
	
		
			
			| 
				
					113
				
			 | 
			
				
					117
				
			 | 
			
			
				                         .to("jdbc:oracle") 
			 | 
		
	
		
			
			| 
				
					114
				
			 | 
			
				
					118
				
			 | 
			
			
				                         .process(exchange -> { 
			 | 
		
	
		
			
			| 
				
					115
				
			 | 
			
				
					119
				
			 | 
			
			
				                             sendMsgRunTime = 0; 
			 | 
		
	
	
		
			
			| 
				
			 | 
			
			
				@@ -120,8 +124,15 @@ public class CamelJDBCCofRealTimeConfiguration { 
			 | 
		
	
		
			
			| 
				
					120
				
			 | 
			
				
					124
				
			 | 
			
			
				                             String prod_date = aRow.get("DYNA_CREATE_TIME").toString().split("\\+")[0]; 
			 | 
		
	
		
			
			| 
				
					121
				
			 | 
			
				
					125
				
			 | 
			
			
				                             aRow.put("DYNA_CREATE_TIME", prod_date); 
			 | 
		
	
		
			
			| 
				
					122
				
			 | 
			
				
					126
				
			 | 
			
			
				                             aRow.put("sgt", ""); 
			 | 
		
	
		
			
			| 
				
			 | 
			
				
					127
				
			 | 
			
			
				+                            //swap table error design column 
			 | 
		
	
		
			
			| 
				
			 | 
			
				
					128
				
			 | 
			
			
				+                            Object tempObj = aRow.get("STROKE"); 
			 | 
		
	
		
			
			| 
				
			 | 
			
				
					129
				
			 | 
			
			
				+                            aRow.put("STROKE",aRow.get("FREQUENCY")); 
			 | 
		
	
		
			
			| 
				
			 | 
			
				
					130
				
			 | 
			
			
				+                            aRow.put("FREQUENCY",tempObj); 
			 | 
		
	
		
			
			| 
				
					123
				
			 | 
			
				
					131
				
			 | 
			
			
				                             if (!StringUtils.isEmpty(aRow.get("DISPLACEMENT")) && !StringUtils.isEmpty(aRow.get("DISP_LOAD"))) { 
			 | 
		
	
		
			
			| 
				
					124
				
			 | 
			
				
					132
				
			 | 
			
			
				                                 String[] displacements =  clobToString((Clob) aRow.get("DISPLACEMENT")).split(",");//10 四舍五入 
			 | 
		
	
		
			
			| 
				
			 | 
			
				
					133
				
			 | 
			
			
				+                                for (int i = 0; i < displacements.length; i++) { 
			 | 
		
	
		
			
			| 
				
			 | 
			
				
					134
				
			 | 
			
			
				+                                    displacements[i] = Double.toString(Double.parseDouble(displacements[i])/10); 
			 | 
		
	
		
			
			| 
				
			 | 
			
				
					135
				
			 | 
			
			
				+                                } 
			 | 
		
	
		
			
			| 
				
					125
				
			 | 
			
				
					136
				
			 | 
			
			
				                                 String[] disp_loads = clobToString((Clob) aRow.get("DISP_LOAD")).split(","); 
			 | 
		
	
		
			
			| 
				
					126
				
			 | 
			
				
					137
				
			 | 
			
			
				                                 Double SUSP_MAX_LOAD = max(disp_loads); 
			 | 
		
	
		
			
			| 
				
					127
				
			 | 
			
				
					138
				
			 | 
			
			
				                                 Double SUSP_MIN_LOAD = min(disp_loads); 
			 | 
		
	
	
		
			
			| 
				
			 | 
			
			
				@@ -183,6 +194,7 @@ public class CamelJDBCCofRealTimeConfiguration { 
			 | 
		
	
		
			
			| 
				
					183
				
			 | 
			
				
					194
				
			 | 
			
			
				                             Double strokeLength = Double.valueOf(aRow.get("STROKE").toString()); 
			 | 
		
	
		
			
			| 
				
					184
				
			 | 
			
				
					195
				
			 | 
			
			
				                             Double strokeFrequency = Double.valueOf(aRow.get("FREQUENCY").toString()); 
			 | 
		
	
		
			
			| 
				
					185
				
			 | 
			
				
					196
				
			 | 
			
			
				                             String sgt = aRow.get("sgt").toString(); 
			 | 
		
	
		
			
			| 
				
			 | 
			
				
					197
				
			 | 
			
			
				+//                            System.out.println(sgt); 
			 | 
		
	
		
			
			| 
				
					186
				
			 | 
			
				
					198
				
			 | 
			
			
				                             in.setHeader("sgt_last_time", prodDate); 
			 | 
		
	
		
			
			| 
				
					187
				
			 | 
			
				
					199
				
			 | 
			
			
				                             in.setHeader("well_id", wellId); 
			 | 
		
	
		
			
			| 
				
					188
				
			 | 
			
				
					200
				
			 | 
			
			
				                             sendDataToRocketMQ(wellName, wellId, prodDate, strokeLength, strokeFrequency, sgt); 
			 |