SENDLOGMapper.xml
2.9 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
<?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.tianbo.analysis.dao.SENDLOGMapper" >
<resultMap id="BaseResultMap" type="com.tianbo.analysis.model.SENDLOG" >
<result column="AUTOID" property="autoid" jdbcType="VARCHAR" />
<result column="CREATEDATE" property="createdate" jdbcType="TIMESTAMP" />
<result column="OPAUTHOR" property="opauthor" jdbcType="VARCHAR" />
<result column="SENDPEICE" property="sendpeice" jdbcType="DECIMAL" />
<result column="SENDWEIGHT" property="sendweight" jdbcType="DECIMAL" />
<result column="RECEIPTION" property="receiption" jdbcType="VARCHAR" />
<result column="MESSAGETYPE" property="messagetype" jdbcType="VARCHAR" />
<result column="MESSAGEAUTOID" property="messageautoid" jdbcType="VARCHAR" />
</resultMap>
<insert id="insert" parameterType="com.tianbo.analysis.model.SENDLOG" >
insert into SENDLOG (AUTOID, CREATEDATE, OPAUTHOR,
SENDPEICE, SENDWEIGHT, RECEIPTION,
MESSAGETYPE, MESSAGEAUTOID)
values (#{autoid,jdbcType=VARCHAR}, #{createdate,jdbcType=TIMESTAMP}, #{opauthor,jdbcType=VARCHAR},
#{sendpeice,jdbcType=DECIMAL}, #{sendweight,jdbcType=DECIMAL}, #{receiption,jdbcType=VARCHAR},
#{messagetype,jdbcType=VARCHAR}, #{messageautoid,jdbcType=VARCHAR})
</insert>
<insert id="insertSelective" parameterType="com.tianbo.analysis.model.SENDLOG" >
insert into SENDLOG
<trim prefix="(" suffix=")" suffixOverrides="," >
<if test="autoid != null" >
AUTOID,
</if>
<if test="createdate != null" >
CREATEDATE,
</if>
<if test="opauthor != null" >
OPAUTHOR,
</if>
<if test="sendpeice != null" >
SENDPEICE,
</if>
<if test="sendweight != null" >
SENDWEIGHT,
</if>
<if test="receiption != null" >
RECEIPTION,
</if>
<if test="messagetype != null" >
MESSAGETYPE,
</if>
<if test="messageautoid != null" >
MESSAGEAUTOID,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides="," >
<if test="autoid != null" >
#{autoid,jdbcType=VARCHAR},
</if>
<if test="createdate != null" >
#{createdate,jdbcType=TIMESTAMP},
</if>
<if test="opauthor != null" >
#{opauthor,jdbcType=VARCHAR},
</if>
<if test="sendpeice != null" >
#{sendpeice,jdbcType=DECIMAL},
</if>
<if test="sendweight != null" >
#{sendweight,jdbcType=DECIMAL},
</if>
<if test="receiption != null" >
#{receiption,jdbcType=VARCHAR},
</if>
<if test="messagetype != null" >
#{messagetype,jdbcType=VARCHAR},
</if>
<if test="messageautoid != null" >
#{messageautoid,jdbcType=VARCHAR},
</if>
</trim>
</insert>
</mapper>