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