复检报告模板修改

dev
litao 2 years ago
parent d3aa6cbd9e
commit 2148f6c871
  1. 11
      lab-service/lab-lims/src/main/java/org/springblade/lims/service/impl/EntrustServiceImpl.java
  2. 2
      lab-service/lab-lims/src/main/java/org/springblade/lims/service/impl/ExamineResultServiceImpl.java

@ -391,7 +391,12 @@ public class EntrustServiceImpl extends BaseServiceImpl<EntrustMapper, Entrust>
if ("6".equals(examineWay.getInputMode())) {
reportMainBody.put("name" + i, examineItem.getName() + examineWay.getName());
} else {
reportMainBody.put("name" + i, examineItem.getName());
// 如果是复检需要加上“(复检)”
if (examine.getIsRecheck() != null && examine.getIsRecheck() == 1) {
reportMainBody.put("name" + i, examineItem.getName() + "(复检)");
} else {
reportMainBody.put("name" + i, examineItem.getName());
}
}
// 判断是哪种检测
// String inputMode = examineItem.getInputMode();
@ -1138,6 +1143,10 @@ public class EntrustServiceImpl extends BaseServiceImpl<EntrustMapper, Entrust>
private List<Map<String, Object>> fillExamineItemAndAll(List<Examine> examineList) {
List<Map<String, Object>> ItemAndAllList = new ArrayList<>();
for (Examine examine : examineList) {
// 如果是复检跳过
if (examine.getIsRecheck() != null && examine.getIsRecheck() == 1) {
continue;
}
HashMap<String, Object> map = new HashMap<>(4);
if (examine.getExamineItemId() != null) {
ExamineItem byId = examineItemService.getById(examine.getExamineItemId());

@ -436,7 +436,7 @@ public class ExamineResultServiceImpl extends BaseServiceImpl<ExamineResultMappe
}
if (pcr2Excels.size() > 0) {
pcr2Excels.sort(Comparator.comparing(pcr2Excel -> Integer.parseInt(pcr2Excel.getCtValue().replace(" ", ""))));
pcr2Excels.sort(Comparator.comparing(pcr2Excel -> Double.parseDouble(pcr2Excel.getCtValue().replace(" ", ""))));
excels.add(pcr2Excels.get(0));
pcr2Excels.clear();
} else {

Loading…
Cancel
Save