1234567891011121314151617181920212223242526272829 |
- <?xml version="1.0" encoding="UTF-8"?>
- <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
- <mapper namespace="com.diagbot.mapper.LexiconMapper">
- <!-- 通用查询映射结果 -->
- <resultMap id="BaseResultMap" type="com.diagbot.entity.Lexicon">
- <id column="id" property="id" />
- <result column="is_deleted" property="isDeleted" />
- <result column="gmt_create" property="gmtCreate" />
- <result column="gmt_modified" property="gmtModified" />
- <result column="creator" property="creator" />
- <result column="modifier" property="modifier" />
- <result column="name" property="name" />
- <result column="is_has_common" property="isHasCommon" />
- </resultMap>
-
- <select id="getLexiconList" resultType="com.diagbot.dto.GetLexiconListDTO">
- SELECT
- gmt_modified,modifier,name
- FROM `lexicon`
- WHERE is_deleted="N"
- <if test="name!=null and name!=''">
- and name like concat('%',#{name},'%')
- </if>
- order by gmt_modified desc
- </select>
- </mapper>
|