1.调整实体解决科学计数法的问题

This commit is contained in:
wr
2024-12-19 20:47:21 +08:00
parent d37d44123f
commit b0f54b0cde
4 changed files with 26 additions and 26 deletions

View File

@@ -390,10 +390,10 @@ public class SocketDevResponseService {
(type + "b").equals(x.getChannelType()) ||
(type + "c").equals(x.getChannelType())
).collect(Collectors.toList());
Map<String, Float> sourceMap = sourceList.stream()
Map<String, Double> sourceMap = sourceList.stream()
.collect(Collectors.toMap(x -> x.getChannelType().toUpperCase().replace(type, "")
, SourceIssue.ChannelListDTO::getFAmp));
Map<String, Float> devMap = new HashMap<>(3);
Map<String, Double> devMap = new HashMap<>(3);
devMap.put("A", devData.getA());
devMap.put("B", devData.getB());
devMap.put("C", devData.getC());

View File

@@ -46,13 +46,13 @@ public class DevData {
@Data
public static class ListDTO {
@JSONField(name = "A", ordinal = 1)
private Float a;
private Double a;
@JSONField(name = "B", ordinal = 2)
private Float b;
private Double b;
@JSONField(name = "C", ordinal = 3)
private Float c;
private Double c;
@JSONField(name = "T", ordinal = 4)
private Float t;
private Double t;
}
}

View File

@@ -47,13 +47,13 @@ public class SourceCompareDev {
* 源数据
*/
@JSONField(ordinal = 5)
private Map<String, Float> sourceData;
private Map<String, Double> sourceData;
/**
* 装置数据
*/
@JSONField(ordinal = 6)
private Map<String, Float> DevData;
private Map<String, Double> DevData;
}