@Test public void testListCheckedInButNotRecordedProjects() throws Exception { }
@Override public CommonResult listCheckedInButNotRecordedProjects(ProjectParam projectParam){ Integer departmentId = projectParam.getDepartmentId(); String dateStr = projectParam.getChargeDateStr(); String projectType = departmentMapper.getClassificationById(departmentId); switch (projectType){ case "医学影像科": List<Inspection> inspections = inspectionMapper.listCheckedInButNotRecordedProjects(departmentId, dateStr); return CommonResult.success(inspections); case "医技科": List<Examination> examinations = examinationMapper.listCheckedInButNotRecordedProjects(departmentId, dateStr); return CommonResult.success(examinations); case "处置科": List<Treatment> treatments = treatmentMapper.listCheckedInButNotRecordedProjects(departmentId, dateStr); return CommonResult.success(treatments); default: return CommonResult.fail(E_801); } }
TechMedicalProjectServiceImpl implements TechMedicalProjectService { @Override public CommonResult listCheckedInButNotRecordedProjects(ProjectParam projectParam){ Integer departmentId = projectParam.getDepartmentId(); String dateStr = projectParam.getChargeDateStr(); String projectType = departmentMapper.getClassificationById(departmentId); switch (projectType){ case "医学影像科": List<Inspection> inspections = inspectionMapper.listCheckedInButNotRecordedProjects(departmentId, dateStr); return CommonResult.success(inspections); case "医技科": List<Examination> examinations = examinationMapper.listCheckedInButNotRecordedProjects(departmentId, dateStr); return CommonResult.success(examinations); case "处置科": List<Treatment> treatments = treatmentMapper.listCheckedInButNotRecordedProjects(departmentId, dateStr); return CommonResult.success(treatments); default: return CommonResult.fail(E_801); } } }
TechMedicalProjectServiceImpl implements TechMedicalProjectService { @Override public CommonResult listCheckedInButNotRecordedProjects(ProjectParam projectParam){ Integer departmentId = projectParam.getDepartmentId(); String dateStr = projectParam.getChargeDateStr(); String projectType = departmentMapper.getClassificationById(departmentId); switch (projectType){ case "医学影像科": List<Inspection> inspections = inspectionMapper.listCheckedInButNotRecordedProjects(departmentId, dateStr); return CommonResult.success(inspections); case "医技科": List<Examination> examinations = examinationMapper.listCheckedInButNotRecordedProjects(departmentId, dateStr); return CommonResult.success(examinations); case "处置科": List<Treatment> treatments = treatmentMapper.listCheckedInButNotRecordedProjects(departmentId, dateStr); return CommonResult.success(treatments); default: return CommonResult.fail(E_801); } }  }
TechMedicalProjectServiceImpl implements TechMedicalProjectService { @Override public CommonResult listCheckedInButNotRecordedProjects(ProjectParam projectParam){ Integer departmentId = projectParam.getDepartmentId(); String dateStr = projectParam.getChargeDateStr(); String projectType = departmentMapper.getClassificationById(departmentId); switch (projectType){ case "医学影像科": List<Inspection> inspections = inspectionMapper.listCheckedInButNotRecordedProjects(departmentId, dateStr); return CommonResult.success(inspections); case "医技科": List<Examination> examinations = examinationMapper.listCheckedInButNotRecordedProjects(departmentId, dateStr); return CommonResult.success(examinations); case "处置科": List<Treatment> treatments = treatmentMapper.listCheckedInButNotRecordedProjects(departmentId, dateStr); return CommonResult.success(treatments); 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 listCheckedInButNotRecordedProjects(ProjectParam projectParam){ Integer departmentId = projectParam.getDepartmentId(); String dateStr = projectParam.getChargeDateStr(); String projectType = departmentMapper.getClassificationById(departmentId); switch (projectType){ case "医学影像科": List<Inspection> inspections = inspectionMapper.listCheckedInButNotRecordedProjects(departmentId, dateStr); return CommonResult.success(inspections); case "医技科": List<Examination> examinations = examinationMapper.listCheckedInButNotRecordedProjects(departmentId, dateStr); return CommonResult.success(examinations); case "处置科": List<Treatment> treatments = treatmentMapper.listCheckedInButNotRecordedProjects(departmentId, dateStr); return CommonResult.success(treatments); 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);  }