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/EntDemographyParamServiceImpl.java | 59 ++++++----------------------------------------------------- 1 files changed, 6 insertions(+), 53 deletions(-) diff --git a/src/main/java/com/ots/project/exam/service/impl/EntDemographyParamServiceImpl.java b/src/main/java/com/ots/project/exam/service/impl/EntDemographyParamServiceImpl.java index a22da3d..80e093a 100644 --- a/src/main/java/com/ots/project/exam/service/impl/EntDemographyParamServiceImpl.java +++ b/src/main/java/com/ots/project/exam/service/impl/EntDemographyParamServiceImpl.java @@ -1,5 +1,4 @@ package com.ots.project.exam.service.impl; - import com.ots.common.utils.DateUtils; import com.ots.common.utils.StringUtils; import com.ots.common.utils.text.Convert; @@ -9,70 +8,36 @@ import com.ots.project.system.user.mapper.UserMapper; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; - import java.util.List; import java.util.Map; -/** - * 浜哄彛瀛﹀彉閲忓畾涔塖ervice涓氬姟灞傚鐞� - * - * @author ots - * @date 2019-12-11 - */ @Service public class EntDemographyParamServiceImpl implements IEntDemographyParamService { @Autowired private EntDemographyParamMapper entDemographyParamMapper; - @Autowired private UserMapper userMapper; - - - /** - * 鏌ヨ浜哄彛瀛﹀彉閲忓畾涔� - * - * @param paramId 浜哄彛瀛﹀彉閲忓畾涔塈D - * @return 浜哄彛瀛﹀彉閲忓畾涔� - */ + @Override public EntDemographyParam selectEntDemographyParamById(Long paramId) { return entDemographyParamMapper.selectEntDemographyParamById(paramId); } - - /** - * 鏌ヨ浜哄彛瀛﹀彉閲忓畾涔夊垪琛� - * - * @param entDemographyParam 浜哄彛瀛﹀彉閲忓畾涔� - * @return 浜哄彛瀛﹀彉閲忓畾涔� - */ + @Override public List<EntDemographyParam> selectEntDemographyParamList(EntDemographyParam entDemographyParam) { return entDemographyParamMapper.selectEntDemographyParamList(entDemographyParam); } - @Override public List<EntDemographyParam> selectEntDemographyParamListByParamIn(String paramIds) { return entDemographyParamMapper.selectEntDemographyParamListByParamIn(Convert.toStrArray(paramIds)); } - - /** - * 鏂板浜哄彛瀛﹀彉閲忓畾涔� - * - * @param entDemographyParam 浜哄彛瀛﹀彉閲忓畾涔� - * @return 缁撴灉 - */ + @Override public int insertEntDemographyParam(EntDemographyParam entDemographyParam) { entDemographyParam.setCreateTime(DateUtils.getNowDate()); return entDemographyParamMapper.insertEntDemographyParam(entDemographyParam); } - - /** - * 淇敼浜哄彛瀛﹀彉閲忓畾涔� - * - * @param entDemographyParam 浜哄彛瀛﹀彉閲忓畾涔� - * @return 缁撴灉 - */ + @Override public int updateEntDemographyParam(EntDemographyParam entDemographyParam) { if (StringUtils.isEmpty(entDemographyParam.getIsRequired())) { @@ -81,24 +46,12 @@ entDemographyParam.setUpdateTime(DateUtils.getNowDate()); return entDemographyParamMapper.updateEntDemographyParam(entDemographyParam); } - - /** - * 鍒犻櫎浜哄彛瀛﹀彉閲忓畾涔夊璞� - * - * @param ids 闇�瑕佸垹闄ょ殑鏁版嵁ID - * @return 缁撴灉 - */ + @Override public int deleteEntDemographyParamByIds(String ids) { return entDemographyParamMapper.deleteEntDemographyParamByIds(Convert.toStrArray(ids)); } - - /** - * 鍒犻櫎浜哄彛瀛﹀彉閲忓畾涔変俊鎭� - * - * @param paramId 浜哄彛瀛﹀彉閲忓畾涔塈D - * @return 缁撴灉 - */ + public int deleteEntDemographyParamById(Long paramId) { return entDemographyParamMapper.deleteEntDemographyParamById(paramId); } -- Gitblit v1.9.1