<?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.jfpt.survey.mapper.SurveyMapper">
|
|
<!-- 通用查询映射结果 -->
|
<resultMap id="surveyResultMap" type="org.springblade.jfpt.survey.entity.Survey">
|
<id column="id" property="id"/>
|
<result column="snumber" property="snumber"/>
|
<result column="sname" property="sname"/>
|
<result column="address" property="address"/>
|
<result column="coordinate" property="coordinate"/>
|
<result column="jid" property="jid"/>
|
<result column="tid" property="tid"/>
|
<result column="surtime" property="surtime"/>
|
<result column="remark " property="remark "/>
|
<result column="jd" property="jd"/>
|
<result column="wd" property="wd"/>
|
</resultMap>
|
|
|
<select id="selectSurveyPage" resultMap="surveyResultMap">
|
select * from sys_survey where is_deleted = 0
|
</select>
|
|
<insert id="s">
|
INSERT INTO sys_survey (snumber,sname,address,coordinate,jid,tid,surtime,remark,jd,wd) VALUES (#{snumber},#{sname},#{address},POINT(#{jd},#{wd}),#{jid},#{tid},#{surtime},
|
#{remark},#{jd},#{wd})
|
</insert>
|
|
</mapper>
|