陈昶聿
2 天以前 e06a9091653be33242a2840b7cef10af7b97fff4
smartor/src/main/resources/mapper/smartor/PatMedInhospMapper.xml
@@ -1013,7 +1013,8 @@
        where 1=1
        and del_flag = 0
        and service_type=2
        and is_visit_again = 2
        and visit_count is not null
        and visit_count = 1
        <if test="orgid != null and orgid != ''">
            and orgid = #{orgid}
        </if>
@@ -1042,7 +1043,8 @@
        where 1=1
        and del_flag = 0
        and service_type=2
        and is_visit_again = 1
        and visit_count is not null
        and visit_count > 1
        <if test="orgid != null and orgid != ''">
            and orgid = #{orgid}
        </if>