|
@@ -103,6 +103,7 @@ public class EartagServiceImpl implements IEartagService {
|
|
|
|
|
|
@Override
|
|
|
public void handleEartag(JSONObject dataJo) throws ParseException {
|
|
|
+ System.out.println(dataJo);
|
|
|
//设备编码
|
|
|
String deviceCode = dataJo.getString("device");
|
|
|
//耳标号
|
|
@@ -620,7 +621,7 @@ public class EartagServiceImpl implements IEartagService {
|
|
|
// }
|
|
|
Map configMap = iBaseConfigService.getConfigValue("dropDataEartagOffLineTime", farmId, "0");
|
|
|
System.out.println("configMap 11111 >>>>>>>>>>>>>>>>>>>>> " + configMap);
|
|
|
- if (configMap == null) {
|
|
|
+ if (ObjectUtil.isEmpty(configMap)) {
|
|
|
log.error("耳标离线过程丢弃数据时长属性未配置.采用默认配置参数 eartagOfflineTime=" + eartagOfflineTime);
|
|
|
} else {
|
|
|
eartagOfflineTime = Integer.parseInt(configMap.get("configValue") + "");
|