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.

28 lines
1.2 KiB
Java

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