Helius
2021-03-09 8fe37f0f7af3667b60e0f29a1ce8188c08c35bb1
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
package com.matrix.system.hive.service.imp;
  
import com.matrix.core.pojo.PaginationVO;
 
import com.matrix.system.hive.bean.SysAllotDetail;
import com.matrix.system.hive.dao.SysAllotDetailDao;
import com.matrix.system.hive.service.SysAllotDetailService;
import org.springframework.stereotype.Service;
import org.springframework.beans.factory.annotation.Autowired;
 
import java.util.List;
 
/**
 *
 * @date 2016-07-18 18:11
 */
@Service("sysAllotDetailService")
public class  SysAllotDetailServiceImpl implements SysAllotDetailService {
 
    
    @Autowired
    private SysAllotDetailDao sysAllotDetailDao;
    
    
    @Override
    public int add(SysAllotDetail sysAllotDetail){
        
        return sysAllotDetailDao.insert(sysAllotDetail);
        
    }
       
    @Override
    public int modify(SysAllotDetail sysAllotDetail){
    
        return sysAllotDetailDao.update(sysAllotDetail);
    
    }
    
    @Override
    public int remove(List<Long> list){
    
        return sysAllotDetailDao.deleteByIds(list);
    
    }
 
    @Override
    public int removeById(Long id){
    
        return sysAllotDetailDao.deleteById(id);
    
    }
    
    @Override
    public List<SysAllotDetail> findInPage(SysAllotDetail sysAllotDetail,  PaginationVO pageVo){
    
        return sysAllotDetailDao.selectInPage(sysAllotDetail , pageVo);
    
    }
    
    @Override
    public List<SysAllotDetail> findByModel(SysAllotDetail sysAllotDetail){
    
        return sysAllotDetailDao.selectByModel(sysAllotDetail);
    
    }
    
    @Override
    public int  findTotal(SysAllotDetail sysAllotDetail){
    
        return sysAllotDetailDao.selectTotalRecord(sysAllotDetail);
    
    }
    
    @Override
    public SysAllotDetail  findById(Long id){
    
        return sysAllotDetailDao.selectById(id);
    
    }
 
       
    
    
}