|
|
<?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> |
...
|
...
|
|