<?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="org.springblade.modules.reported.mapper.ReportedMapper">
|
|
<!-- 通用查询映射结果 -->
|
<resultMap id="reportedResultMap" type="org.springblade.modules.reported.entity.Reported">
|
<id column="id" property="id"/>
|
<result column="snumber" property="snumber"/>
|
<result column="sname" property="sname"/>
|
<result column="reclass" property="reclass"/>
|
<result column="describe" property="describe"/>
|
<result column="address" property="address"/>
|
<result column="coordinate" property="coordinate"/>
|
<result column="jd" property="jd"/>
|
<result column="wd" property="wd"/>
|
</resultMap>
|
|
|
<select id="selectReportedPage" resultMap="reportedResultMap">
|
select * from sys_reported where is_deleted = 0
|
</select>
|
|
<insert id="s">
|
INSERT INTO sys_reported (snumber,sname,reclass,describe,address,coordinate,jd,wd) VALUES (#{snumber},#{sname},#{reclass},#{describe},#{address},POINT(#{jd},#{wd}),#{jd},#{wd})
|
</insert>
|
|
</mapper>
|