package com.xhkjedu.sapi.mapper.research;

import com.xhkjedu.base.TkMapper;
import com.xhkjedu.sapi.model.research.TResearch;
import com.xhkjedu.sapi.vo.research.ResearchVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * @ClassName ResearchMapper
 * Description 教研
 * Author WN
 * Date 2020/6/11 18:04
 **/
@Repository
public interface ResearchMapper extends TkMapper<TResearch> {
    /**
     *功能描述 获取所有教研信息
     * @author WN
     * @date 2020/6/11
     * @param  * @param schoolid
     * @param rorder
     * @return java.util.List<com.xhkjedu.vo.research.ResearchVo>
     */
    List<Map<String, String>> listResearchs(@Param("schoolid") Integer schoolid, @Param("rorder") String rorder);

    /**
     *功能描述 详情
     * @author WN
     * @date 2020/6/11
     * @param  * @param researchid
     * @return com.xhkjedu.model.research.TResearch
     */
    TResearch getResearchById(@Param("researchid") Integer researchid);

    /**
     *功能描述  修改阅读次数
     * @author WN
     * @date 2020/6/12
     * @param  * @param researchid
     * @return java.lang.Integer
     */
    Integer updateReadnum(@Param("researchid") Integer researchid);

    /**
     *功能描述  修改教研
     * @author WN
     * @date 2020/7/17
     * @param  * @param research
     * @return java.lang.Integer
     */
    Integer updateResourch(@Param("research") TResearch research);

    /**
     *功能描述  修改教研mp4code
     * @author WN
     * @date 2020/8/25
     * @param  * @param research
     * @return java.lang.Integer
     */
    Integer updateResourceMp4code(@Param("research") TResearch research);

    /**
     * 获取教研文件
     * @Param [researchid]
     * @Author ywx
     * @Date 2021/10/26 15:41
     * @return java.util.List<java.lang.String>
     **/
    TResearch getResarchpath(Integer researchid);
}
