|
|
|
@ -1190,6 +1190,23 @@ public class EntrustServiceImpl extends BaseServiceImpl<EntrustMapper, Entrust> |
|
|
|
// 如果是布鲁氏检测
|
|
|
|
// 如果是布鲁氏检测
|
|
|
|
if ("2".equals(byId.getInputMode())) { |
|
|
|
if ("2".equals(byId.getInputMode())) { |
|
|
|
List<ExamineTemplate2Excel> list = JSON.parseArray(examineResult.getExamineDataArr(), ExamineTemplate2Excel.class); |
|
|
|
List<ExamineTemplate2Excel> list = JSON.parseArray(examineResult.getExamineDataArr(), ExamineTemplate2Excel.class); |
|
|
|
|
|
|
|
// 阴阳性数量
|
|
|
|
|
|
|
|
long yin = list.stream().filter((ExamineTemplate2Excel e) -> "阴性".equals(e.getResult())).count(); |
|
|
|
|
|
|
|
long yang = list.stream().filter((ExamineTemplate2Excel e) -> "阳性".equals(e.getResult())).count(); |
|
|
|
|
|
|
|
long keyi = list.stream().filter((ExamineTemplate2Excel e) -> "可疑".equals(e.getResult())).count(); |
|
|
|
|
|
|
|
ExamineTemplate2Excel examineTemplate2Excel1 = new ExamineTemplate2Excel(); |
|
|
|
|
|
|
|
ExamineTemplate2Excel examineTemplate2Excel2 = new ExamineTemplate2Excel(); |
|
|
|
|
|
|
|
ExamineTemplate2Excel examineTemplate2Excel3 = new ExamineTemplate2Excel(); |
|
|
|
|
|
|
|
examineTemplate2Excel1.setExperieNum("阴性数量"); |
|
|
|
|
|
|
|
examineTemplate2Excel1.setValue(String.valueOf(yin)); |
|
|
|
|
|
|
|
examineTemplate2Excel2.setExperieNum("阳性数量"); |
|
|
|
|
|
|
|
examineTemplate2Excel2.setValue(String.valueOf(yang)); |
|
|
|
|
|
|
|
examineTemplate2Excel3.setExperieNum("可疑数量"); |
|
|
|
|
|
|
|
examineTemplate2Excel3.setValue(String.valueOf(keyi)); |
|
|
|
|
|
|
|
list.add(examineTemplate2Excel1); |
|
|
|
|
|
|
|
list.add(examineTemplate2Excel2); |
|
|
|
|
|
|
|
list.add(examineTemplate2Excel3); |
|
|
|
|
|
|
|
|
|
|
|
if (list.size() > 0) { |
|
|
|
if (list.size() > 0) { |
|
|
|
Map<String, List<ExamineTemplate2Excel>> resultMap = new HashMap<>(); |
|
|
|
Map<String, List<ExamineTemplate2Excel>> resultMap = new HashMap<>(); |
|
|
|
int count = 0; |
|
|
|
int count = 0; |
|
|
|
@ -1245,6 +1262,18 @@ public class EntrustServiceImpl extends BaseServiceImpl<EntrustMapper, Entrust> |
|
|
|
// PCR检测
|
|
|
|
// PCR检测
|
|
|
|
else if ("4".equals(byId.getInputMode())) { |
|
|
|
else if ("4".equals(byId.getInputMode())) { |
|
|
|
List<PCR2Excel> list = JSON.parseArray(examineResult.getExamineDataArr(), PCR2Excel.class); |
|
|
|
List<PCR2Excel> list = JSON.parseArray(examineResult.getExamineDataArr(), PCR2Excel.class); |
|
|
|
|
|
|
|
// 阴阳性数量
|
|
|
|
|
|
|
|
long yin = list.stream().filter((PCR2Excel e) -> "阴性".equals(e.getValue())).count(); |
|
|
|
|
|
|
|
long yang = list.stream().filter((PCR2Excel e) -> " 阳性".equals(e.getValue())).count(); |
|
|
|
|
|
|
|
PCR2Excel pcr2Excel1 = new PCR2Excel(); |
|
|
|
|
|
|
|
PCR2Excel pcr2Excel2 = new PCR2Excel(); |
|
|
|
|
|
|
|
pcr2Excel1.setExperieNum("阴性数量"); |
|
|
|
|
|
|
|
pcr2Excel1.setCtValue(String.valueOf(yin)); |
|
|
|
|
|
|
|
pcr2Excel2.setExperieNum("阳性数量"); |
|
|
|
|
|
|
|
pcr2Excel2.setCtValue(String.valueOf(yang)); |
|
|
|
|
|
|
|
list.add(pcr2Excel1); |
|
|
|
|
|
|
|
list.add(pcr2Excel2); |
|
|
|
|
|
|
|
|
|
|
|
if (list.size() > 0) { |
|
|
|
if (list.size() > 0) { |
|
|
|
Map<String, List<PCR2Excel>> resultMap = new HashMap<>(); |
|
|
|
Map<String, List<PCR2Excel>> resultMap = new HashMap<>(); |
|
|
|
int count = 0; |
|
|
|
int count = 0; |
|
|
|
@ -1363,6 +1392,17 @@ public class EntrustServiceImpl extends BaseServiceImpl<EntrustMapper, Entrust> |
|
|
|
// XN检测
|
|
|
|
// XN检测
|
|
|
|
else if ("5".equals(byId.getInputMode())) { |
|
|
|
else if ("5".equals(byId.getInputMode())) { |
|
|
|
List<XN2Excel> list = JSON.parseArray(examineResult.getExamineDataArr(), XN2Excel.class); |
|
|
|
List<XN2Excel> list = JSON.parseArray(examineResult.getExamineDataArr(), XN2Excel.class); |
|
|
|
|
|
|
|
// 阴阳性数量
|
|
|
|
|
|
|
|
long yin = list.stream().filter((XN2Excel e) -> "阴性".equals(e.getValue())).count(); |
|
|
|
|
|
|
|
long yang = list.stream().filter((XN2Excel e) -> "阳性".equals(e.getValue())).count(); |
|
|
|
|
|
|
|
XN2Excel xn2Excel1 = new XN2Excel(); |
|
|
|
|
|
|
|
XN2Excel xn2Excel2 = new XN2Excel(); |
|
|
|
|
|
|
|
xn2Excel1.setExperieNum("阴性数量"); |
|
|
|
|
|
|
|
xn2Excel1.setCtValue(String.valueOf(yin)); |
|
|
|
|
|
|
|
xn2Excel2.setExperieNum("阳性数量"); |
|
|
|
|
|
|
|
xn2Excel2.setCtValue(String.valueOf(yang)); |
|
|
|
|
|
|
|
list.add(xn2Excel1); |
|
|
|
|
|
|
|
list.add(xn2Excel2); |
|
|
|
if (list.size() > 0) { |
|
|
|
if (list.size() > 0) { |
|
|
|
Map<String, List<XN2Excel>> resultMap = new HashMap<>(); |
|
|
|
Map<String, List<XN2Excel>> resultMap = new HashMap<>(); |
|
|
|
int count = 0; |
|
|
|
int count = 0; |
|
|
|
@ -1524,6 +1564,17 @@ public class EntrustServiceImpl extends BaseServiceImpl<EntrustMapper, Entrust> |
|
|
|
examineDataArrVO.setResult(""); |
|
|
|
examineDataArrVO.setResult(""); |
|
|
|
list1.add(examineDataArrVO); |
|
|
|
list1.add(examineDataArrVO); |
|
|
|
list1.addAll(voList); |
|
|
|
list1.addAll(voList); |
|
|
|
|
|
|
|
// 阴阳性数量
|
|
|
|
|
|
|
|
long yin = list1.stream().filter((ExamineDataArrVO e) -> "阴性".equals(e.getResult())).count(); |
|
|
|
|
|
|
|
long yang = list1.stream().filter((ExamineDataArrVO e) -> "阳性".equals(e.getResult())).count(); |
|
|
|
|
|
|
|
ExamineDataArrVO dataArrVO1 = new ExamineDataArrVO(); |
|
|
|
|
|
|
|
ExamineDataArrVO dataArrVO2 = new ExamineDataArrVO(); |
|
|
|
|
|
|
|
dataArrVO1.setNum("阴性数量"); |
|
|
|
|
|
|
|
dataArrVO1.setValue(String.valueOf(yin)); |
|
|
|
|
|
|
|
dataArrVO2.setNum("阳性数量"); |
|
|
|
|
|
|
|
dataArrVO2.setValue(String.valueOf(yang)); |
|
|
|
|
|
|
|
list1.add(dataArrVO1); |
|
|
|
|
|
|
|
list1.add(dataArrVO2); |
|
|
|
|
|
|
|
|
|
|
|
if (list1.size() > 0) { |
|
|
|
if (list1.size() > 0) { |
|
|
|
Map<String, List<ExamineDataArrVO>> resultMap = new HashMap<>(); |
|
|
|
Map<String, List<ExamineDataArrVO>> resultMap = new HashMap<>(); |
|
|
|
@ -1808,6 +1859,18 @@ public class EntrustServiceImpl extends BaseServiceImpl<EntrustMapper, Entrust> |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 阴阳性数量
|
|
|
|
|
|
|
|
long yin = list1.stream().filter((ExamineDataArrVO e) -> "阴性".equals(e.getResult())).count(); |
|
|
|
|
|
|
|
long yang = list1.stream().filter((ExamineDataArrVO e) -> "阳性".equals(e.getResult())).count(); |
|
|
|
|
|
|
|
ExamineDataArrVO dataArrVO1 = new ExamineDataArrVO(); |
|
|
|
|
|
|
|
ExamineDataArrVO dataArrVO2 = new ExamineDataArrVO(); |
|
|
|
|
|
|
|
dataArrVO1.setNum("阴性数量"); |
|
|
|
|
|
|
|
dataArrVO1.setValue(String.valueOf(yin)); |
|
|
|
|
|
|
|
dataArrVO2.setNum("阳性数量"); |
|
|
|
|
|
|
|
dataArrVO2.setValue(String.valueOf(yang)); |
|
|
|
|
|
|
|
list1.add(dataArrVO1); |
|
|
|
|
|
|
|
list1.add(dataArrVO2); |
|
|
|
|
|
|
|
|
|
|
|
if (list1.size() > 0) { |
|
|
|
if (list1.size() > 0) { |
|
|
|
Map<String, List<ExamineDataArrVO>> resultMap = new HashMap<>(); |
|
|
|
Map<String, List<ExamineDataArrVO>> resultMap = new HashMap<>(); |
|
|
|
int count = 0; |
|
|
|
int count = 0; |
|
|
|
@ -2089,6 +2152,18 @@ public class EntrustServiceImpl extends BaseServiceImpl<EntrustMapper, Entrust> |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 阴阳性数量
|
|
|
|
|
|
|
|
long yin = list1.stream().filter((ExamineDataArrVO e) -> "阴性".equals(e.getResult())).count(); |
|
|
|
|
|
|
|
long yang = list1.stream().filter((ExamineDataArrVO e) -> "阳性".equals(e.getResult())).count(); |
|
|
|
|
|
|
|
ExamineDataArrVO dataArrVO1 = new ExamineDataArrVO(); |
|
|
|
|
|
|
|
ExamineDataArrVO dataArrVO2 = new ExamineDataArrVO(); |
|
|
|
|
|
|
|
dataArrVO1.setNum("阴性数量"); |
|
|
|
|
|
|
|
dataArrVO1.setValue(String.valueOf(yin)); |
|
|
|
|
|
|
|
dataArrVO2.setNum("阳性数量"); |
|
|
|
|
|
|
|
dataArrVO2.setValue(String.valueOf(yang)); |
|
|
|
|
|
|
|
list1.add(dataArrVO1); |
|
|
|
|
|
|
|
list1.add(dataArrVO2); |
|
|
|
|
|
|
|
|
|
|
|
if (list1.size() > 0) { |
|
|
|
if (list1.size() > 0) { |
|
|
|
Map<String, List<ExamineDataArrVO>> resultMap = new HashMap<>(); |
|
|
|
Map<String, List<ExamineDataArrVO>> resultMap = new HashMap<>(); |
|
|
|
int count = 0; |
|
|
|
int count = 0; |
|
|
|
@ -2363,7 +2438,8 @@ public class EntrustServiceImpl extends BaseServiceImpl<EntrustMapper, Entrust> |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} else { |
|
|
|
} |
|
|
|
|
|
|
|
else { |
|
|
|
for (int i = 0; i < list.size() / 96 + 1; i++) { |
|
|
|
for (int i = 0; i < list.size() / 96 + 1; i++) { |
|
|
|
double a1 = Double.parseDouble(list.get(i * 96).getOriginResult()); |
|
|
|
double a1 = Double.parseDouble(list.get(i * 96).getOriginResult()); |
|
|
|
double b1 = Double.parseDouble(list.get((i * 96) + 1).getOriginResult()); |
|
|
|
double b1 = Double.parseDouble(list.get((i * 96) + 1).getOriginResult()); |
|
|
|
@ -2394,6 +2470,18 @@ public class EntrustServiceImpl extends BaseServiceImpl<EntrustMapper, Entrust> |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 阴阳性数量
|
|
|
|
|
|
|
|
long yin = list1.stream().filter((ExamineDataArrVO e) -> "阴性".equals(e.getResult())).count(); |
|
|
|
|
|
|
|
long yang = list1.stream().filter((ExamineDataArrVO e) -> "阳性".equals(e.getResult())).count(); |
|
|
|
|
|
|
|
ExamineDataArrVO dataArrVO1 = new ExamineDataArrVO(); |
|
|
|
|
|
|
|
ExamineDataArrVO dataArrVO2 = new ExamineDataArrVO(); |
|
|
|
|
|
|
|
dataArrVO1.setNum("阴性数量"); |
|
|
|
|
|
|
|
dataArrVO1.setValue(String.valueOf(yin)); |
|
|
|
|
|
|
|
dataArrVO2.setNum("阳性数量"); |
|
|
|
|
|
|
|
dataArrVO2.setValue(String.valueOf(yang)); |
|
|
|
|
|
|
|
list1.add(dataArrVO1); |
|
|
|
|
|
|
|
list1.add(dataArrVO2); |
|
|
|
|
|
|
|
|
|
|
|
if (list1.size() > 0) { |
|
|
|
if (list1.size() > 0) { |
|
|
|
Map<String, List<ExamineDataArrVO>> resultMap = new HashMap<>(); |
|
|
|
Map<String, List<ExamineDataArrVO>> resultMap = new HashMap<>(); |
|
|
|
int count = 0; |
|
|
|
int count = 0; |
|
|
|
|