### Question:
TechMedicalProjectServiceImpl implements TechMedicalProjectService { @Override public CommonResult listAllProjectsByCaseId(PatientParam patientParam){ JSONObject jsonObject = new JSONObject(); Integer caseId = patientParam.getCaseId(); Integer departmentId = patientParam.getDepartmentId(); String chargeDateStr = patientParam.getChargeDateStr(); List<HashMap> projects; if(caseId == null) return CommonResult.fail(E_801); if (departmentId == null) return CommonResult.fail(E_801); Registration registration = (Registration) patientService.getRegistrationInfo(caseId).getData(); jsonObject.put("patientInfo", registration); String projectType = departmentMapper.getClassificationById(departmentId); switch (projectType){ case "医学影像科": projects = inspectionMapper.listAllProjectsByCaseId(caseId, chargeDateStr, departmentId); break; case "医技科": projects = examinationMapper.listAllProjectsByCaseId(caseId, chargeDateStr, departmentId); break; case "处置科": projects = treatmentMapper.listAllProjectsByCaseId(caseId, chargeDateStr, departmentId); break; default: return CommonResult.fail(E_801); } jsonObject.put("projects", projects); return CommonResult.success(jsonObject); }  @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);  }### Answer:
@Test public void testListAllProjectsByCaseId() throws Exception { }