lims流程性问题

dev
litao 3 years ago
parent 36fb49a8cc
commit 57fed63674
  1. 60
      lab-service/lab-lims/src/main/java/org/springblade/lims/service/impl/EntrustServiceImpl.java

@ -724,9 +724,15 @@ public class EntrustServiceImpl extends BaseServiceImpl<EntrustMapper, Entrust>
String result = "";
for (int i = 0; i < currExamResVoList.size(); i++) {
ExamineResultVo resultVo = currExamResVoList.get(i);
num += resultVo.getNum() + ",";
value += resultVo.getValue() + ",";
result += resultVo.getResult() + ",";
if (i == currExamResVoList.size() - 1) {
num += resultVo.getNum();
value += resultVo.getValue();
result += resultVo.getResult();
} else {
num += resultVo.getNum() + ",";
value += resultVo.getValue() + ",";
result += resultVo.getResult() + ",";
}
}
row.put("num" + index, num);
row.put("value" + index, value);
@ -1195,7 +1201,7 @@ public class EntrustServiceImpl extends BaseServiceImpl<EntrustMapper, Entrust>
// result.put("13", examineBasis.getContent().replace("$", "(char)11"));
// }
// 结果判定方法和依据
result.put("13", examineResult.getExamineBasisContent().replace("$", "(char)11"));
result.put("13", examineResult.getExamineBasisContent().replace("$", "\n"));
String path = sysClient.getParamValue("electronic_signature_real_path").getData();
// 检测人
if (!"".equals(examine.getExamineBy()) && examine.getExamineBy() != null) {
@ -1932,9 +1938,9 @@ public class EntrustServiceImpl extends BaseServiceImpl<EntrustMapper, Entrust>
ExamineDataArrVO dataArrVO1 = new ExamineDataArrVO();
ExamineDataArrVO dataArrVO2 = new ExamineDataArrVO();
dataArrVO1.setNum("阴性数量");
dataArrVO1.setValue(String.valueOf(yin));
dataArrVO1.setLog2(String.valueOf(yin));
dataArrVO2.setNum("阳性数量");
dataArrVO2.setValue(String.valueOf(yang));
dataArrVO2.setLog2(String.valueOf(yang));
list1.add(dataArrVO1);
list1.add(dataArrVO2);
@ -1965,15 +1971,15 @@ public class EntrustServiceImpl extends BaseServiceImpl<EntrustMapper, Entrust>
for (int i = 0; i < voList.size() / 3; i++) {
Map<String, Object> map = new HashMap<>();
map.put("num1", voList.get(i).getNum());
map.put("value1", voList.get(i).getValue());
map.put("log1", voList.get(i).getLog2());
map.put("result1", voList.get(i).getResult());
map.put("num2", voList.get(voList.size() / 3 + i).getNum());
map.put("value2", voList.get(voList.size() / 3 + i).getValue());
map.put("log2", voList.get(voList.size() / 3 + i).getLog2());
map.put("result2", voList.get(voList.size() / 3 + i).getResult());
map.put("num3", voList.get(voList.size() / 3 * 2 + i).getNum());
map.put("value3", voList.get(voList.size() / 3 * 2 + i).getValue());
map.put("log3", voList.get(voList.size() / 3 * 2 + i).getLog2());
map.put("result3", voList.get(voList.size() / 3 * 2 + i).getResult());
resultList1.add(map);
}
@ -1982,28 +1988,28 @@ public class EntrustServiceImpl extends BaseServiceImpl<EntrustMapper, Entrust>
if (voList.size() % 3 == 1) {
Map<String, Object> map = new HashMap<>();
map.put("num1", voList.get(i).getNum());
map.put("value1", voList.get(i).getValue());
map.put("log1", voList.get(i).getLog2());
map.put("result1", voList.get(i).getResult());
if (i < voList.size() / 3) {
map.put("num2", voList.get(voList.size() / 3 + i + 1).getNum());
map.put("value2", voList.get(voList.size() / 3 + i + 1).getValue());
map.put("log2", voList.get(voList.size() / 3 + i + 1).getLog2());
map.put("result2", voList.get(voList.size() / 3 + i + 1).getResult());
map.put("num3", voList.get(voList.size() / 3 * 2 + i + 1).getNum());
map.put("value3", voList.get(voList.size() / 3 * 2 + i + 1).getValue());
map.put("log3", voList.get(voList.size() / 3 * 2 + i + 1).getLog2());
map.put("result3", voList.get(voList.size() / 3 * 2 + i + 1).getResult());
}
resultList1.add(map);
} else if (voList.size() % 3 == 2) {
Map<String, Object> map = new HashMap<>();
map.put("num1", voList.get(i).getNum());
map.put("value1", voList.get(i).getValue());
map.put("log1", voList.get(i).getLog2());
map.put("result1", voList.get(i).getResult());
map.put("num2", voList.get(voList.size() / 3 + i + 1).getNum());
map.put("value2", voList.get(voList.size() / 3 + i + 1).getValue());
map.put("log2", voList.get(voList.size() / 3 + i + 1).getLog2());
map.put("result2", voList.get(voList.size() / 3 + i + 1).getResult());
if (i < voList.size() / 3) {
map.put("num3", voList.get(voList.size() / 3 * 2 + i + 2).getNum());
map.put("value3", voList.get(voList.size() / 3 * 2 + i + 2).getValue());
map.put("log3", voList.get(voList.size() / 3 * 2 + i + 2).getLog2());
map.put("result3", voList.get(voList.size() / 3 * 2 + i + 2).getResult());
}
resultList1.add(map);
@ -2225,9 +2231,9 @@ public class EntrustServiceImpl extends BaseServiceImpl<EntrustMapper, Entrust>
ExamineDataArrVO dataArrVO1 = new ExamineDataArrVO();
ExamineDataArrVO dataArrVO2 = new ExamineDataArrVO();
dataArrVO1.setNum("阴性数量");
dataArrVO1.setValue(String.valueOf(yin));
dataArrVO1.setLog2(String.valueOf(yin));
dataArrVO2.setNum("阳性数量");
dataArrVO2.setValue(String.valueOf(yang));
dataArrVO2.setLog2(String.valueOf(yang));
list1.add(dataArrVO1);
list1.add(dataArrVO2);
@ -2258,15 +2264,15 @@ public class EntrustServiceImpl extends BaseServiceImpl<EntrustMapper, Entrust>
for (int i = 0; i < voList.size() / 3; i++) {
Map<String, Object> map = new HashMap<>();
map.put("num1", voList.get(i).getNum());
map.put("value1", voList.get(i).getValue());
map.put("log1", voList.get(i).getLog2());
map.put("result1", voList.get(i).getResult());
map.put("num2", voList.get(voList.size() / 3 + i).getNum());
map.put("value2", voList.get(voList.size() / 3 + i).getValue());
map.put("log2", voList.get(voList.size() / 3 + i).getLog2());
map.put("result2", voList.get(voList.size() / 3 + i).getResult());
map.put("num3", voList.get(voList.size() / 3 * 2 + i).getNum());
map.put("value3", voList.get(voList.size() / 3 * 2 + i).getValue());
map.put("log3", voList.get(voList.size() / 3 * 2 + i).getLog2());
map.put("result3", voList.get(voList.size() / 3 * 2 + i).getResult());
resultList1.add(map);
}
@ -2275,28 +2281,28 @@ public class EntrustServiceImpl extends BaseServiceImpl<EntrustMapper, Entrust>
if (voList.size() % 3 == 1) {
Map<String, Object> map = new HashMap<>();
map.put("num1", voList.get(i).getNum());
map.put("value1", voList.get(i).getValue());
map.put("log1", voList.get(i).getLog2());
map.put("result1", voList.get(i).getResult());
if (i < voList.size() / 3) {
map.put("num2", voList.get(voList.size() / 3 + i + 1).getNum());
map.put("value2", voList.get(voList.size() / 3 + i + 1).getValue());
map.put("log2", voList.get(voList.size() / 3 + i + 1).getLog2());
map.put("result2", voList.get(voList.size() / 3 + i + 1).getResult());
map.put("num3", voList.get(voList.size() / 3 * 2 + i + 1).getNum());
map.put("value3", voList.get(voList.size() / 3 * 2 + i + 1).getValue());
map.put("log3", voList.get(voList.size() / 3 * 2 + i + 1).getLog2());
map.put("result3", voList.get(voList.size() / 3 * 2 + i + 1).getResult());
}
resultList1.add(map);
} else if (voList.size() % 3 == 2) {
Map<String, Object> map = new HashMap<>();
map.put("num1", voList.get(i).getNum());
map.put("value1", voList.get(i).getValue());
map.put("log1", voList.get(i).getLog2());
map.put("result1", voList.get(i).getResult());
map.put("num2", voList.get(voList.size() / 3 + i + 1).getNum());
map.put("value2", voList.get(voList.size() / 3 + i + 1).getValue());
map.put("log2", voList.get(voList.size() / 3 + i + 1).getLog2());
map.put("result2", voList.get(voList.size() / 3 + i + 1).getResult());
if (i < voList.size() / 3) {
map.put("num3", voList.get(voList.size() / 3 * 2 + i + 2).getNum());
map.put("value3", voList.get(voList.size() / 3 * 2 + i + 2).getValue());
map.put("log3", voList.get(voList.size() / 3 * 2 + i + 2).getLog2());
map.put("result3", voList.get(voList.size() / 3 * 2 + i + 2).getResult());
}
resultList1.add(map);
@ -3193,7 +3199,6 @@ public class EntrustServiceImpl extends BaseServiceImpl<EntrustMapper, Entrust>
}
List<Map<String, Object>> resultList = new ArrayList<>();
Map<String, Object> map = new HashMap<>();
LambdaQueryWrapper<Examine> queryWrapper = new LambdaQueryWrapper<>();
queryWrapper.eq(Examine::getEntrustId, id);
@ -3201,6 +3206,7 @@ public class EntrustServiceImpl extends BaseServiceImpl<EntrustMapper, Entrust>
List<Examine> examineList = examineService.list(queryWrapper);
if (CollectionUtils.isNotEmpty(examineList)) {
for (Examine examine : examineList) {
Map<String, Object> map = new HashMap<>();
map.put("simpleName", examine.getSimpleName());
map.put("simpleCount", examine.getSimpleCount());
String[] split = examine.getExperieNum().split(",");

Loading…
Cancel
Save