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/ITSubjectService.java | 64 ++++++++++++++++++++++++++++--- 1 files changed, 57 insertions(+), 7 deletions(-) diff --git a/src/main/java/com/ots/project/exam/service/ITSubjectService.java b/src/main/java/com/ots/project/exam/service/ITSubjectService.java index 07138cc..35fd4c6 100644 --- a/src/main/java/com/ots/project/exam/service/ITSubjectService.java +++ b/src/main/java/com/ots/project/exam/service/ITSubjectService.java @@ -1,22 +1,72 @@ package com.ots.project.exam.service; + import com.ots.project.exam.domain.TSubject; + import java.util.List; +/** + * 缁村害琛⊿ervice鎺ュ彛 + * + * @author ots + * @date 2019-12-09 + */ public interface ITSubjectService { - + /** + * 鏌ヨ缁村害琛� + * + * @param id 缁村害琛↖D + * @return 缁村害琛� + */ public TSubject selectTSubjectById(Long id); + public TSubject selectTSubjectAndTLeveById(Long id); - + + /** + * 鏌ヨ缁村害琛ㄥ垪琛� + * + * @param tSubject 缁村害琛� + * @return 缁村害琛ㄩ泦鍚� + */ public List<TSubject> selectTSubjectList(TSubject tSubject); + public List<TSubject> selectTSubjectList(); - + + /** + * 鏂板缁村害琛� + * + * @param tSubject 缁村害琛� + * @return 缁撴灉 + */ public int insertTSubject(TSubject tSubject); - + + /** + * 淇敼缁村害琛� + * + * @param tSubject 缁村害琛� + * @return 缁撴灉 + */ public int updateTSubject(TSubject tSubject); - + + /** + * 鎵归噺鍒犻櫎缁村害琛� + * + * @param ids 闇�瑕佸垹闄ょ殑鏁版嵁ID + * @return 缁撴灉 + */ public int deleteTSubjectByIds(String ids); - + + /** + * 鍒犻櫎缁村害琛ㄤ俊鎭� + * + * @param id 缁村害琛↖D + * @return 缁撴灉 + */ public int deleteTSubjectById(Long id); - + + /** + * 鏍规嵁鏂囦欢绫诲瀷鐨勭殑妯℃澘鑾峰緱缁村害瀵瑰簲鐨勭鐩� + */ + public List<TSubject> selectTSubjectAndTLeveByTemplateId(String questionTemplateId); + } -- Gitblit v1.9.1