<?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="com.newfiber.api.pc.dao.RiverManage.HomePageDataMapper" > <resultMap id="oneMapInteraction" type="com.newfiber.api.pc.model.River.OneMapInteraction"> <result property="soleNumber" column="sole_number"/> <result property="soleName" column="sole_name"/> <result property="lon" column="lon"/> <result property="lat" column="lat"/> <result property="status" column="status"/> </resultMap> <select id="selectFlowMonitorSiteCount" resultType="int"> select count(id) from nf_monitor.station_base where platform_code = '17135' and st_name like concat('%',#{stName},'%') </select> <select id="selectFlowMonitorSite" resultMap="oneMapInteraction"> select st_code as sole_number,st_name as sole_name,lon,lat,`status` from nf_monitor.station_base where platform_code = '17135' and st_name like concat('%',#{stName},'%') </select> </mapper>