linzhijie
2021-03-11 c33914ba0a98c823c4b4d7da21cdd476906c9924
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
package com.ots.project.exam.service.impl;
import com.ots.common.utils.DateUtils;
import com.ots.common.utils.text.Convert;
import com.ots.project.exam.domain.EntDemographyInfo;
import com.ots.project.exam.mapper.EntDemographyInfoMapper;
import com.ots.project.exam.service.IEntDemographyInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
 
@Service
public class EntDemographyInfoServiceImpl implements IEntDemographyInfoService {
    @Autowired
    private EntDemographyInfoMapper entDemographyInfoMapper;
    
    @Override
    public EntDemographyInfo selectEntDemographyInfoById(Long infoId) {
        return entDemographyInfoMapper.selectEntDemographyInfoById(infoId);
    }
    
    @Override
    public List<EntDemographyInfo> selectEntDemographyInfoList(EntDemographyInfo entDemographyInfo) {
        return entDemographyInfoMapper.selectEntDemographyInfoList(entDemographyInfo);
    }
    @Override
    public List<EntDemographyInfo> selectEntDemographyAndParamList(EntDemographyInfo entDemographyInfo) {
        return entDemographyInfoMapper.selectEntDemographyAndParamList(entDemographyInfo);
    }
    
    @Override
    public int insertEntDemographyInfo(EntDemographyInfo entDemographyInfo) {
        entDemographyInfo.setCreateTime(DateUtils.getNowDate());
        return entDemographyInfoMapper.insertEntDemographyInfo(entDemographyInfo);
    }
    
    @Override
    public int updateEntDemographyInfo(EntDemographyInfo entDemographyInfo) {
        entDemographyInfo.setUpdateTime(DateUtils.getNowDate());
        return entDemographyInfoMapper.updateEntDemographyInfo(entDemographyInfo);
    }
    
    @Override
    public int deleteEntDemographyInfoByIds(String ids) {
        return entDemographyInfoMapper.deleteEntDemographyInfoByIds(Convert.toStrArray(ids));
    }
    
    public int deleteEntDemographyInfoById(Long infoId) {
        return entDemographyInfoMapper.deleteEntDemographyInfoById(infoId);
    }
}