com.nb6868.onex.cms.dao.ArticleDao Maven / Gradle / Ivy
package com.nb6868.onex.cms.dao;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.nb6868.onex.cms.entity.ArticleEntity;
import com.nb6868.onex.common.jpa.BaseDao;
import com.nb6868.onex.common.pojo.Const;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
/**
* 文章
*
* @author Charles [email protected]
*/
@Mapper
public interface ArticleDao extends BaseDao {
@Select("SELECT cms_article.*, cms_article_category.name as article_category_name " +
"FROM cms_article LEFT JOIN cms_article_category ON cms_article.article_category_id = cms_article_category.id " +
"${ew.customSqlSegment}")
@Override
> E selectPage(@Param(Const.PAGE) E page, Wrapper ew);
}