洪城义警-正式版后台
zengh
2022-05-26 4c19ddd36bdfb43b5ef4e8df3c9a98cd4d356d6c
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
50
51
52
53
54
55
56
57
58
59
60
61
<?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.wj.mapper.WjMapper">
 
    <!-- 通用查询映射结果 -->
    <resultMap id="wjResultMap" type="org.springblade.modules.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.modules.wj.entity.Wj">
       INSERT INTO sys_wj (jid,address,sid,type) VALUES (#{jid},#{address},#{sid},#{type})
    </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.modules.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.modules.wj.entity.Wj">
       INSERT INTO sys_wj (tid,address) VALUES (#{tid},#{address})
    </insert>
 
    <!--调查取证-->
    <insert id="insertsurvey" useGeneratedKeys="true" keyProperty="id" parameterType="org.springblade.modules.wj.entity.Wj">
       INSERT INTO sys_wj (sid,address) VALUES (#{sid},#{address})
    </insert>
 
    <!--获取资源  图片、视频-->
    <select id="selectResouces" resultType="java.lang.String">
        select address from sys_wj
        where sid = #{wj.sid}
        <if test="wj.type!=null">
            and type = #{wj.type}
        </if>
    </select>
 
    <delete id="deleteBySid">
        delete  from sys_wj where sid=#{id}
    </delete>
</mapper>