|
@@ -1,21 +1,41 @@
|
|
|
<?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">
|
|
|
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
+ "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
<mapper namespace="com.diagbot.mapper.KlLexiconMapper">
|
|
|
|
|
|
<!-- 通用查询映射结果 -->
|
|
|
<resultMap id="BaseResultMap" type="com.diagbot.entity.KlLexicon">
|
|
|
- <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="code" property="code" />
|
|
|
- <result column="is_has_common" property="isHasCommon" />
|
|
|
- <result column="only_one" property="onlyOne" />
|
|
|
- <result column="can_change" property="canChange" />
|
|
|
- <result column="remark" property="remark" />
|
|
|
+ <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="code" property="code"/>
|
|
|
+ <result column="is_has_common" property="isHasCommon"/>
|
|
|
+ <result column="only_one" property="onlyOne"/>
|
|
|
+ <result column="can_change" property="canChange"/>
|
|
|
+ <result column="remark" property="remark"/>
|
|
|
</resultMap>
|
|
|
|
|
|
+ <select id="getPage"
|
|
|
+ parameterType="com.diagbot.vo.KlLexiconVO"
|
|
|
+ resultType="com.diagbot.dto.KlLexiconDTO">
|
|
|
+ SELECT
|
|
|
+ *
|
|
|
+ FROM
|
|
|
+ `kl_lexicon`
|
|
|
+ WHERE
|
|
|
+ is_deleted = "N"
|
|
|
+ <if test="name!=null and name!=''">
|
|
|
+ AND UPPER(name) LIKE CONCAT('%', UPPER(trim(#{name})), '%')
|
|
|
+ </if>
|
|
|
+ <if test="code!=null">
|
|
|
+ AND UPPER(code) LIKE CONCAT('%', UPPER(trim(#{code})), '%')
|
|
|
+ </if>
|
|
|
+ ORDER BY
|
|
|
+ gmt_modified DESC
|
|
|
+ </select>
|
|
|
+
|
|
|
</mapper>
|