package com.testor.module.train.course.dao;

import com.testor.module.train.course.model.domain.TTrainSmallNode;
import com.tongtech.tfw.backend.common.models.supers.SuperDao;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 课程小节—安全培训教育Mapper接口
 *
 * @author testor-framework
 * @date 2022-07-25 18:10:52
 */
public interface TTrainSmallNodeDao extends SuperDao<TTrainSmallNode> {
    List<TTrainSmallNode> getTreadInformation(@Param("sectionIds") List<String> sectionIds, @Param("loginUserId") String loginUserId);

    List<TTrainSmallNode> getExaminationInformation(@Param("sectionIds")List<Object> sectionIds, @Param("loginUserId")  String loginUserId,@Param("managementId") String managementId);

    /**
     * 获取百分比
     * @param loginUserId
     * @param managementId
     * @return
     */
    String  getPercentage(@Param("sectionIds")List<Object> sectionIds, @Param("loginUserId")  String loginUserId,@Param("managementId") String managementId);

    /**
     * 获取百分比
     * @param loginUserId
     * @param managementId
     * @return
     */
    String  getPercentageByNodeIds(@Param("sectionIds")List<Object> sectionIds,@Param("nodeIds")List<Object> nodeIds, @Param("loginUserId")  String loginUserId,@Param("managementId") String managementId);




}
