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
85
86
87
88
package com.matrix.system.hive.service.imp;
 
import com.matrix.core.pojo.PaginationVO;
import com.matrix.system.hive.bean.ServiceRecord;
import com.matrix.system.hive.dao.ServiceRecordDao;
import com.matrix.system.hive.service.ServiceRecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
 
import java.util.List;
 
 
 
/**
 *
 * @date 2016-08-06 16:15
 */
@Service("serviceRecordService")
public class  ServiceRecordServiceImpl implements ServiceRecordService {
 
    
    @Autowired
    private ServiceRecordDao serviceRecordDao;
    
    
    @Override
    public int add(ServiceRecord serviceRecord){
//        Date now=new Date();
//        if(DateUtil.isAffterDate( serviceRecord.getCreateTime(),now)){
//            throw new GlobleException("跟进时间必须大于当前时间");
//        }
 
        return serviceRecordDao.insert(serviceRecord);
    }
       
    @Override
    public int modify(ServiceRecord serviceRecord){
    
        return serviceRecordDao.update(serviceRecord);
    
    }
    
    @Override
    public int remove(List<Long> list){
    
        return serviceRecordDao.deleteByIds(list);
    
    }
 
    @Override
    public int removeById(Long id){
    
        return serviceRecordDao.deleteById(id);
    
    }
    
    @Override
    public List<ServiceRecord> findInPage(ServiceRecord serviceRecord,  PaginationVO pageVo){
    
        return serviceRecordDao.selectInPage(serviceRecord , pageVo);
    
    }
    
    @Override
    public List<ServiceRecord> findByModel(ServiceRecord serviceRecord){
    
        return serviceRecordDao.selectByModel(serviceRecord);
    
    }
    
    @Override
    public int  findTotal(ServiceRecord serviceRecord){
    
        return serviceRecordDao.selectTotalRecord(serviceRecord);
    
    }
    
    @Override
    public ServiceRecord  findById(Long id){
    
        return serviceRecordDao.selectById(id);
    
    }
 
       
    
    
}