|
@@ -5,28 +5,29 @@
|
|
|
|
|
|
<!-- 通用查询映射结果 -->
|
|
|
<resultMap id="BaseResultMap" type="com.diagbot.entity.TemplateInfo">
|
|
|
- <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="hospital_id" property="hospitalId"/>
|
|
|
- <result column="sex" property="sex"/>
|
|
|
- <result column="preview" property="preview"/>
|
|
|
- <result column="data_json" property="dataJson"/>
|
|
|
- <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="hospital_id" property="hospitalId" />
|
|
|
+ <result column="sex" property="sex" />
|
|
|
+ <result column="age" property="age" />
|
|
|
+ <result column="pat_name" property="patName" />
|
|
|
+ <result column="doctor_name" property="doctorName" />
|
|
|
+ <result column="inquiry_code" property="inquiryCode" />
|
|
|
+ <result column="card_no" property="cardNo" />
|
|
|
+ <result column="dept_name" property="deptName" />
|
|
|
+ <result column="inquiry_date" property="inquiryDate" />
|
|
|
+ <result column="preview" property="preview" />
|
|
|
+ <result column="data_json" property="dataJson" />
|
|
|
+ <result column="remark" property="remark" />
|
|
|
</resultMap>
|
|
|
|
|
|
<select id="getTemplatePages" resultType="com.diagbot.dto.TemplateInfoPageDTO">
|
|
|
- SELECT
|
|
|
- id AS id,
|
|
|
- gmt_create AS gmtCreate,
|
|
|
- NAME AS name,
|
|
|
- sex AS sex,
|
|
|
- preview AS preview,
|
|
|
- remark AS remark
|
|
|
+ SELECT distinct *
|
|
|
FROM
|
|
|
demo_template_info
|
|
|
WHERE is_deleted = "N"
|
|
@@ -36,7 +37,5 @@
|
|
|
<if test="name != null and name != ''">
|
|
|
and UPPER(TRIM(name)) like concat('%',UPPER(TRIM(#{name})),'%')
|
|
|
</if>
|
|
|
- ORDER BY gmt_create DESC
|
|
|
-
|
|
|
</select>
|
|
|
</mapper>
|