@Test public void testInsertExaminationProject() throws Exception { }
public int insertExaminationProject(Integer collectionId, Integer projectId, ItemParam itemParam) { String projectName = techProjectMapper.getProjectNameByProjectId(projectId); ExaminationProject examinationProject = new ExaminationProject(); examinationProject.setCollectionId(collectionId); examinationProject.setProjectId(projectId); examinationProject.setProjectName(projectName); examinationProject.setItemId(itemParam.getItemId()); examinationProject.setItemName(itemParam.getItemName()); examinationProject.setAmount(itemParam.getAmount()); int count = examinationProjectMapper.insert(examinationProject); return count; }
ProjectCollectionManagementServiceImpl implements ProjectCollectionManagementService { public int insertExaminationProject(Integer collectionId, Integer projectId, ItemParam itemParam) { String projectName = techProjectMapper.getProjectNameByProjectId(projectId); ExaminationProject examinationProject = new ExaminationProject(); examinationProject.setCollectionId(collectionId); examinationProject.setProjectId(projectId); examinationProject.setProjectName(projectName); examinationProject.setItemId(itemParam.getItemId()); examinationProject.setItemName(itemParam.getItemName()); examinationProject.setAmount(itemParam.getAmount()); int count = examinationProjectMapper.insert(examinationProject); return count; } }
ProjectCollectionManagementServiceImpl implements ProjectCollectionManagementService { public int insertExaminationProject(Integer collectionId, Integer projectId, ItemParam itemParam) { String projectName = techProjectMapper.getProjectNameByProjectId(projectId); ExaminationProject examinationProject = new ExaminationProject(); examinationProject.setCollectionId(collectionId); examinationProject.setProjectId(projectId); examinationProject.setProjectName(projectName); examinationProject.setItemId(itemParam.getItemId()); examinationProject.setItemName(itemParam.getItemName()); examinationProject.setAmount(itemParam.getAmount()); int count = examinationProjectMapper.insert(examinationProject); return count; }  }
ProjectCollectionManagementServiceImpl implements ProjectCollectionManagementService { public int insertExaminationProject(Integer collectionId, Integer projectId, ItemParam itemParam) { String projectName = techProjectMapper.getProjectNameByProjectId(projectId); ExaminationProject examinationProject = new ExaminationProject(); examinationProject.setCollectionId(collectionId); examinationProject.setProjectId(projectId); examinationProject.setProjectName(projectName); examinationProject.setItemId(itemParam.getItemId()); examinationProject.setItemName(itemParam.getItemName()); examinationProject.setAmount(itemParam.getAmount()); int count = examinationProjectMapper.insert(examinationProject); return count; }  @Override CommonResult listCollections(Integer caseId, Integer type); @Override CommonResult applyNewCollection(Integer collectionType); @Override CommonResult savePresentCollection(CollectionParam collectionParam); @Override CommonResult submitPresentCollection(CollectionParam collectionParam); CommonResult chooseByType(CollectionParam collectionParam, int operation); CommonResult saveInspection(CollectionParam collectionParam, int operation); CommonResult saveExamination(CollectionParam collectionParam, int operation); CommonResult saveTreatment(CollectionParam collectionParam, int operation); int insertInspectionProject(Integer collectionId, Integer projectId, ItemParam itemParam); int insertExaminationProject(Integer collectionId, Integer projectId, ItemParam itemParam); CommonResult insertTransactionLog(CollectionParam collectionParam, ProjectParam projectParam,
                                             ItemParam itemParam, Integer creatorRoleId); CommonResult cancelSubmittedCollection(Integer collectionId, Integer type); CommonResult deleteCollection(Integer collectionId, Integer type); CommonResult getProjectResult(ProjectParam projectParam); }
ProjectCollectionManagementServiceImpl implements ProjectCollectionManagementService { public int insertExaminationProject(Integer collectionId, Integer projectId, ItemParam itemParam) { String projectName = techProjectMapper.getProjectNameByProjectId(projectId); ExaminationProject examinationProject = new ExaminationProject(); examinationProject.setCollectionId(collectionId); examinationProject.setProjectId(projectId); examinationProject.setProjectName(projectName); examinationProject.setItemId(itemParam.getItemId()); examinationProject.setItemName(itemParam.getItemName()); examinationProject.setAmount(itemParam.getAmount()); int count = examinationProjectMapper.insert(examinationProject); return count; }  @Override CommonResult listCollections(Integer caseId, Integer type); @Override CommonResult applyNewCollection(Integer collectionType); @Override CommonResult savePresentCollection(CollectionParam collectionParam); @Override CommonResult submitPresentCollection(CollectionParam collectionParam); CommonResult chooseByType(CollectionParam collectionParam, int operation); CommonResult saveInspection(CollectionParam collectionParam, int operation); CommonResult saveExamination(CollectionParam collectionParam, int operation); CommonResult saveTreatment(CollectionParam collectionParam, int operation); int insertInspectionProject(Integer collectionId, Integer projectId, ItemParam itemParam); int insertExaminationProject(Integer collectionId, Integer projectId, ItemParam itemParam); CommonResult insertTransactionLog(CollectionParam collectionParam, ProjectParam projectParam,
                                             ItemParam itemParam, Integer creatorRoleId); CommonResult cancelSubmittedCollection(Integer collectionId, Integer type); CommonResult deleteCollection(Integer collectionId, Integer type); CommonResult getProjectResult(ProjectParam projectParam);  }