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