流量计增加加入各类接口
This commit is contained in:
parent
3faf22b8b2
commit
8688af7e88
|
|
@ -2,6 +2,7 @@ package org.jeecg.modules.appmana.utils;
|
|||
|
||||
import com.alibaba.fastjson.JSONArray;
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.jeecg.common.constant.DeviceReadConstants;
|
||||
import org.jeecg.common.constant.IotConstants;
|
||||
|
|
@ -26,6 +27,7 @@ import java.time.LocalTime;
|
|||
import java.time.format.DateTimeFormatter;
|
||||
import java.util.*;
|
||||
|
||||
@Slf4j
|
||||
public class CommonUtils {
|
||||
|
||||
|
||||
|
|
@ -306,7 +308,7 @@ w * @param pageNo 非必传,虫情孢子类,杀虫灯传入
|
|||
try {
|
||||
for (Field field : fields) {
|
||||
field.setAccessible(true);
|
||||
if (field.getName().startsWith("data") && !field.getName().equals("dataDateTime") && !field.getName().equals("dataGatherType")) {
|
||||
if ((field.getName().startsWith("data") || field.getName().startsWith("sData")) && !field.getName().equals("dataDateTime") && !field.getName().equals("dataGatherType")) {
|
||||
Object values = field.get(transdataFlowmeter);
|
||||
if (values != null) {
|
||||
String val = values.toString();
|
||||
|
|
|
|||
Loading…
Reference in New Issue