南昌市物联网技防平台-学校版后台
zengh
2021-06-03 723946c6b272e5aa4c7ec110ff1395f6c2b23e89
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<?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>