12345678910111213141516171819202122232425262728 |
- package com.gis.mapper;
- import com.gis.domain.po.CommentEntity;
- import org.apache.ibatis.annotations.Mapper;
- import org.apache.ibatis.annotations.Select;
- import org.apache.ibatis.annotations.Update;
- import org.springframework.stereotype.Component;
- import java.util.List;
- import java.util.Map;
- /**
- * 公共mapper
- */
- @Component
- @Mapper
- public interface CommonMapper extends IBaseMapper<CommentEntity, Long> {
- @Select(value = "select * from tb_topic where rec_status = 'A' ")
- List<Map> getTopic();
- @Update(value = "update tb_topic set display = 1 where id = #{id} ")
- void setTopic(Long id);
- @Update(value = "update tb_topic set display = 0 ")
- void setAllDisable();
- }
|