From 93af1c6ffb9ae0e894689ad3a37b548e57d54cff Mon Sep 17 00:00:00 2001 From: linzhijie <19970921lzj> Date: 星期四, 11 三月 2021 19:10:07 +0800 Subject: [PATCH] 有注释的测评系统业务代码 --- src/main/java/com/ots/project/exam/service/impl/EntDemographyParamServiceImpl.java | 59 +++++++++++++++++++++++++++++++++++++++++++++++++++++------ 1 files changed, 53 insertions(+), 6 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 80e093a..a22da3d 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,4 +1,5 @@ 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; @@ -8,36 +9,70 @@ 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())) { @@ -46,12 +81,24 @@ 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