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 selectEntDemographyInfoList(EntDemographyInfo entDemographyInfo) { return entDemographyInfoMapper.selectEntDemographyInfoList(entDemographyInfo); } @Override public List 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); } }