kaiyu
2020-12-07 cf42a18aba4da77141dd0ea65918444636f899e1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<?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.moral.mapper.PollutionSourcPointMapper">
    <resultMap id="BaseResultMap" type="com.moral.entity.PollutionSourcePoint" >
        <id column="id" property="id" jdbcType="INTEGER" />
        <result column="monitor_point_id" property="monitorPointId" jdbcType="INTEGER" />
        <result column="longitude" property="longitude" jdbcType="NUMERIC" />
        <result column="latitude" property="latitude" jdbcType="NUMERIC" />
    </resultMap>
 
    <select id="selectByMonitorPointId" resultType="com.moral.entity.PollutionSourcePoint" resultMap="BaseResultMap">
        select * from pollution_source_point
        where monitor_point_id = #{monitorPointId}
    </select>
 
</mapper>