12345678910111213141516171819202122232425 |
- 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'")
- Map getTopic();
- @Update(value = "update tb_topic set name = #{topic} where id = #{id} ")
- void setTopic(Long id, String topic);
- }
|