@Test public void testListItemsByCollectionIdAndProjectId() throws Exception { }
@Override public CommonResult listItemsByCollectionIdAndProjectId(ProjectParam projectParam){ Integer collectionId = projectParam.getCollectionId(); Integer projectId = projectParam.getProjectId(); List<HashMap> projectDetails; if(collectionId.toString().startsWith("2")){ projectDetails = inspectionMapper.listItems(collectionId, projectId); } else if(collectionId.toString().startsWith("3")){ projectDetails= examinationMapper.listItems(collectionId, projectId); } else return CommonResult.fail(E_801); return CommonResult.success(projectDetails); }
TechMedicalProjectServiceImpl implements TechMedicalProjectService { @Override public CommonResult listItemsByCollectionIdAndProjectId(ProjectParam projectParam){ Integer collectionId = projectParam.getCollectionId(); Integer projectId = projectParam.getProjectId(); List<HashMap> projectDetails; if(collectionId.toString().startsWith("2")){ projectDetails = inspectionMapper.listItems(collectionId, projectId); } else if(collectionId.toString().startsWith("3")){ projectDetails= examinationMapper.listItems(collectionId, projectId); } else return CommonResult.fail(E_801); return CommonResult.success(projectDetails); } }
TechMedicalProjectServiceImpl implements TechMedicalProjectService { @Override public CommonResult listItemsByCollectionIdAndProjectId(ProjectParam projectParam){ Integer collectionId = projectParam.getCollectionId(); Integer projectId = projectParam.getProjectId(); List<HashMap> projectDetails; if(collectionId.toString().startsWith("2")){ projectDetails = inspectionMapper.listItems(collectionId, projectId); } else if(collectionId.toString().startsWith("3")){ projectDetails= examinationMapper.listItems(collectionId, projectId); } else return CommonResult.fail(E_801); return CommonResult.success(projectDetails); }  }
TechMedicalProjectServiceImpl implements TechMedicalProjectService { @Override public CommonResult listItemsByCollectionIdAndProjectId(ProjectParam projectParam){ Integer collectionId = projectParam.getCollectionId(); Integer projectId = projectParam.getProjectId(); List<HashMap> projectDetails; if(collectionId.toString().startsWith("2")){ projectDetails = inspectionMapper.listItems(collectionId, projectId); } else if(collectionId.toString().startsWith("3")){ projectDetails= examinationMapper.listItems(collectionId, projectId); } else return CommonResult.fail(E_801); return CommonResult.success(projectDetails); }  @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 listItemsByCollectionIdAndProjectId(ProjectParam projectParam){ Integer collectionId = projectParam.getCollectionId(); Integer projectId = projectParam.getProjectId(); List<HashMap> projectDetails; if(collectionId.toString().startsWith("2")){ projectDetails = inspectionMapper.listItems(collectionId, projectId); } else if(collectionId.toString().startsWith("3")){ projectDetails= examinationMapper.listItems(collectionId, projectId); } else return CommonResult.fail(E_801); return CommonResult.success(projectDetails); }  @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);  }