ChannelReportFormMapper.xml
3.01 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
<?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.yoho.unions.dal.IChannelReportFormDAO" >
<insert id="insert" parameterType="com.yoho.unions.dal.model.ChannelReportForm" keyProperty="id" useGeneratedKeys="true" >
insert into channel_report_form (id, uid, app_key, channel_code,channel_name,channel_cost,create_time, update_time,
begin_cost_time, end_cost_time
)
values (#{id,jdbcType=INTEGER}, #{uid,jdbcType=INTEGER}, #{appKey,jdbcType=VARCHAR}, #{channelCode,jdbcType=INTEGER}, #{channelName,jdbcTpye=VARCHAR}, #{actualCost,jdbcType=DECIMAL}, CURRENT_TIMESTAMP, CURRENT_TIMESTAMP, #{beginTime,jdbcType=INTEGER},#{endTime,jdbcType=INTEGER}
)
</insert>
<insert id="insertSelective" parameterType="com.yoho.unions.dal.model.ChannelReportForm" keyProperty="id" useGeneratedKeys="true">
insert into channel_report_form
<trim prefix="(" suffix=")" suffixOverrides="," >
<if test="id != null" >
id,
</if>
<if test="uid != null" >
uid,
</if>
<if test="appKey != null" >
app_key,
</if>
<if test="channelCode != null" >
channel_code,
</if>
<if test="channelName != null" >
channel_name,
</if>
<if test="actualCost != null" >
channel_cost,
</if>
<if test="beginTime != null" >
begin_cost_time,
</if>
<if test="endTime != null" >
end_cost_time,
</if>
create_time,
update_time
</trim>
<trim prefix="values (" suffix=")" suffixOverrides="," >
<if test="id != null" >
#{id,jdbcType=INTEGER},
</if>
<if test="uid != null" >
#{uid,jdbcType=VARCHAR},
</if>
<if test="appKey != null" >
#{appKey,jdbcType=VARCHAR},
</if>
<if test="channelCode != null" >
#{channelCode,jdbcType=INTEGER},
</if>
<if test="channelName != null" >
#{channelName,jdbcType=INTEGER},
</if>
<if test="actualCost != null" >
#{actualCost,jdbcType=INTEGER},
</if>
<!--<if test="createTime != null" >-->
<!--#{createTime,jdbcType=INTEGER},-->
<!--</if>-->
<!--<if test="updateTime != null" >-->
<!--#{updateTime,jdbcType=INTEGER},-->
<!--</if>-->
<if test="beginTime != null">
#{beginTime,jdbcType=INTEGER},
</if>
<if test="endTime != null">
#{endTime,jdbcType=INTEGER},
</if>
CURRENT_TIMESTAMP,
CURRENT_TIMESTAMP
</trim>
</insert>
</mapper>