linzhijie
2021-03-11 93af1c6ffb9ae0e894689ad3a37b548e57d54cff
src/main/java/com/ots/project/exam/service/ITExamPaperService.java
@@ -1,36 +1,98 @@
package com.ots.project.exam.service;
import com.ots.framework.web.domain.Ztree;
import com.ots.project.exam.domain.TExamPaper;
import com.ots.project.exam.domain.TExamReport;
import com.ots.project.exam.domain.TQuestion;
import com.ots.project.exam.dto.ExamPaperTitleItem;
import com.ots.project.system.dict.domain.DictData;
import java.util.List;
/**
 * 产品包列表Service接口
 *
 * @author ots
 * @date 2019-11-20
 */
public interface ITExamPaperService {
    /**
     * 查询产品包列表
     *
     * @param id 产品包列表ID
     * @return 产品包列表
     */
    TExamPaper selectTExamPaperById(Long id);
    /**
     * 查询产品包列表列表
     *
     * @param tExamPaper 产品包列表
     * @return 产品包列表集合
     */
    List<TExamPaper> selectTExamPaperList(TExamPaper tExamPaper);
    /**
     * 新增产品包列表
     *
     * @param tExamPaper 产品包列表
     * @return 结果
     */
    int insertTExamPaper(TExamPaper tExamPaper);
    /**
     * 修改产品包列表
     *
     * @param tExamPaper 产品包列表
     * @return 结果
     */
    int updateTExamPaper(TExamPaper tExamPaper);
    /**
     * 批量删除产品包列表
     *
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    int deleteTExamPaperByIds(String ids);
    /**
     * 删除产品包列表信息
     *
     * @param id 产品包列表ID
     * @return 结果
     */
    int deleteTExamPaperById(Long id);
    /**
     * 产品包列表
     * @param deletes
     * @return
     */
    List<TExamPaper> selectProdByDeleteList(List<Long> deletes);
    /**
     * 产品树
     * @return
     */
    List<Ztree> selectProdTree(String testType);
    List<TExamPaper> getUserPapers();
    /**
     * 更新deleted的状态
     * @return
     */
    int updateDeleted(TExamPaper tExamPaper);
    // 更新旧的数据然后入库
    List<TQuestion> updateInsertQuestion(List<TQuestion> questionList, String multilingual);
    int deleteProductContent(TExamPaper tExamPaper);
    void recallThaiInterface(TExamReport tExamReportResult, String reportType);
    List<ExamPaperTitleItem> getExamPaperTitleContent(TExamPaper tExamPaper);
    List<DictData> getType(Long id);
}