package yangtz.cs.liu.campus.mapper.resources;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import yangtz.cs.liu.campus.domain.resources.SchoolResourcesDetails;
import yangtz.cs.liu.campus.vo.resource.SchoolResourcesDetailsVo;

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

@Mapper
public interface SchoolResourcesDetailsMapper extends BaseMapper<SchoolResourcesDetails> {
//    @Select("select a1.*,b1.name resources_sort from school_resources_details a1 left join school_resources b1 on b1.id = a1.resources_id ${ew.customSqlSegment}")
//    List<SchoolResourcesDetails> selectListSelf(@Param("ew") Wrapper queryWrapper);

    int updateDownload(Map map);

    int updateThumbsUp(Map map);

    int updateCollect(Map map);

    /**
     *查询资源文档信息
     */
    List<SchoolResourcesDetailsVo> queryList(SchoolResourcesDetailsVo schoolResourcesDetailsVo);
}
