修改活度浓度对比分析返回的数据结构

This commit is contained in:
duwenyuan 2025-12-18 14:54:08 +08:00
parent 1a53e4f1c6
commit 989710266b

View File

@ -610,11 +610,11 @@ public class SampleStatAnalysisService extends ServiceImpl<GardsSampleStatAnalys
double low = Math.max(conc - err, 0.01); double low = Math.max(conc - err, 0.01);
double high = conc + err; double high = conc + err;
Map<String, Object> detectionPoint = new HashMap<>(); Map<String, Object> detectionPoint = new LinkedHashMap<>();
detectionPoint.put("x", timeStr); detectionPoint.put("x", timeStr);
detectionPoint.put("y", conc); // 中心值 detectionPoint.put("y", conc); // 中心值
detectionPoint.put("low", low); // 下限可选方便前端 detectionPoint.put("low", err); // 下限可选方便前端
detectionPoint.put("high", high); // 上限可选 detectionPoint.put("high", err); // 上限可选
// 或者用 value + error 结构ECharts 某些系列支持 // 或者用 value + error 结构ECharts 某些系列支持
//detectionPoint.put("value", new double[]{conc, low, high}); //detectionPoint.put("value", new double[]{conc, low, high});