@Test public void testShowResult() throws Exception { }
@Override public CommonResult showResult(ProjectParam projectParam){ Integer departmentId = projectParam.getDepartmentId(); Integer collectionId = projectParam.getCollectionId(); Integer projectId = projectParam.getProjectId(); String projectType = departmentMapper.getClassificationById(departmentId); switch (projectType){ case "医学影像科": Inspection inspection = inspectionMapper.getResultByCollectionAndProjectId(collectionId, projectId); return CommonResult.success(inspection); case "医技科": Examination examination = examinationMapper.getResultByCollectionAndProjectId(collectionId, projectId); return CommonResult.success(examination); default: return CommonResult.fail(E_801); } }
TechMedicalProjectServiceImpl implements TechMedicalProjectService { @Override public CommonResult showResult(ProjectParam projectParam){ Integer departmentId = projectParam.getDepartmentId(); Integer collectionId = projectParam.getCollectionId(); Integer projectId = projectParam.getProjectId(); String projectType = departmentMapper.getClassificationById(departmentId); switch (projectType){ case "医学影像科": Inspection inspection = inspectionMapper.getResultByCollectionAndProjectId(collectionId, projectId); return CommonResult.success(inspection); case "医技科": Examination examination = examinationMapper.getResultByCollectionAndProjectId(collectionId, projectId); return CommonResult.success(examination); default: return CommonResult.fail(E_801); } } }
TechMedicalProjectServiceImpl implements TechMedicalProjectService { @Override public CommonResult showResult(ProjectParam projectParam){ Integer departmentId = projectParam.getDepartmentId(); Integer collectionId = projectParam.getCollectionId(); Integer projectId = projectParam.getProjectId(); String projectType = departmentMapper.getClassificationById(departmentId); switch (projectType){ case "医学影像科": Inspection inspection = inspectionMapper.getResultByCollectionAndProjectId(collectionId, projectId); return CommonResult.success(inspection); case "医技科": Examination examination = examinationMapper.getResultByCollectionAndProjectId(collectionId, projectId); return CommonResult.success(examination); default: return CommonResult.fail(E_801); } }  }
TechMedicalProjectServiceImpl implements TechMedicalProjectService { @Override public CommonResult showResult(ProjectParam projectParam){ Integer departmentId = projectParam.getDepartmentId(); Integer collectionId = projectParam.getCollectionId(); Integer projectId = projectParam.getProjectId(); String projectType = departmentMapper.getClassificationById(departmentId); switch (projectType){ case "医学影像科": Inspection inspection = inspectionMapper.getResultByCollectionAndProjectId(collectionId, projectId); return CommonResult.success(inspection); case "医技科": Examination examination = examinationMapper.getResultByCollectionAndProjectId(collectionId, projectId); return CommonResult.success(examination); default: return CommonResult.fail(E_801); } }  @Override CommonResult listPreparedPatientsByCaseIdOrDateOrName(PatientParam patientParam); @Override CommonResult listAllProjectsByCaseId(PatientParam patientParam); @Override CommonResult listItemsByCollectionIdAndProjectId(ProjectParam projectParam); @Override CommonResult checkInProject(ProjectParam projectParam); @Override CommonResult cancelProject(ProjectParam projectParam); @Override CommonResult listCheckedInButNotRecordedProjects(ProjectParam projectParam); @Override CommonResult recordResult(ProjectParam projectParam); @Override CommonResult showResult(ProjectParam projectParam); CommonResult confirmProject(ProjectParam projectParam); }
TechMedicalProjectServiceImpl implements TechMedicalProjectService { @Override public CommonResult showResult(ProjectParam projectParam){ Integer departmentId = projectParam.getDepartmentId(); Integer collectionId = projectParam.getCollectionId(); Integer projectId = projectParam.getProjectId(); String projectType = departmentMapper.getClassificationById(departmentId); switch (projectType){ case "医学影像科": Inspection inspection = inspectionMapper.getResultByCollectionAndProjectId(collectionId, projectId); return CommonResult.success(inspection); case "医技科": Examination examination = examinationMapper.getResultByCollectionAndProjectId(collectionId, projectId); return CommonResult.success(examination); default: return CommonResult.fail(E_801); } }  @Override CommonResult listPreparedPatientsByCaseIdOrDateOrName(PatientParam patientParam); @Override CommonResult listAllProjectsByCaseId(PatientParam patientParam); @Override CommonResult listItemsByCollectionIdAndProjectId(ProjectParam projectParam); @Override CommonResult checkInProject(ProjectParam projectParam); @Override CommonResult cancelProject(ProjectParam projectParam); @Override CommonResult listCheckedInButNotRecordedProjects(ProjectParam projectParam); @Override CommonResult recordResult(ProjectParam projectParam); @Override CommonResult showResult(ProjectParam projectParam); CommonResult confirmProject(ProjectParam projectParam);  }