1
0
lsw 1 nedēļu atpakaļ
vecāks
revīzija
b51d5e4f7f

+ 0 - 1
ruoyi-admin/src/main/resources/mapper/work/FollowRecordMapper.xml

@@ -74,7 +74,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
                 LEFT JOIN tb_patient p ON p.id = v.pat_id
         WHERE
             v.doctor_code =#{doctorCode}
-            AND v.hospital_status = '3'
         <if test="name != null  and name != ''"> AND p.name like concat('%', #{name}, '%')</if>
         ORDER BY v.id DESC
     </select>

+ 1 - 1
ruoyi-admin/src/main/resources/mapper/work/UserMapper.xml

@@ -19,7 +19,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
     <!--后台首页统计-->
     <select id="statistics" resultType="java.util.Map">
         SELECT
-                ( SELECT COUNT( id ) FROM tb_visit WHERE doctor_code =#{userName} AND hospital_status = '3') AS visit,
+                ( SELECT COUNT( id ) FROM tb_visit WHERE doctor_code =#{userName}) AS visit,
                 ( SELECT COUNT( id ) FROM tb_follow_record WHERE user_id =#{userId} AND type = 0 ) AS up,
                 ( SELECT COUNT( id ) FROM tb_follow_record WHERE user_id =#{userId} AND type = 1 ) AS record,
                 ( SELECT COUNT( id ) FROM tb_knowledge WHERE user_id =#{userId} ) AS knowledge

+ 0 - 3
ruoyi-admin/src/main/resources/mapper/work/VisitMapper.xml

@@ -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">