@Test public void exists() { Assert.assertFalse(categoryService.exists(getUser().getId(), RandomUtil.randomString(6))); }
@Override @LogMethod("检查分类是否存在") public boolean exists(String userId, String name) { return categoryDAO.existsByUserIdAndName(userId, name); }
CategoryServiceImpl implements CategoryService { @Override @LogMethod("检查分类是否存在") public boolean exists(String userId, String name) { return categoryDAO.existsByUserIdAndName(userId, name); } }
CategoryServiceImpl implements CategoryService { @Override @LogMethod("检查分类是否存在") public boolean exists(String userId, String name) { return categoryDAO.existsByUserIdAndName(userId, name); } @Autowired  CategoryServiceImpl(CategoryDAO categoryDAO); }
CategoryServiceImpl implements CategoryService { @Override @LogMethod("检查分类是否存在") public boolean exists(String userId, String name) { return categoryDAO.existsByUserIdAndName(userId, name); } @Autowired  CategoryServiceImpl(CategoryDAO categoryDAO); @Override void updateCategory(String categoryId, String userId, String name); @Override void removeCategory(String categoryId); @Override @LogMethod("检查分类是否存在") boolean exists(String userId, String name); @Override @LogMethod("列出分类") List<Category> listCategory(String userId); @Override @LogMethod("添加收益分类") Category appendCategory(String userId, String name); }
CategoryServiceImpl implements CategoryService { @Override @LogMethod("检查分类是否存在") public boolean exists(String userId, String name) { return categoryDAO.existsByUserIdAndName(userId, name); } @Autowired  CategoryServiceImpl(CategoryDAO categoryDAO); @Override void updateCategory(String categoryId, String userId, String name); @Override void removeCategory(String categoryId); @Override @LogMethod("检查分类是否存在") boolean exists(String userId, String name); @Override @LogMethod("列出分类") List<Category> listCategory(String userId); @Override @LogMethod("添加收益分类") Category appendCategory(String userId, String name);  }