소스 검색

对于位移没有数据,所有数据都在载荷中的特殊数据做特别处理

gxt 3 년 전
부모
커밋
c4ba62411a
1개의 변경된 파일0개의 추가작업 그리고 4개의 파일을 삭제
  1. 0 4
      src/main/java/com/gct/tools/etlcamelhuge/routeconfig/CamelJDBCCofRealTimeConfiguration.java

+ 0 - 4
src/main/java/com/gct/tools/etlcamelhuge/routeconfig/CamelJDBCCofRealTimeConfiguration.java

@@ -58,10 +58,6 @@ public class CamelJDBCCofRealTimeConfiguration  {
58 58
    // @Async
59 59
     public void sendDataToRocketMQ(String wellName, String wellId, String prodDate, Double stroke_length , Double stroke_frequency, String sgt){
60 60
         String orgId = "0";
61
-        prodDate = prodDate.substring(0,19);
62
-        if (sgt == null || sgt.length() ==0){
63
-            sgt = "0,0";
64
-        }
65 61
         DiagnoseMsg diagnoseMsg = new DiagnoseMsg(wellId, wellName, orgId, prodDate, sgt, LocalDateTime.now().toString(), stroke_length, stroke_frequency);
66 62
         sendMsgRunTime++;
67 63
         producer.send(diagnoseMsg);