|
@@ -1,7 +1,6 @@
|
|
|
package com.example.opc_da.task;
|
|
|
|
|
|
import com.alibaba.fastjson.JSON;
|
|
|
-import com.alibaba.fastjson.JSONObject;
|
|
|
import com.example.opc_common.entity.*;
|
|
|
import com.example.opc_common.enums.ResultEnum;
|
|
|
import com.example.opc_common.exception.CustomException;
|
|
@@ -26,7 +25,6 @@ import org.springframework.stereotype.Component;
|
|
|
|
|
|
import java.math.BigDecimal;
|
|
|
import java.util.*;
|
|
|
-import java.util.stream.Collectors;
|
|
|
|
|
|
@Slf4j
|
|
|
@Component
|
|
@@ -162,7 +160,6 @@ public class OpcDaTask {
|
|
|
Map<String, Object> val = OpcDaUtil.getVal(itemMap.getValue());
|
|
|
String javaType = val.get("javaType").toString();
|
|
|
Object value = val.get("value");
|
|
|
- JSONObject jsonObject = new JSONObject();
|
|
|
if (javaType.toLowerCase().equals("boolean")) {
|
|
|
AttachRawData attachRawData = new AttachRawData(
|
|
|
id, dataSource.getId(), keyId, javaType, value.toString(), value.toString(), DateUtil.dateChangeStrYmdhmss(time), new Date()
|