修改活度浓度对比分析返回的数据结构
This commit is contained in:
parent
1a53e4f1c6
commit
989710266b
|
|
@ -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});
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user