forked from whgojp/JavaSecLab
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathXssMapper.xml
More file actions
31 lines (28 loc) · 1.07 KB
/
XssMapper.xml
File metadata and controls
31 lines (28 loc) · 1.07 KB
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
<?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="top.whgojp.modules.xss.mapper.XssMapper">
<resultMap id="BaseResultMap" type="top.whgojp.modules.xss.entity.Xss">
<id property="id" column="id" jdbcType="INTEGER"/>
<result property="content" column="content" jdbcType="VARCHAR"/>
<result property="ua" column="ua" jdbcType="VARCHAR"/>
<result property="date" column="date" jdbcType="VARCHAR"/>
</resultMap>
<sql id="Base_Column_List">
id,content,date
</sql>
<insert id="insertAll">
insert into xss
(content,ua, date)
values (#{content,jdbcType=VARCHAR},#{ua,jdbcType=VARCHAR}, #{date,jdbcType=VARCHAR})
</insert>
<select id="selectAll" resultType="top.whgojp.modules.xss.entity.Xss">
select * from xss;
</select>
<delete id="deleteById">
delete
from xss
where id = #{id,jdbcType=NUMERIC}
</delete>
</mapper>