@Test public void testConfirmProject() throws Exception { }
public CommonResult confirmProject(ProjectParam projectParam){ Integer departmentId = projectParam.getDepartmentId(); Integer collectionId = projectParam.getCollectionId(); Integer projectId = projectParam.getProjectId(); if (collectionId == null) return CommonResult.fail(E_801); if(projectId == null) return CommonResult.fail(E_801); int count = 0; String projectType = departmentMapper.getClassificationById(departmentId); String description; switch (projectType){ case "医学影像科": description = inspectionMapper.getDescriptionByCollectionAndProjectId(collectionId, projectId); if(description == null) CommonResult.fail(E_711); else count = inspectionMapper.updateStatus(collectionId, projectId, (byte) 5); break; case "医技科": description = examinationMapper.getDescriptionByCollectionAndProjectId(collectionId, projectId); if(description == null) CommonResult.fail(E_711); else count = examinationMapper.updateStatus(collectionId, projectId, (byte)5); break; default: return CommonResult.fail(E_801); } return CommonResult.success(count); }
TechMedicalProjectServiceImpl implements TechMedicalProjectService { public CommonResult confirmProject(ProjectParam projectParam){ Integer departmentId = projectParam.getDepartmentId(); Integer collectionId = projectParam.getCollectionId(); Integer projectId = projectParam.getProjectId(); if (collectionId == null) return CommonResult.fail(E_801); if(projectId == null) return CommonResult.fail(E_801); int count = 0; String projectType = departmentMapper.getClassificationById(departmentId); String description; switch (projectType){ case "医学影像科": description = inspectionMapper.getDescriptionByCollectionAndProjectId(collectionId, projectId); if(description == null) CommonResult.fail(E_711); else count = inspectionMapper.updateStatus(collectionId, projectId, (byte) 5); break; case "医技科": description = examinationMapper.getDescriptionByCollectionAndProjectId(collectionId, projectId); if(description == null) CommonResult.fail(E_711); else count = examinationMapper.updateStatus(collectionId, projectId, (byte)5); break; default: return CommonResult.fail(E_801); } return CommonResult.success(count); } }
TechMedicalProjectServiceImpl implements TechMedicalProjectService { public CommonResult confirmProject(ProjectParam projectParam){ Integer departmentId = projectParam.getDepartmentId(); Integer collectionId = projectParam.getCollectionId(); Integer projectId = projectParam.getProjectId(); if (collectionId == null) return CommonResult.fail(E_801); if(projectId == null) return CommonResult.fail(E_801); int count = 0; String projectType = departmentMapper.getClassificationById(departmentId); String description; switch (projectType){ case "医学影像科": description = inspectionMapper.getDescriptionByCollectionAndProjectId(collectionId, projectId); if(description == null) CommonResult.fail(E_711); else count = inspectionMapper.updateStatus(collectionId, projectId, (byte) 5); break; case "医技科": description = examinationMapper.getDescriptionByCollectionAndProjectId(collectionId, projectId); if(description == null) CommonResult.fail(E_711); else count = examinationMapper.updateStatus(collectionId, projectId, (byte)5); break; default: return CommonResult.fail(E_801); } return CommonResult.success(count); }  }
TechMedicalProjectServiceImpl implements TechMedicalProjectService { public CommonResult confirmProject(ProjectParam projectParam){ Integer departmentId = projectParam.getDepartmentId(); Integer collectionId = projectParam.getCollectionId(); Integer projectId = projectParam.getProjectId(); if (collectionId == null) return CommonResult.fail(E_801); if(projectId == null) return CommonResult.fail(E_801); int count = 0; String projectType = departmentMapper.getClassificationById(departmentId); String description; switch (projectType){ case "医学影像科": description = inspectionMapper.getDescriptionByCollectionAndProjectId(collectionId, projectId); if(description == null) CommonResult.fail(E_711); else count = inspectionMapper.updateStatus(collectionId, projectId, (byte) 5); break; case "医技科": description = examinationMapper.getDescriptionByCollectionAndProjectId(collectionId, projectId); if(description == null) CommonResult.fail(E_711); else count = examinationMapper.updateStatus(collectionId, projectId, (byte)5); break; default: return CommonResult.fail(E_801); } return CommonResult.success(count); }  @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 { public CommonResult confirmProject(ProjectParam projectParam){ Integer departmentId = projectParam.getDepartmentId(); Integer collectionId = projectParam.getCollectionId(); Integer projectId = projectParam.getProjectId(); if (collectionId == null) return CommonResult.fail(E_801); if(projectId == null) return CommonResult.fail(E_801); int count = 0; String projectType = departmentMapper.getClassificationById(departmentId); String description; switch (projectType){ case "医学影像科": description = inspectionMapper.getDescriptionByCollectionAndProjectId(collectionId, projectId); if(description == null) CommonResult.fail(E_711); else count = inspectionMapper.updateStatus(collectionId, projectId, (byte) 5); break; case "医技科": description = examinationMapper.getDescriptionByCollectionAndProjectId(collectionId, projectId); if(description == null) CommonResult.fail(E_711); else count = examinationMapper.updateStatus(collectionId, projectId, (byte)5); break; default: return CommonResult.fail(E_801); } return CommonResult.success(count); }  @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);  }