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/EntDemographyInfoServiceImpl.java |   57 +++++++++++++++++++++++++++++++++++++++++++++++++++------
 1 files changed, 51 insertions(+), 6 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 02df770..777b6ad 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,4 +1,5 @@
 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;
@@ -6,44 +7,88 @@
 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