public void patch(Dependency dependency) {
   DependencyExample example = new DependencyExample();
   example
       .createCriteria()
       .andIdEqualTo(dependency.getId())
       .andProjectIdEqualTo(dependency.getProjectId());
   dependencyMapper.updateByExampleSelective(dependency, example);
 }
 public void deleteDependencyByProjectId(int projectId) {
   DependencyExample example = new DependencyExample();
   example.createCriteria().andProjectIdEqualTo(projectId);
   dependencyMapper.deleteByExample(example);
 }
 public List<Dependency> list(int projectId) {
   DependencyExample example = new DependencyExample();
   example.createCriteria().andProjectIdEqualTo(projectId);
   return dependencyMapper.selectByExample(example);
 }