|
@@ -1,6 +1,7 @@
|
|
|
package com.lc.ibps.components.verification.model;
|
|
package com.lc.ibps.components.verification.model;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
+import com.alibaba.fastjson.annotation.JSONField;
|
|
|
import com.lc.ibps.components.poi.excel.entity.ExportParams;
|
|
import com.lc.ibps.components.poi.excel.entity.ExportParams;
|
|
|
import com.lc.ibps.components.poi.excel.entity.ImportParams;
|
|
import com.lc.ibps.components.poi.excel.entity.ImportParams;
|
|
|
import com.lc.ibps.components.poi.excel.entity.enmus.ExcelType;
|
|
import com.lc.ibps.components.poi.excel.entity.enmus.ExcelType;
|
|
@@ -30,13 +31,20 @@ public class InspectionItemVO {
|
|
|
private InspectionConfigVO config;
|
|
private InspectionConfigVO config;
|
|
|
|
|
|
|
|
//样本名 : 检查数据
|
|
//样本名 : 检查数据
|
|
|
- private Map<String, SpecimensCalcVO> record;
|
|
|
|
|
-
|
|
|
|
|
|
|
+ @JSONField(serialize = false)
|
|
|
|
|
+ private Map<String, SpecimensCalcVO> record = new HashMap<>();;
|
|
|
|
|
+ @JSONField(serialize = false)
|
|
|
private ItemCalcVO itemCalcVO;
|
|
private ItemCalcVO itemCalcVO;
|
|
|
-
|
|
|
|
|
|
|
+ @JSONField(serialize = false)
|
|
|
private boolean dataPass = false;
|
|
private boolean dataPass = false;
|
|
|
|
|
+ @JSONField(serialize = false)
|
|
|
private Map<String, List<String>> errorMessage = new HashMap<>();
|
|
private Map<String, List<String>> errorMessage = new HashMap<>();
|
|
|
-
|
|
|
|
|
|
|
+ public InspectionItemVO(InspectionConfigVO config,Map<String, double[]> data){
|
|
|
|
|
+ this.config = config;
|
|
|
|
|
+ this.dataPass = true;
|
|
|
|
|
+ setData(data);
|
|
|
|
|
+ buildItemCalcVO();
|
|
|
|
|
+ }
|
|
|
public InspectionItemVO(InspectionConfigVO config) {
|
|
public InspectionItemVO(InspectionConfigVO config) {
|
|
|
this.config = config;
|
|
this.config = config;
|
|
|
}
|
|
}
|
|
@@ -173,7 +181,6 @@ public class InspectionItemVO {
|
|
|
} else {
|
|
} else {
|
|
|
dataPass = true;
|
|
dataPass = true;
|
|
|
}
|
|
}
|
|
|
- record = new HashMap<>();
|
|
|
|
|
for (String sName : config.getSpecimensName()) {
|
|
for (String sName : config.getSpecimensName()) {
|
|
|
final xValue[] total = new xValue[config.getRepeatNum() * config.getDays()];
|
|
final xValue[] total = new xValue[config.getRepeatNum() * config.getDays()];
|
|
|
for (int j = 0; j < list.size(); j++) {
|
|
for (int j = 0; j < list.size(); j++) {
|
|
@@ -228,4 +235,23 @@ public class InspectionItemVO {
|
|
|
public ItemCalcVO getItemCalcVO() {
|
|
public ItemCalcVO getItemCalcVO() {
|
|
|
return itemCalcVO;
|
|
return itemCalcVO;
|
|
|
}
|
|
}
|
|
|
|
|
+ public Map<String, double[]> getData(){
|
|
|
|
|
+ Map<String, double[]> data = new HashMap<>();
|
|
|
|
|
+ for (String name : record.keySet()) {
|
|
|
|
|
+ data.put(name,record.get(name).getStoreData());
|
|
|
|
|
+ }
|
|
|
|
|
+ return data;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ private void setData(Map<String, double[]> map){
|
|
|
|
|
+ for (String name : map.keySet()){
|
|
|
|
|
+ final double[] data = map.get(name);
|
|
|
|
|
+ xValue[] d = new xValue[data.length];
|
|
|
|
|
+ for (int i = 0; i<data.length;i++){
|
|
|
|
|
+ d[i] = new xValue(data[i]);
|
|
|
|
|
+ }
|
|
|
|
|
+ record.put(name,new SpecimensCalcVO(d,config.isConvert()));
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
}
|
|
}
|