<?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>
|