コード例 #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);
 }