|
@@ -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);
|