1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
package com.dy.pipIrrDemo.mp;
 
import com.dy.pipIrrGlobal.daoDemo.DemoMpMapper;
import com.dy.pipIrrGlobal.pojoDemo.DemoMp;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
 
import java.util.List;
 
@Service
public class DemoMpSv {
 
    @Autowired
    private DemoMpMapper demoMpMapper ;
 
    public DemoMp selectById(Long id){
        return this.demoMpMapper.selectById(id);
    }
 
 
    public List<DemoMp> selectBatchIds(List<Long> ids){
        return this.demoMpMapper.selectBatchIds(ids);
    }
 
    public int insert(DemoMp po){
        return this.demoMpMapper.insert(po) ;
    }
 
    public int updateById(DemoMp po){
        return this.demoMpMapper.updateById(po) ;
    }
 
}