forked from kidgrow-microservices-platform

dougang
2020-12-09 c8cdba0d34f57835a96233a7f0a7eaa35774dd6f
kidgrow-business/kidgrow-opration-center/kidgrow-opration-center-biz/src/main/resources/mapper/ScreeningOrganizationInfoMapper.xml
@@ -98,4 +98,23 @@
        <include refid="where"/>
        order by id desc
    </select>
    <select id="findByHospitalId" resultType="com.kidgrow.oprationcenter.model.ScreeningOrganizationInfo" parameterType="java.lang.Long">
        select
        <include refid="Column_List"/>
        from screening_organization_info
        where source_hospital_id=#{t}
    </select>
    <select id="findByKeyWord" resultType="com.kidgrow.oprationcenter.model.ScreeningOrganizationInfo" parameterType="java.util.Map" >
        SELECT
            *
        FROM
            screening_organization_info
        WHERE
            source_hospital_id=${p.id}
            <if test="p.keyword != null and p.keyword != ''">
             and organization_name LIKE '%${p.keyword}%'
            </if>
    </select>
</mapper>