package cn.wisenergy.chnmuseum.party.mapper; import cn.wisenergy.chnmuseum.party.model.LearningContentBoard; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import org.apache.ibatis.annotations.Select; import java.util.List; /** * <p> * 学习内容展板 Mapper 接口 * </p> * * @author Danny Lee * @since 2021-03-16 */ public interface LearningContentBoardMapper extends BaseMapper<LearningContentBoard> { @Select("SELECT lcb.*, eb.`name` as exhibition_board_name FROM learning_content_board lcb, exhibition_board eb WHERE lcb.learning_content_id=eb.id and lcb.learning_content_id = #{learningContentId}") List<LearningContentBoard> selectBoardListByLearningContentId(String learningContentId); }