Commit afdd1ef36f4490aa150afd2015b249b03d565c65

Authored by yiming
1 parent 1a30b3f9

kafka推送加lineId

src/main/java/com/example/demo/model/TJRL.java
@@ -48,6 +48,7 @@ public class TJRL implements Cloneable { @@ -48,6 +48,7 @@ public class TJRL implements Cloneable {
48 private String ACTUAL_ARRIVE_TIME;// VARCHAR2(100) Y 实际到达时间实际到达时间 48 private String ACTUAL_ARRIVE_TIME;// VARCHAR2(100) Y 实际到达时间实际到达时间
49 private String TRAD_ID; 49 private String TRAD_ID;
50 private String COUNT;//计数器 50 private String COUNT;//计数器
  51 + private String lineId;
51 public TJRL(){ 52 public TJRL(){
52 53
53 } 54 }
@@ -391,4 +392,12 @@ public class TJRL implements Cloneable { @@ -391,4 +392,12 @@ public class TJRL implements Cloneable {
391 public Object clone() throws CloneNotSupportedException { 392 public Object clone() throws CloneNotSupportedException {
392 return super.clone(); 393 return super.clone();
393 } 394 }
  395 +
  396 + public String getLineId() {
  397 + return lineId;
  398 + }
  399 +
  400 + public void setLineId(String lineId) {
  401 + this.lineId = lineId;
  402 + }
394 } 403 }
src/main/java/com/example/demo/service/Contrast.java
@@ -257,6 +257,7 @@ public class Contrast { @@ -257,6 +257,7 @@ public class Contrast {
257 } 257 }
258 258
259 if (scheduling!=null) { 259 if (scheduling!=null) {
  260 + data.setLineId(scheduling.getXl_bm());
260 data.setSTATION_FLAG("1"); 261 data.setSTATION_FLAG("1");
261 data.setTJRLUNITID(scheduling.getGs_name()); 262 data.setTJRLUNITID(scheduling.getGs_name());
262 data.setTJRLSTATID(scheduling.getXl_name()); 263 data.setTJRLSTATID(scheduling.getXl_name());