You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
1.2 KiB
Java

package com.jingcheng.cms.mapper;
import com.jingcheng.cms.model.Article;
import com.jingcheng.cms.model.Category;
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<Article> {
int addArticle(Article article);
List<ArticleVo> getArticleListByCondition(@Param("title") String title,
@Param("firstCategory") Long firstCategory,
@Param("secondCategory") Long secondCategory,
@Param("fileType") Integer fileType,
@Param("state") Integer state);
List<Category> getFirstCategory();
List<Category> getSecondCategory(@Param("firstCategory") Long firstCategory);
List<ArticleVo> searchArticleListByCondition(@Param("param") String param,
@Param("firstCategory") Long firstCategory,
@Param("secondCategory") Long secondCategory);
}