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

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.conference.SchoolConference;
import yangtz.cs.liu.campus.vo.conference.SchoolConferenceVO;

import java.util.List;

@Mapper
public interface SchoolConferenceMapper extends BaseMapper<SchoolConference> {
    String selectListJoin = "select a.*,b.area_no from school_conference a left join school_area_detail b on a.area_id = b.area_id ${ew.customSqlSegment}";

    @Select(selectListJoin)
    List<SchoolConference> queryListModified(@Param("ew") Wrapper queryWrapper);

    List<SchoolConferenceVO> queryList(SchoolConference conference);

    SchoolConferenceVO getInfo(Long id);
}
