IT-KIMI_SHI\SINOIT.KIMI
2018-12-07 50eb1d766c470dc6ff927199eaee934f972a8b70
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
package service.myPanel.impl;
 
import dao.BaseMapper;
import model.myPanel.MyPanel;
import model.myPanel.PanelChartsWrapper;
import org.springframework.stereotype.Service;
import service.myPanel.PanelChartsWrapperService;
 
import javax.annotation.Resource;
import java.util.List;
 
/**
 * Created by ct on 2016/9/5.
 */
@Service
public class PanelChartsServiceImpl implements PanelChartsWrapperService{
 
    private static final String NAMESPACE = PanelChartsWrapper.class.getName();
    @Resource
    private BaseMapper<PanelChartsWrapper> baseMapper;
 
    @Override
    public int insert(PanelChartsWrapper panelChartsWrapper) throws Exception {
        panelChartsWrapper.setStatmentId(NAMESPACE + ".insert");
        return baseMapper.insert(panelChartsWrapper);
    }
 
    @Override
    public int delete(PanelChartsWrapper panelChartsWrapper) throws Exception {
        panelChartsWrapper.setStatmentId(NAMESPACE + ".delete");
        return baseMapper.delete(panelChartsWrapper);
    }
 
    @Override
    public int update(PanelChartsWrapper panelChartsWrapper) throws Exception {
       delete(panelChartsWrapper);
        return insert(panelChartsWrapper);
    }
 
    @Override
    public List<PanelChartsWrapper> selectList(PanelChartsWrapper panelChartsWrapper) throws Exception {
        panelChartsWrapper.setStatmentId(NAMESPACE + ".selectList");
        return baseMapper.selectList(panelChartsWrapper);
    }
 
 
}