@Override public PlanInfo findByProjects(Projects projects) { PlanInfo planInfo = repository.findPlanInfoByProjectsId(projects.getId()); if (planInfo == null) { planInfo = new PlanInfo(projects); repository.save(planInfo); } return planInfo; }
@Override public void dele(Long id) { repository.delete(id); }
@Override public PlanInfo update(PlanInfo planInfo) { return repository.save(planInfo); }
@Override public PlanInfo findOne(Long id) { return repository.findOne(id); }