and ${criterion.condition}
and ${criterion.condition} #{criterion.value}
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
and ${criterion.condition}
#{listItem}
and ${criterion.condition}
and ${criterion.condition} #{criterion.value}
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
and ${criterion.condition}
#{listItem}
id, static_date, channel_id, channel_name, new_all_user, new_recharge_user, new_recharge_sum,
new_recharge_count, recharge_avg, recharge_rate, price, insert_time
delete from sun_static_user_day_channel
where id = #{id,jdbcType=INTEGER}
delete from sun_static_user_day_channel
insert into sun_static_user_day_channel (id, static_date, channel_id,
channel_name, new_all_user, new_recharge_user,
new_recharge_sum, new_recharge_count, recharge_avg,
recharge_rate, price, insert_time
)
values (#{id,jdbcType=INTEGER}, #{staticDate,jdbcType=VARCHAR}, #{channelId,jdbcType=VARCHAR},
#{channelName,jdbcType=VARCHAR}, #{newAllUser,jdbcType=INTEGER}, #{newRechargeUser,jdbcType=INTEGER},
#{newRechargeSum,jdbcType=VARCHAR}, #{newRechargeCount,jdbcType=INTEGER}, #{rechargeAvg,jdbcType=VARCHAR},
#{rechargeRate,jdbcType=VARCHAR}, #{price,jdbcType=VARCHAR}, #{insertTime,jdbcType=TIMESTAMP}
)
insert into sun_static_user_day_channel
${column.escapedColumnName}
id,
static_date,
channel_id,
channel_name,
new_all_user,
new_recharge_user,
new_recharge_sum,
new_recharge_count,
recharge_avg,
recharge_rate,
price,
insert_time,
values
#{record.${column.javaProperty},jdbcType=${column.jdbcType}}
#{record.id,jdbcType=INTEGER},
#{record.staticDate,jdbcType=VARCHAR},
#{record.channelId,jdbcType=VARCHAR},
#{record.channelName,jdbcType=VARCHAR},
#{record.newAllUser,jdbcType=INTEGER},
#{record.newRechargeUser,jdbcType=INTEGER},
#{record.newRechargeSum,jdbcType=VARCHAR},
#{record.newRechargeCount,jdbcType=INTEGER},
#{record.rechargeAvg,jdbcType=VARCHAR},
#{record.rechargeRate,jdbcType=VARCHAR},
#{record.price,jdbcType=VARCHAR},
#{record.insertTime,jdbcType=TIMESTAMP},
update sun_static_user_day_channel
SET
${column.escapedColumnName} = #{record.${column.javaProperty},jdbcType=${column.jdbcType}}
id = #{record.id,jdbcType=INTEGER},
static_date = #{record.staticDate,jdbcType=VARCHAR},
channel_id = #{record.channelId,jdbcType=VARCHAR},
channel_name = #{record.channelName,jdbcType=VARCHAR},
new_all_user = #{record.newAllUser,jdbcType=INTEGER},
new_recharge_user = #{record.newRechargeUser,jdbcType=INTEGER},
new_recharge_sum = #{record.newRechargeSum,jdbcType=VARCHAR},
new_recharge_count = #{record.newRechargeCount,jdbcType=INTEGER},
recharge_avg = #{record.rechargeAvg,jdbcType=VARCHAR},
recharge_rate = #{record.rechargeRate,jdbcType=VARCHAR},
price = #{record.price,jdbcType=VARCHAR},
insert_time = #{record.insertTime,jdbcType=TIMESTAMP},
update sun_static_user_day_channel
set id = #{record.id,jdbcType=INTEGER},
static_date = #{record.staticDate,jdbcType=VARCHAR},
channel_id = #{record.channelId,jdbcType=VARCHAR},
channel_name = #{record.channelName,jdbcType=VARCHAR},
new_all_user = #{record.newAllUser,jdbcType=INTEGER},
new_recharge_user = #{record.newRechargeUser,jdbcType=INTEGER},
new_recharge_sum = #{record.newRechargeSum,jdbcType=VARCHAR},
new_recharge_count = #{record.newRechargeCount,jdbcType=INTEGER},
recharge_avg = #{record.rechargeAvg,jdbcType=VARCHAR},
recharge_rate = #{record.rechargeRate,jdbcType=VARCHAR},
price = #{record.price,jdbcType=VARCHAR},
insert_time = #{record.insertTime,jdbcType=TIMESTAMP}
update sun_static_user_day_channel
SET
${column.escapedColumnName} = #{record.${column.javaProperty},jdbcType=${column.jdbcType}}
static_date = #{record.staticDate,jdbcType=VARCHAR},
channel_id = #{record.channelId,jdbcType=VARCHAR},
channel_name = #{record.channelName,jdbcType=VARCHAR},
new_all_user = #{record.newAllUser,jdbcType=INTEGER},
new_recharge_user = #{record.newRechargeUser,jdbcType=INTEGER},
new_recharge_sum = #{record.newRechargeSum,jdbcType=VARCHAR},
new_recharge_count = #{record.newRechargeCount,jdbcType=INTEGER},
recharge_avg = #{record.rechargeAvg,jdbcType=VARCHAR},
recharge_rate = #{record.rechargeRate,jdbcType=VARCHAR},
price = #{record.price,jdbcType=VARCHAR},
insert_time = #{record.insertTime,jdbcType=TIMESTAMP},
where id = #{record.id,jdbcType=INTEGER}
update sun_static_user_day_channel
set static_date = #{staticDate,jdbcType=VARCHAR},
channel_id = #{channelId,jdbcType=VARCHAR},
channel_name = #{channelName,jdbcType=VARCHAR},
new_all_user = #{newAllUser,jdbcType=INTEGER},
new_recharge_user = #{newRechargeUser,jdbcType=INTEGER},
new_recharge_sum = #{newRechargeSum,jdbcType=VARCHAR},
new_recharge_count = #{newRechargeCount,jdbcType=INTEGER},
recharge_avg = #{rechargeAvg,jdbcType=VARCHAR},
recharge_rate = #{rechargeRate,jdbcType=VARCHAR},
price = #{price,jdbcType=VARCHAR},
insert_time = #{insertTime,jdbcType=TIMESTAMP}
where id = #{id,jdbcType=INTEGER}
insert into sun_static_user_day_channel
(id, static_date, channel_id, channel_name, new_all_user, new_recharge_user, new_recharge_sum,
new_recharge_count, recharge_avg, recharge_rate, price, insert_time)
values
(#{item.id,jdbcType=INTEGER}, #{item.staticDate,jdbcType=VARCHAR}, #{item.channelId,jdbcType=VARCHAR},
#{item.channelName,jdbcType=VARCHAR}, #{item.newAllUser,jdbcType=INTEGER}, #{item.newRechargeUser,jdbcType=INTEGER},
#{item.newRechargeSum,jdbcType=VARCHAR}, #{item.newRechargeCount,jdbcType=INTEGER},
#{item.rechargeAvg,jdbcType=VARCHAR}, #{item.rechargeRate,jdbcType=VARCHAR}, #{item.price,jdbcType=VARCHAR},
#{item.insertTime,jdbcType=TIMESTAMP})
insert into sun_static_user_day_channel (
${column.escapedColumnName}
)
values
(
#{item.id,jdbcType=INTEGER}
#{item.staticDate,jdbcType=VARCHAR}
#{item.channelId,jdbcType=VARCHAR}
#{item.channelName,jdbcType=VARCHAR}
#{item.newAllUser,jdbcType=INTEGER}
#{item.newRechargeUser,jdbcType=INTEGER}
#{item.newRechargeSum,jdbcType=VARCHAR}
#{item.newRechargeCount,jdbcType=INTEGER}
#{item.rechargeAvg,jdbcType=VARCHAR}
#{item.rechargeRate,jdbcType=VARCHAR}
#{item.price,jdbcType=VARCHAR}
#{item.insertTime,jdbcType=TIMESTAMP}
)
insert into sun_static_user_day_channel
${column.escapedColumnName}
id,
static_date,
channel_id,
channel_name,
new_all_user,
new_recharge_user,
new_recharge_sum,
new_recharge_count,
recharge_avg,
recharge_rate,
price,
insert_time,
values
#{record.${column.javaProperty},jdbcType=${column.jdbcType}}
#{record.id,jdbcType=INTEGER},
#{record.staticDate,jdbcType=VARCHAR},
#{record.channelId,jdbcType=VARCHAR},
#{record.channelName,jdbcType=VARCHAR},
#{record.newAllUser,jdbcType=INTEGER},
#{record.newRechargeUser,jdbcType=INTEGER},
#{record.newRechargeSum,jdbcType=VARCHAR},
#{record.newRechargeCount,jdbcType=INTEGER},
#{record.rechargeAvg,jdbcType=VARCHAR},
#{record.rechargeRate,jdbcType=VARCHAR},
#{record.price,jdbcType=VARCHAR},
#{record.insertTime,jdbcType=TIMESTAMP},
on duplicate key update
${column.escapedColumnName} = #{record.${column.javaProperty},jdbcType=${column.jdbcType}}
id = #{record.id,jdbcType=INTEGER},
static_date = #{record.staticDate,jdbcType=VARCHAR},
channel_id = #{record.channelId,jdbcType=VARCHAR},
channel_name = #{record.channelName,jdbcType=VARCHAR},
new_all_user = #{record.newAllUser,jdbcType=INTEGER},
new_recharge_user = #{record.newRechargeUser,jdbcType=INTEGER},
new_recharge_sum = #{record.newRechargeSum,jdbcType=VARCHAR},
new_recharge_count = #{record.newRechargeCount,jdbcType=INTEGER},
recharge_avg = #{record.rechargeAvg,jdbcType=VARCHAR},
recharge_rate = #{record.rechargeRate,jdbcType=VARCHAR},
price = #{record.price,jdbcType=VARCHAR},
insert_time = #{record.insertTime,jdbcType=TIMESTAMP},
insert into sun_static_user_day_channel
(id, static_date, channel_id, channel_name, new_all_user, new_recharge_user, new_recharge_sum,
new_recharge_count, recharge_avg, recharge_rate, price, insert_time)
values
(#{id,jdbcType=INTEGER}, #{staticDate,jdbcType=VARCHAR}, #{channelId,jdbcType=VARCHAR},
#{channelName,jdbcType=VARCHAR}, #{newAllUser,jdbcType=INTEGER}, #{newRechargeUser,jdbcType=INTEGER},
#{newRechargeSum,jdbcType=VARCHAR}, #{newRechargeCount,jdbcType=INTEGER}, #{rechargeAvg,jdbcType=VARCHAR},
#{rechargeRate,jdbcType=VARCHAR}, #{price,jdbcType=VARCHAR}, #{insertTime,jdbcType=TIMESTAMP}
)
on duplicate key update
id = #{id,jdbcType=INTEGER},
static_date = #{staticDate,jdbcType=VARCHAR},
channel_id = #{channelId,jdbcType=VARCHAR},
channel_name = #{channelName,jdbcType=VARCHAR},
new_all_user = #{newAllUser,jdbcType=INTEGER},
new_recharge_user = #{newRechargeUser,jdbcType=INTEGER},
new_recharge_sum = #{newRechargeSum,jdbcType=VARCHAR},
new_recharge_count = #{newRechargeCount,jdbcType=INTEGER},
recharge_avg = #{rechargeAvg,jdbcType=VARCHAR},
recharge_rate = #{rechargeRate,jdbcType=VARCHAR},
price = #{price,jdbcType=VARCHAR},
insert_time = #{insertTime,jdbcType=TIMESTAMP}