forked from kidgrow-microservices-platform

zxh
2020-09-03 94e5025618f886d6ed414163c46e1e03cfc5412c
kidgrow-business/kidgrow-usercenter/kidgrow-usercenter-biz/src/main/resources/mapper/SysHospitalMapper.xml
@@ -209,10 +209,10 @@
                            <when test="inx == 5">
                                <if test="itemto.flag">
                                    AND
                                    HOS.create_user_id = #{itemto.object}
                                    hospitals.create_user_id = #{itemto.object}
                                </if>
                                <if test="!itemto.flag">
                                    or (HOS.create_user_id = #{itemto.object} and HOS.is_del = 0 and HOS.enabled=1)
                                    or (hospitals.create_user_id = #{itemto.object} and HOS.is_del = 0 and HOS.enabled=1)
                                </if>
                            </when>
                            <otherwise>
@@ -258,7 +258,8 @@
        HOS.create_time,
        HOS.is_del hosisdel,
        HOS.enabled hosenabled,
        ORG.id AS hosorgid
        ORG.id AS hosorgid,
        HOS.create_user_id
        FROM
        sys_hospital HOS
        LEFT JOIN sys_organization ORG ON HOS.org_id = ORG.id and ORG.is_del=0
@@ -273,7 +274,7 @@
        where is_del=0 and enabled=1 and hospital_name LIKE concat('%',#{hospitalName},'%')
        order by hospital_name desc
    </select>
    <select id="chartHospital" resultType="int" parameterType="integer">
    <select id="chartHospital" resultType="int" parameterType="int">
        SELECT
        count( DISTINCT hospital_name ) hospitalCount
        FROM