CwStutemperaturereocrdMapper.xml
3.72 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
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
<?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="com.sincere.smartSearch.mapper.CwStutemperaturereocrdMapper">
<resultMap id="BaseResultMap" type="com.sincere.common.dto.smartCampus.CwStutemperaturereocrd">
<result column="Id" jdbcType="INTEGER" property="id"/>
<result column="UserId" jdbcType="VARCHAR" property="userid"/>
<result column="StudentId" jdbcType="INTEGER" property="studentid"/>
<result column="Name" jdbcType="VARCHAR" property="name"/>
<result column="ClassId" jdbcType="INTEGER" property="classid"/>
<result column="ClassName" jdbcType="VARCHAR" property="classname"/>
<result column="Temperature" jdbcType="DECIMAL" property="temperature"/>
<result column="Type" jdbcType="INTEGER" property="type"/>
<result column="SchoolId" jdbcType="INTEGER" property="schoolid"/>
<result column="Intime" jdbcType="TIMESTAMP" property="intime"/>
</resultMap>
<insert id="insert" parameterType="com.sincere.common.dto.smartCampus.CwStutemperaturereocrd">
insert into CW_StuTemperatureReocrd ( UserId, StudentId,
Name, ClassId, ClassName,
Temperature, Type, SchoolId,
Intime)
values ( #{userid,jdbcType=VARCHAR}, #{studentid,jdbcType=INTEGER},
#{name,jdbcType=VARCHAR}, #{classid,jdbcType=INTEGER}, #{classname,jdbcType=VARCHAR},
#{temperature,jdbcType=DECIMAL}, #{type,jdbcType=INTEGER}, #{schoolid,jdbcType=INTEGER},
#{intime,jdbcType=TIMESTAMP})
</insert>
<insert id="insertSelective" parameterType="com.sincere.common.dto.smartCampus.CwStutemperaturereocrd">
insert into CW_StuTemperatureReocrd
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
Id,
</if>
<if test="userid != null">
UserId,
</if>
<if test="studentid != null">
StudentId,
</if>
<if test="name != null">
Name,
</if>
<if test="classid != null">
ClassId,
</if>
<if test="classname != null">
ClassName,
</if>
<if test="temperature != null">
Temperature,
</if>
<if test="type != null">
Type,
</if>
<if test="schoolid != null">
SchoolId,
</if>
<if test="intime != null">
Intime,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=INTEGER},
</if>
<if test="userid != null">
#{userid,jdbcType=VARCHAR},
</if>
<if test="studentid != null">
#{studentid,jdbcType=INTEGER},
</if>
<if test="name != null">
#{name,jdbcType=VARCHAR},
</if>
<if test="classid != null">
#{classid,jdbcType=INTEGER},
</if>
<if test="classname != null">
#{classname,jdbcType=VARCHAR},
</if>
<if test="temperature != null">
#{temperature,jdbcType=DECIMAL},
</if>
<if test="type != null">
#{type,jdbcType=INTEGER},
</if>
<if test="schoolid != null">
#{schoolid,jdbcType=INTEGER},
</if>
<if test="intime != null">
#{intime,jdbcType=TIMESTAMP},
</if>
</trim>
</insert>
</mapper>