37 lines
998 B
Java
37 lines
998 B
Java
package com.rzyc.mapper;
|
|
|
|
import com.rzyc.model.NewsClass;
|
|
import com.rzyc.model.NewsClassExample;
|
|
import org.apache.ibatis.annotations.Param;
|
|
import org.springframework.stereotype.Repository;
|
|
|
|
import java.util.List;
|
|
|
|
@Repository
|
|
public interface NewsClassMapper {
|
|
long countByExample(NewsClassExample example);
|
|
|
|
int deleteByExample(NewsClassExample example);
|
|
|
|
int deleteByPrimaryKey(String newsclassid);
|
|
|
|
int insert(NewsClass record);
|
|
|
|
int insertSelective(NewsClass record);
|
|
|
|
List<NewsClass> selectByExample(NewsClassExample example);
|
|
|
|
NewsClass selectByPrimaryKey(String newsclassid);
|
|
|
|
int updateByExampleSelective(@Param("record") NewsClass record, @Param("example") NewsClassExample example);
|
|
|
|
int updateByExample(@Param("record") NewsClass record, @Param("example") NewsClassExample example);
|
|
|
|
int updateByPrimaryKeySelective(NewsClass record);
|
|
|
|
int updateByPrimaryKey(NewsClass record);
|
|
|
|
/*动态分类列表*/
|
|
List<NewsClass> findAll();
|
|
}
|