|
@@ -7,7 +7,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<select id="queryList" resultType="com.ruoyi.web.work.domain.Visit">
|
|
|
select * from tb_visit v
|
|
|
<where>
|
|
|
- v.hospital_status = '3'
|
|
|
<if test="id != null "> and id = #{id}</if>
|
|
|
<if test="patId != null "> and pat_id = #{patId}</if>
|
|
|
<if test="cardId != null "> and card_id = #{cardId}</if>
|
|
@@ -58,7 +57,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
LEFT JOIN tb_patient p ON p.id = v.pat_id
|
|
|
LEFT JOIN sys_user u ON u.user_name = v.doctor_code
|
|
|
<where>
|
|
|
- v.hospital_status = '3'
|
|
|
<if test="name!='' and name!=null">
|
|
|
AND p.name like concat('%', #{name}, '%')
|
|
|
</if>
|
|
@@ -84,7 +82,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
|
<select id="selectVisitsByCardId" resultType="com.ruoyi.web.work.domain.Visit">
|
|
|
select * from tb_visit where card_id=#{cardId}
|
|
|
- and tb_visit.hospital_status = '3'
|
|
|
</select>
|
|
|
|
|
|
<select id="selectVisitsByPatId" resultType="com.ruoyi.web.work.domain.Visit">
|