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/mapper/TSubjectMapper.java |   59 +++++++++++++++++++++++++++++++++++++++++++++++++++++------
 1 files changed, 53 insertions(+), 6 deletions(-)

diff --git a/src/main/java/com/ots/project/exam/mapper/TSubjectMapper.java b/src/main/java/com/ots/project/exam/mapper/TSubjectMapper.java
index eb6722d..fdf272d 100644
--- a/src/main/java/com/ots/project/exam/mapper/TSubjectMapper.java
+++ b/src/main/java/com/ots/project/exam/mapper/TSubjectMapper.java
@@ -1,21 +1,68 @@
 package com.ots.project.exam.mapper;
+
 import com.ots.project.exam.domain.TSubject;
+
 import java.util.List;
 
+/**
+ * 缁村害琛∕apper鎺ュ彛
+ *
+ * @author ots
+ * @date 2019-12-09
+ */
 public interface TSubjectMapper {
-    
+    /**
+     * 鏌ヨ缁村害琛�
+     *
+     * @param id 缁村害琛↖D
+     * @return 缁村害琛�
+     */
     TSubject selectTSubjectById(Long id);
-    
+
+    /**
+     * 鏌ヨ缁村害琛ㄥ垪琛�
+     *
+     * @param tSubject 缁村害琛�
+     * @return 缁村害琛ㄩ泦鍚�
+     */
     List<TSubject> selectTSubjectList(TSubject tSubject);
+
+
     List<TSubject> selectTSubjectList();
-    
+
+    /**
+     * 鏂板缁村害琛�
+     *
+     * @param tSubject 缁村害琛�
+     * @return 缁撴灉
+     */
     int insertTSubject(TSubject tSubject);
-    
+
+    /**
+     * 淇敼缁村害琛�
+     *
+     * @param tSubject 缁村害琛�
+     * @return 缁撴灉
+     */
     int updateTSubject(TSubject tSubject);
-    
+
+    /**
+     * 鍒犻櫎缁村害琛�
+     *
+     * @param id 缁村害琛↖D
+     * @return 缁撴灉
+     */
     int deleteTSubjectById(Long id);
-    
+
+    /**
+     * 鎵归噺鍒犻櫎缁村害琛�
+     *
+     * @param ids 闇�瑕佸垹闄ょ殑鏁版嵁ID
+     * @return 缁撴灉
+     */
     int deleteTSubjectByIds(String[] ids);
+
     TSubject selectTSubjectAndTLeveById(Long id);
+
     List<TSubject> selectTSubjectAndTLeveByTemplateId(String questionTemplateId);
 }

--
Gitblit v1.9.1