示例#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 Dependency select(int id) {
   return dependencyMapper.selectByPrimaryKey(id);
 }
示例#3
0
 public void deleteDependencyByProjectId(int projectId) {
   DependencyExample example = new DependencyExample();
   example.createCriteria().andProjectIdEqualTo(projectId);
   dependencyMapper.deleteByExample(example);
 }
示例#4
0
 public void delete(int id) {
   dependencyMapper.deleteByPrimaryKey(id);
 }
示例#5
0
 public void insert(Dependency dependency) {
   dependencyMapper.insertSelective(dependency);
 }
示例#6
0
 public List<Dependency> list(int projectId) {
   DependencyExample example = new DependencyExample();
   example.createCriteria().andProjectIdEqualTo(projectId);
   return dependencyMapper.selectByExample(example);
 }
示例#7
0
 public List<Dependency> list() {
   return dependencyMapper.selectByExample(new DependencyExample());
 }