Ver Fonte

Accept Merge Request #2: (feature/bsj-batch-location -> release)
Merge Request: 808补传协议传入kafka
Created By: @刘卫东
Accepted By: @刘卫东
URL: https://xdata-01.coding.net/p/data-acceptance/d/data-acceptance/git/merge/2

刘卫东 há 5 anos atrás
pai
commit
75d603cc8a

+ 2 - 1
src/main/java/com/tidecloud/dataacceptance/service/impl/BSJGpsServerHandler.java

@@ -68,7 +68,8 @@ public class BSJGpsServerHandler extends HexBinaryAcceptanceHandlerAdapter {
 			packageData.setDeviceId(deviceId);
 			//发送数据到kafka
 			final MsgHeader header = packageData.getMsgHeader();
-			if (Constants.MSG_TERMINAL_LOCATION_INFO_UPLOAD == header.getMsgId()) {
+			if (Constants.MSG_TERMINAL_LOCATION_INFO_UPLOAD == header.getMsgId()
+					|| Constants.MSG_TERMINAL_LOCATION_INFO_BATCH_UPLOAD == header.getMsgId()) {
 				sendMsg2Kafka(dataByteArray, packageData.getDeviceId(), channel);
 			}
 			this.processPackageData(packageData);