|
@@ -1,20 +1,21 @@
|
|
|
<?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.LisConfigMapper">
|
|
|
|
|
|
<!-- 通用查询映射结果 -->
|
|
|
<resultMap id="BaseResultMap" type="com.diagbot.entity.LisConfig">
|
|
|
- <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="hospital_id" property="hospitalId" />
|
|
|
- <result column="his_name" property="hisName" />
|
|
|
- <result column="his_detail_name" property="hisDetailName" />
|
|
|
- <result column="unique_name" property="uniqueName" />
|
|
|
- <result column="unique_code" property="uniqueCode" />
|
|
|
+ <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="hospital_id" property="hospitalId"/>
|
|
|
+ <result column="his_name" property="hisName"/>
|
|
|
+ <result column="his_detail_name" property="hisDetailName"/>
|
|
|
+ <result column="unique_name" property="uniqueName"/>
|
|
|
+ <result column="unique_code" property="uniqueCode"/>
|
|
|
</resultMap>
|
|
|
|
|
|
<!-- 分页查询 -->
|
|
@@ -39,4 +40,91 @@
|
|
|
</if>
|
|
|
order by a.gmt_modified desc
|
|
|
</select>
|
|
|
+
|
|
|
+ <select id="getLisPacksIndex" resultType="com.diagbot.entity.LisConfig"
|
|
|
+ parameterType="com.diagbot.vo.RetrievalVO">
|
|
|
+ SELECT
|
|
|
+ *
|
|
|
+ FROM
|
|
|
+ `tran_lis_config`
|
|
|
+ WHERE
|
|
|
+ is_deleted = "N"
|
|
|
+ AND his_detail_name IS NULL
|
|
|
+ <if test="hospitalId!=null">
|
|
|
+ and hospital_id=#{hospitalId}
|
|
|
+ </if>
|
|
|
+ <if test="inputStr!=null and inputStr!=''">
|
|
|
+ and his_name = #{inputStr}
|
|
|
+ </if>
|
|
|
+ UNION
|
|
|
+ SELECT
|
|
|
+ *
|
|
|
+ FROM
|
|
|
+ `tran_lis_config`
|
|
|
+ WHERE
|
|
|
+ is_deleted = "N"
|
|
|
+ AND his_detail_name IS NULL
|
|
|
+ <if test="hospitalId!=null">
|
|
|
+ and hospital_id=#{hospitalId}
|
|
|
+ </if>
|
|
|
+ <if test="inputStr!=null and inputStr!=''">
|
|
|
+ and his_name like concat(#{inputStr},"%")
|
|
|
+ </if>
|
|
|
+ UNION
|
|
|
+ SELECT
|
|
|
+ *
|
|
|
+ FROM
|
|
|
+ `tran_lis_config`
|
|
|
+ WHERE
|
|
|
+ is_deleted = "N"
|
|
|
+ AND his_detail_name IS NULL
|
|
|
+ <if test="hospitalId!=null">
|
|
|
+ and hospital_id=#{hospitalId}
|
|
|
+ </if>
|
|
|
+ <if test="inputStr!=null and inputStr!=''">
|
|
|
+ and his_name like concat("%",#{inputStr},"%")
|
|
|
+ </if>
|
|
|
+ </select>
|
|
|
+
|
|
|
+ <select id="getLisIndex" resultType="com.diagbot.entity.LisConfig"
|
|
|
+ parameterType="com.diagbot.vo.RetrievalVO">
|
|
|
+ SELECT
|
|
|
+ *
|
|
|
+ FROM
|
|
|
+ `tran_lis_config`
|
|
|
+ WHERE
|
|
|
+ is_deleted = "N"
|
|
|
+ <if test="hospitalId!=null">
|
|
|
+ and hospital_id=#{hospitalId}
|
|
|
+ </if>
|
|
|
+ <if test="inputStr!=null and inputStr!=''">
|
|
|
+ and his_detail_name = #{inputStr}
|
|
|
+ </if>
|
|
|
+ UNION
|
|
|
+ SELECT
|
|
|
+ *
|
|
|
+ FROM
|
|
|
+ `tran_lis_config`
|
|
|
+ WHERE
|
|
|
+ is_deleted = "N"
|
|
|
+ <if test="hospitalId!=null">
|
|
|
+ and hospital_id=#{hospitalId}
|
|
|
+ </if>
|
|
|
+ <if test="inputStr!=null and inputStr!=''">
|
|
|
+ and his_detail_name like concat(#{inputStr},"%")
|
|
|
+ </if>
|
|
|
+ UNION
|
|
|
+ SELECT
|
|
|
+ *
|
|
|
+ FROM
|
|
|
+ `tran_lis_config`
|
|
|
+ WHERE
|
|
|
+ is_deleted = "N"
|
|
|
+ <if test="hospitalId!=null">
|
|
|
+ and hospital_id=#{hospitalId}
|
|
|
+ </if>
|
|
|
+ <if test="inputStr!=null and inputStr!=''">
|
|
|
+ and his_detail_name like concat("%",#{inputStr},"%")
|
|
|
+ </if>
|
|
|
+ </select>
|
|
|
</mapper>
|