package com.jingcheng.cms.mapper; import com.jingcheng.cms.model.Article; import com.jingcheng.cms.util.CommonMapper; import com.jingcheng.cms.vo.ArticleVo; import org.apache.ibatis.annotations.Param; import org.springframework.stereotype.Repository; import java.util.List; @Repository public interface ArticleMapper extends CommonMapper
{ int addArticle(Article article); List getArticleListByCondition(@Param("title") String title, @Param("firstCategory") Long firstCategory, @Param("secondCategory") Long secondCategory, @Param("fileType") Integer fileType, @Param("state") Integer state); List getFirstCategory(); List getSecondCategory(@Param("firstCategory") Long firstCategory); List searchArticleListByCondition(@Param("param") String param, @Param("firstCategory") Long firstCategory, @Param("secondCategory") Long secondCategory); }