From b23f8cd1438c2b3c6f7e334502de619ffbb7fdc7 Mon Sep 17 00:00:00 2001 From: linzhijie <19970921lzj> Date: 星期三, 24 三月 2021 19:24:01 +0800 Subject: [PATCH] 报告邮件标题跟随语言变换 --- src/main/java/com/ots/project/exam/service/ITQuestionService.java | 75 +++++++++++++++++++++++++++++++++---- 1 files changed, 67 insertions(+), 8 deletions(-) diff --git a/src/main/java/com/ots/project/exam/service/ITQuestionService.java b/src/main/java/com/ots/project/exam/service/ITQuestionService.java index 27c8874..364b295 100644 --- a/src/main/java/com/ots/project/exam/service/ITQuestionService.java +++ b/src/main/java/com/ots/project/exam/service/ITQuestionService.java @@ -1,28 +1,87 @@ package com.ots.project.exam.service; + import com.ots.project.exam.domain.TQuestion; import com.ots.project.exam.viewmodel.QuestionEditRequestVM; + import java.util.List; import java.util.Map; +/** + * 棰樼洰鍒楄〃Service鎺ュ彛 + * + * @author Shawn + * @date 2019-11-20 + */ public interface ITQuestionService { - + /** + * 鏌ヨ棰樼洰鍒楄〃 + * + * @param id 棰樼洰鍒楄〃ID + * @return 棰樼洰鍒楄〃 + */ TQuestion selectTQuestionById(Long id); + List<TQuestion> selectTQuestionByIds(List<Long> ids); + List<TQuestion> selectTQuestionByPermanentIds(List<String> ids); - + + /** + * 鏌ヨ棰樼洰鍒楄〃鍒楄〃 + * + * @param tQuestion 棰樼洰鍒楄〃 + * @return 棰樼洰鍒楄〃闆嗗悎 + */ List<TQuestion> selectTQuestionList(TQuestion tQuestion); + List<TQuestion> selectTQuestionsForProductAddQuestion(TQuestion tQuestion); - + + /** + * 鏂板棰樼洰鍒楄〃 + * + * @param tQuestion 棰樼洰鍒楄〃 + * @return 缁撴灉 + */ int insertTQuestion(TQuestion tQuestion); - + + /** + * 淇敼棰樼洰鍒楄〃 + * + * @param tQuestion 棰樼洰鍒楄〃 + * @return 缁撴灉 + */ int updateTQuestion(TQuestion tQuestion); - + + /** + * 鎵归噺鍒犻櫎棰樼洰鍒楄〃 + * + * @param ids 闇�瑕佸垹闄ょ殑鏁版嵁ID + * @return 缁撴灉 + */ int deleteTQuestionByIds(String ids); + int deleteQuestionContent(TQuestion tQuestion); - + + /** + * 鍒犻櫎棰樼洰鍒楄〃淇℃伅 + * + * @param id 棰樼洰鍒楄〃ID + * @return 缁撴灉 + */ int deleteTQuestionById(Long id); - + + /** + * 杩斿洖缁欑瓟棰榲ue绔殑鏁版嵁 + * + * @param + * @return + */ QuestionEditRequestVM getQuestionEditRequestVM(TQuestion question); - + + /** + * 鎻掑叆瀵煎叆鐨勯鐩� + * + * @param excelList + * @return + */ String insertImportQuestion(List<Map<Integer, String>> excelList); } -- Gitblit v1.9.1