<?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.wj.mapper.WjMapper">
|
|
<!-- 通用查询映射结果 -->
|
<resultMap id="wjResultMap" type="org.springblade.jfpt.wj.entity.Wj">
|
<id column="id" property="id"/>
|
<result column="jid" property="jid"/>
|
<result column="address" property="address"/>
|
<result column="rid" property="rid"/>
|
<result column="snumber" property="snumber"/>
|
<result column="tid" property="tid"/>
|
<result column="sid" property="sid"/>
|
</resultMap>
|
|
|
<select id="selectWjPage" resultMap="wjResultMap">
|
select * from sys_wj where is_deleted = 0
|
</select>
|
|
|
<insert id="insertfeed" useGeneratedKeys="true" keyProperty="id" parameterType="org.springblade.jfpt.wj.entity.Wj">
|
INSERT INTO sys_wj (jid,address) VALUES (#{jid},#{address})
|
</insert>
|
|
<select id="selectInfo" resultMap="wjResultMap">
|
select * from sys_wj where jid=#{jid}
|
</select>
|
|
<delete id="del">
|
delete from sys_wj where id=#{id}
|
</delete>
|
|
<!--路线反馈图片-->
|
<insert id="insertxlf" useGeneratedKeys="true" keyProperty="id" parameterType="org.springblade.jfpt.wj.entity.Wj">
|
INSERT INTO sys_wj (rid,snumber,address) VALUES (#{rid},#{snumber},#{address})
|
</insert>
|
|
<!--日常任务反馈-->
|
<insert id="inserttask" useGeneratedKeys="true" keyProperty="id" parameterType="org.springblade.jfpt.wj.entity.Wj">
|
INSERT INTO sys_wj (tid,address) VALUES (#{tid},#{address})
|
</insert>
|
|
<!--调查取证-->
|
<insert id="insertsurvey" useGeneratedKeys="true" keyProperty="id" parameterType="org.springblade.jfpt.wj.entity.Wj">
|
INSERT INTO sys_wj (sid,address) VALUES (#{sid},#{address})
|
</insert>
|
|
</mapper>
|