Browse Source

0827-稳定版-完善(发送消息时可以不用wellList)1

gxt 3 years ago
parent
commit
ea60135d87

+ 1 - 1
src/main/java/com/gct/tools/etlcamelhuge/MQ/DefaultMsgSendSuccessCallBack.java

@@ -19,7 +19,7 @@ public class DefaultMsgSendSuccessCallBack implements SendSuccessCallBack {
19
     public static AtomicInteger count =new AtomicInteger(0);
19
     public static AtomicInteger count =new AtomicInteger(0);
20
     @Override
20
     @Override
21
     public void accept(SendResult sendResult) {
21
     public void accept(SendResult sendResult) {
22
-        System.out.println("send success= "+count.incrementAndGet());
22
+        //System.out.println("send success= "+count.incrementAndGet());
23
         //log.info("send msg success,msg:{}", sendResult.getMsgId());
23
         //log.info("send msg success,msg:{}", sendResult.getMsgId());
24
     }
24
     }
25
 }
25
 }

+ 1 - 1
src/main/java/com/gct/tools/etlcamelhuge/controller/GtController.java

@@ -86,7 +86,7 @@ public class GtController {
86
                 sgt = "0,0,0,0,0,0,0,0,0,0";
86
                 sgt = "0,0,0,0,0,0,0,0,0,0";
87
             }
87
             }
88
             DiagnoseMsg diagnoseMsg = new DiagnoseMsg(wellId, wellName, orgId, prodDate, sgt, LocalDateTime.now().toString(), strokeLength, strokeFrequency);
88
             DiagnoseMsg diagnoseMsg = new DiagnoseMsg(wellId, wellName, orgId, prodDate, sgt, LocalDateTime.now().toString(), strokeLength, strokeFrequency);
89
-            //producer.send((MessageBody) diagnoseMsg);
89
+            producer.send((MessageBody) diagnoseMsg);
90
             sumData++;
90
             sumData++;
91
         }
91
         }
92
         return sumData;
92
         return sumData;