医院废弃物信息化管理平台
“mitao”
2025-12-24 3763145f34d7706923d55edc32f5cfbc8bc08b92
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="cn.besteam.modules.medical.mapper.MwCollectionPointMapper">
    <select id="queryPageCollectList" resultType="cn.besteam.modules.medical.vo.MwCollectionPointVO">
        select
        cr.id , cr.create_time ,
        cr.hospital_name , cr.hospital_id , cr.office_id , cr.office_name ,
        cr.name , cr.nature
        from (select * from mw_collection_point as cr
        <where>
            <if test="dto.hospitalIdList != null and dto.hospitalIdList.size > 0 ">
                and cr.hospital_id in
                <foreach collection="dto.hospitalIdList" item="tempId" open="(" close=")" separator=",">
                    #{tempId}
                </foreach>
            </if>
            <if test="dto.name !=null and dto.name !='' ">
                and cr.name like concat('%' , #{dto.name} , '%')
            </if>
            <if test="dto.nature !=null">
                and cr.nature = #{dto.nature}
            </if>
        </where>
        ) cr
        order by cr.create_time desc
    </select>
 
    <select id="getPointOffice" resultType="String">
        select GROUP_CONCAT(office_id) from mw_collection_point
        where FIND_IN_SET(#{officeId},office_id)
    </select>
</mapper>