id,
`position`,
adverts_name as 'advertsName',
pic_url as 'picUrl',
url,
oss_url as 'ossUrl',
sort,
supplier_name as 'supplierName',
`desc`,
online_time as 'onlineTime',
offline_time as 'offlineTime',
`status`,
create_time as 'createTime',
update_time as 'updateTime',
create_user_id as 'createUserId',
update_user_id as 'updateUserId'
insert into business_small_program_advertisement
id,
`position`,
adverts_name,
pic_url,
url,
oss_url,
sort,
supplier_name,
`desc`,
online_time,
offline_time,
`status`,
create_time,
update_time,
create_user_id,
update_user_id,
#{id,jdbcType=VARCHAR},
#{position,jdbcType=VARCHAR},
#{advertsName,jdbcType=VARCHAR},
#{picUrl,jdbcType=VARCHAR},
#{url,jdbcType=VARCHAR},
#{ossUrl,jdbcType=VARCHAR},
#{sort,jdbcType=INTEGER},
#{supplierName,jdbcType=VARCHAR},
#{desc,jdbcType=VARCHAR},
#{onlineTime,jdbcType=TIMESTAMP},
#{offlineTime,jdbcType=TIMESTAMP},
#{status,jdbcType=INTEGER},
#{createTime,jdbcType=TIMESTAMP},
#{updateTime,jdbcType=TIMESTAMP},
#{createUserId,jdbcType=VARCHAR},
#{updateUserId,jdbcType=VARCHAR},
update business_small_program_advertisement
`position` = #{position,jdbcType=VARCHAR},
adverts_name = #{advertsName,jdbcType=VARCHAR},
pic_url = #{picUrl,jdbcType=VARCHAR},
url = #{url,jdbcType=VARCHAR},
oss_url = #{ossUrl,jdbcType=VARCHAR},
sort = #{sort,jdbcType=INTEGER},
supplier_name = #{supplierName,jdbcType=VARCHAR},
`desc` = #{desc,jdbcType=VARCHAR},
`status` = #{status,jdbcType=INTEGER},
create_time = #{createTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP},
create_user_id = #{createUserId,jdbcType=VARCHAR},
update_user_id = #{updateUserId,jdbcType=VARCHAR},
online_time = #{onlineTime,jdbcType=TIMESTAMP},
offline_time = #{offlineTime,jdbcType=TIMESTAMP}
where id = #{id}