<?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.DisclaimerInformationMapper">

	<!-- 通用查询映射结果 -->
	<resultMap id="BaseResultMap" type="com.diagbot.entity.DisclaimerInformation">
		<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="version_id" property="versionId" />
		<result column="title" property="title" />
		<result column="description" property="description" />
		<result column="order_no" property="orderNo" />
		<result column="status" property="status" />
		<result column="disclaimer_code" property="disclaimerCode" />
		<result column="remark" property="remark" />
	</resultMap>
	<select id="getDisclaimerInformationAll" resultType="com.diagbot.dto.DisclaimerInformationDTO">
		SELECT
		id as id,
		gmt_create as gmtCreate,
		modifier as modifier,
		version_id as versionId,
		title as title,
		description as description,
		order_no as orderNo,
		status as status,
		disclaimer_code as disclaimerCode,
		remark as remark
		FROM icss_disclaimer_information
		WHERE is_deleted = "N"
		<if test="disAll.title != null">
		and title like concat('%',#{disAll.title},'%')
		</if>
		ORDER BY gmt_create DESC
	</select>
</mapper>
