CommonMapper.java 624 B

12345678910111213141516171819202122232425
  1. package com.gis.mapper;
  2. import com.gis.domain.po.CommentEntity;
  3. import org.apache.ibatis.annotations.Mapper;
  4. import org.apache.ibatis.annotations.Select;
  5. import org.apache.ibatis.annotations.Update;
  6. import org.springframework.stereotype.Component;
  7. import java.util.List;
  8. import java.util.Map;
  9. /**
  10. * 公共mapper
  11. */
  12. @Component
  13. @Mapper
  14. public interface CommonMapper extends IBaseMapper<CommentEntity, Long> {
  15. @Select(value = "select * from tb_topic where rec_status = 'A'")
  16. Map getTopic();
  17. @Update(value = "update tb_topic set name = #{topic} where id = #{id} ")
  18. void setTopic(Long id, String topic);
  19. }