|
@@ -7,6 +7,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<select id="selectList" resultType="com.ruoyi.web.work.domain.Visit">
|
|
|
select * from tb_visit
|
|
|
<where>
|
|
|
+ tb_visit.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>
|
|
@@ -47,6 +48,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
JOIN
|
|
|
tb_patient ON tb_visit.pat_id = tb_patient.id
|
|
|
<where>
|
|
|
+ tb_visit.hospital_status = '3'
|
|
|
<if test="patientName!='' and patientName!=null">
|
|
|
AND tb_patient.`name` like concat('%', #{patientName}, '%')
|
|
|
</if>
|
|
@@ -76,7 +78,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</select>
|
|
|
|
|
|
<select id="selectVisitsByCardId" resultType="com.ruoyi.web.work.domain.Visit">
|
|
|
- select * from tb_visit where card_id=#{cardId}
|
|
|
+ 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">
|