From 5e873863bc7324894c89b0a0fc77a6202c91cd64 Mon Sep 17 00:00:00 2001 From: wzp <516075396@qq.com> Date: 星期二, 06 四月 2021 10:35:42 +0800 Subject: [PATCH] 20210406 --- src/main/java/com/ots/project/exam/service/impl/EntDemographyInfoServiceImpl.java | 57 ++++++--------------------------------------------------- 1 files changed, 6 insertions(+), 51 deletions(-) diff --git a/src/main/java/com/ots/project/exam/service/impl/EntDemographyInfoServiceImpl.java b/src/main/java/com/ots/project/exam/service/impl/EntDemographyInfoServiceImpl.java index 777b6ad..02df770 100644 --- a/src/main/java/com/ots/project/exam/service/impl/EntDemographyInfoServiceImpl.java +++ b/src/main/java/com/ots/project/exam/service/impl/EntDemographyInfoServiceImpl.java @@ -1,5 +1,4 @@ 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; @@ -7,88 +6,44 @@ import com.ots.project.exam.service.IEntDemographyInfoService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; - import java.util.List; -/** - * 浜哄彛瀛︿俊鎭疭ervice涓氬姟灞傚鐞� - * - * @author ots - * @date 2019-12-15 - */ @Service public class EntDemographyInfoServiceImpl implements IEntDemographyInfoService { @Autowired private EntDemographyInfoMapper entDemographyInfoMapper; - - /** - * 鏌ヨ浜哄彛瀛︿俊鎭� - * - * @param infoId 浜哄彛瀛︿俊鎭疘D - * @return 浜哄彛瀛︿俊鎭� - */ + @Override public EntDemographyInfo selectEntDemographyInfoById(Long infoId) { return entDemographyInfoMapper.selectEntDemographyInfoById(infoId); } - - /** - * 鏌ヨ浜哄彛瀛︿俊鎭垪琛� - * - * @param entDemographyInfo 浜哄彛瀛︿俊鎭� - * @return 浜哄彛瀛︿俊鎭� - */ + @Override public List<EntDemographyInfo> selectEntDemographyInfoList(EntDemographyInfo entDemographyInfo) { return entDemographyInfoMapper.selectEntDemographyInfoList(entDemographyInfo); } - @Override public List<EntDemographyInfo> selectEntDemographyAndParamList(EntDemographyInfo entDemographyInfo) { return entDemographyInfoMapper.selectEntDemographyAndParamList(entDemographyInfo); } - - /** - * 鏂板浜哄彛瀛︿俊鎭� - * - * @param entDemographyInfo 浜哄彛瀛︿俊鎭� - * @return 缁撴灉 - */ + @Override public int insertEntDemographyInfo(EntDemographyInfo entDemographyInfo) { entDemographyInfo.setCreateTime(DateUtils.getNowDate()); return entDemographyInfoMapper.insertEntDemographyInfo(entDemographyInfo); } - - /** - * 淇敼浜哄彛瀛︿俊鎭� - * - * @param entDemographyInfo 浜哄彛瀛︿俊鎭� - * @return 缁撴灉 - */ + @Override public int updateEntDemographyInfo(EntDemographyInfo entDemographyInfo) { entDemographyInfo.setUpdateTime(DateUtils.getNowDate()); return entDemographyInfoMapper.updateEntDemographyInfo(entDemographyInfo); } - - /** - * 鍒犻櫎浜哄彛瀛︿俊鎭璞� - * - * @param ids 闇�瑕佸垹闄ょ殑鏁版嵁ID - * @return 缁撴灉 - */ + @Override public int deleteEntDemographyInfoByIds(String ids) { return entDemographyInfoMapper.deleteEntDemographyInfoByIds(Convert.toStrArray(ids)); } - - /** - * 鍒犻櫎浜哄彛瀛︿俊鎭俊鎭� - * - * @param infoId 浜哄彛瀛︿俊鎭疘D - * @return 缁撴灉 - */ + public int deleteEntDemographyInfoById(Long infoId) { return entDemographyInfoMapper.deleteEntDemographyInfoById(infoId); } -- Gitblit v1.9.1