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