dev
swj 3 years ago
parent 3234604e31
commit 3bbea6b234
  1. 10
      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
  3. 2
      lab-service/lab-lims/src/main/java/org/springblade/lims/service/impl/TaskBlueprintServiceImpl.java

@ -363,6 +363,7 @@ public class EntrustServiceImpl extends BaseServiceImpl<EntrustMapper, Entrust>
} }
} }
Map<String, Object> result = new HashMap<>(); Map<String, Object> result = new HashMap<>();
// position1
if ("1".equals(entrust.getInvestigativeType())) { if ("1".equals(entrust.getInvestigativeType())) {
result.put("investigativeType", "委托"); result.put("investigativeType", "委托");
} }
@ -380,6 +381,7 @@ public class EntrustServiceImpl extends BaseServiceImpl<EntrustMapper, Entrust>
result.put("facsimile", entrust.getFacsimile()); result.put("facsimile", entrust.getFacsimile());
result.put("phone", entrust.getPhone()); result.put("phone", entrust.getPhone());
result.put("simpleSource", entrust.getSimpleSource()); result.put("simpleSource", entrust.getSimpleSource());
// position1
if ("0".equals(entrust.getReportSendType())) { if ("0".equals(entrust.getReportSendType())) {
result.put("reportSendType", "自取"); result.put("reportSendType", "自取");
} }
@ -583,6 +585,7 @@ public class EntrustServiceImpl extends BaseServiceImpl<EntrustMapper, Entrust>
result.put("acceptanceNum", entrust.getAcceptanceNum()); result.put("acceptanceNum", entrust.getAcceptanceNum());
result.put("simpleName", entrust.getSimpleName()); result.put("simpleName", entrust.getSimpleName());
result.put("entrustCustomerName", entrust.getEntrustCustomerName()); result.put("entrustCustomerName", entrust.getEntrustCustomerName());
// position1
if ("1".equals(entrust.getInvestigativeType())) { if ("1".equals(entrust.getInvestigativeType())) {
result.put("investigativeType", "委托"); result.put("investigativeType", "委托");
} }
@ -716,6 +719,7 @@ public class EntrustServiceImpl extends BaseServiceImpl<EntrustMapper, Entrust>
instrumentName += s2 + ","; instrumentName += s2 + ",";
} }
result.put("9", instrumentName); result.put("9", instrumentName);
// position1
if ("0".equals(examineResult.getSimpleStatus())) { if ("0".equals(examineResult.getSimpleStatus())) {
result.put("10", "状态一"); result.put("10", "状态一");
} }
@ -755,6 +759,7 @@ public class EntrustServiceImpl extends BaseServiceImpl<EntrustMapper, Entrust>
// 如果是布鲁氏检测 // 如果是布鲁氏检测
// position1
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);
if (list.size() > 0) { if (list.size() > 0) {
@ -799,7 +804,7 @@ public class EntrustServiceImpl extends BaseServiceImpl<EntrustMapper, Entrust>
return o1.getOrder() - o2.getOrder(); return o1.getOrder() - o2.getOrder();
} }
}); });
// position1
if ("3".equals(byId.getInputMode())) { if ("3".equals(byId.getInputMode())) {
// 口蹄疫兰所单板 // 口蹄疫兰所单板
if ("1".equals(examine.getTemplateType())) { if ("1".equals(examine.getTemplateType())) {
@ -883,6 +888,7 @@ public class EntrustServiceImpl extends BaseServiceImpl<EntrustMapper, Entrust>
} }
url = LDanreportPrint; url = LDanreportPrint;
} }
// position1
// 口蹄疫兰所多板 // 口蹄疫兰所多板
else if ("2".equals(examine.getTemplateType())) { else if ("2".equals(examine.getTemplateType())) {
if (list.size() > 0) { if (list.size() > 0) {
@ -1638,6 +1644,7 @@ public class EntrustServiceImpl extends BaseServiceImpl<EntrustMapper, Entrust>
result.put("deptName", deptName); result.put("deptName", deptName);
result.put("acceptanceNum", entrust.getAcceptanceNum()); result.put("acceptanceNum", entrust.getAcceptanceNum());
if (eTask != null) { if (eTask != null) {
// position1
if ("1".equals(eTask.getSimpleType())) { if ("1".equals(eTask.getSimpleType())) {
result.put("simpleType", "☑正样 □留样"); result.put("simpleType", "☑正样 □留样");
} else { } else {
@ -1779,6 +1786,7 @@ public class EntrustServiceImpl extends BaseServiceImpl<EntrustMapper, Entrust>
LambdaQueryWrapper<Simple> wrapper = new LambdaQueryWrapper<>(); LambdaQueryWrapper<Simple> wrapper = new LambdaQueryWrapper<>();
wrapper.eq(Simple::getEntrustId, id); wrapper.eq(Simple::getEntrustId, id);
wrapper.eq(Simple::getStatus, 1); wrapper.eq(Simple::getStatus, 1);
// position1
wrapper.eq(Simple::getIsReagent, "1"); wrapper.eq(Simple::getIsReagent, "1");
List<Simple> simpleList = simpleService.list(wrapper); List<Simple> simpleList = simpleService.list(wrapper);
if (simpleList != null && simpleList.size() > 0) { if (simpleList != null && simpleList.size() > 0) {

@ -68,6 +68,7 @@ public class ExamineResultServiceImpl extends BaseServiceImpl<ExamineResultMappe
List<Examine> examines = examineService.list(examineQueryWrapper); List<Examine> examines = examineService.list(examineQueryWrapper);
boolean isAllFinish = true; boolean isAllFinish = true;
for (Examine examine : examines) { for (Examine examine : examines) {
// position1
if (examine.getIsFinished().equals("0")) { if (examine.getIsFinished().equals("0")) {
isAllFinish = false; isAllFinish = false;
break; break;
@ -176,6 +177,7 @@ public class ExamineResultServiceImpl extends BaseServiceImpl<ExamineResultMappe
List<Examine> list = examineService.list(examineQueryWrapper); List<Examine> list = examineService.list(examineQueryWrapper);
boolean isAllFinish = true; boolean isAllFinish = true;
for (Examine examine : list) { for (Examine examine : list) {
// position1
if (examine.getIsFinished().equals("0")) { if (examine.getIsFinished().equals("0")) {
isAllFinish = false; isAllFinish = false;
break; break;

@ -71,6 +71,7 @@ public class TaskBlueprintServiceImpl extends BaseServiceImpl<TaskBlueprintMappe
List<User> userList = userClient.listDeptUserByCurrentUser(eTask.getDeptId().toString()).getData(); List<User> userList = userClient.listDeptUserByCurrentUser(eTask.getDeptId().toString()).getData();
if (userList != null) { if (userList != null) {
for (User user : userList) { for (User user : userList) {
// position1
if ("1432876315142520834".equals(user.getRoleId())) { if ("1432876315142520834".equals(user.getRoleId())) {
messageClient.event(SysTypeEnum.INFORM.getValue(), "新的检验", messageClient.event(SysTypeEnum.INFORM.getValue(), "新的检验",
"你有新的检验待领取,请及时处理", 1, 5, user.getId().toString(),"/plugin/workflow/process/experimentcrew"); "你有新的检验待领取,请及时处理", 1, 5, user.getId().toString(),"/plugin/workflow/process/experimentcrew");
@ -139,6 +140,7 @@ public class TaskBlueprintServiceImpl extends BaseServiceImpl<TaskBlueprintMappe
eTask.setTaskBlueprintId(taskBlueprintId); eTask.setTaskBlueprintId(taskBlueprintId);
long taskId = random.nextLong(); long taskId = random.nextLong();
// 科室一 // 科室一
// position1
if (eTask.getDeptId() == 1536303217085018114L) { if (eTask.getDeptId() == 1536303217085018114L) {
eTask.setWeight(1); eTask.setWeight(1);
} }

Loading…
Cancel
Save