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, store_name, header_url, description, business_time, province, city, district,
address, phone, announcement, score, is_auto_reply, auto_reply_content, create_time,
update_time, is_delete
delete from tb_merchant
where id = #{id,jdbcType=INTEGER}
delete from tb_merchant
SELECT LAST_INSERT_ID()
insert into tb_merchant (store_name, header_url, description,
business_time, province, city,
district, address, phone,
announcement, score, is_auto_reply,
auto_reply_content, create_time, update_time,
is_delete)
values (#{storeName,jdbcType=VARCHAR}, #{headerUrl,jdbcType=VARCHAR}, #{description,jdbcType=VARCHAR},
#{businessTime,jdbcType=VARCHAR}, #{province,jdbcType=VARCHAR}, #{city,jdbcType=VARCHAR},
#{district,jdbcType=VARCHAR}, #{address,jdbcType=VARCHAR}, #{phone,jdbcType=VARCHAR},
#{announcement,jdbcType=VARCHAR}, #{score,jdbcType=DOUBLE}, #{isAutoReply,jdbcType=VARCHAR},
#{autoReplyContent,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP},
#{isDelete,jdbcType=CHAR})
SELECT LAST_INSERT_ID()
insert into tb_merchant
store_name,
header_url,
description,
business_time,
province,
city,
district,
address,
phone,
announcement,
score,
is_auto_reply,
auto_reply_content,
create_time,
update_time,
is_delete,
#{storeName,jdbcType=VARCHAR},
#{headerUrl,jdbcType=VARCHAR},
#{description,jdbcType=VARCHAR},
#{businessTime,jdbcType=VARCHAR},
#{province,jdbcType=VARCHAR},
#{city,jdbcType=VARCHAR},
#{district,jdbcType=VARCHAR},
#{address,jdbcType=VARCHAR},
#{phone,jdbcType=VARCHAR},
#{announcement,jdbcType=VARCHAR},
#{score,jdbcType=DOUBLE},
#{isAutoReply,jdbcType=VARCHAR},
#{autoReplyContent,jdbcType=VARCHAR},
#{createTime,jdbcType=TIMESTAMP},
#{updateTime,jdbcType=TIMESTAMP},
#{isDelete,jdbcType=CHAR},
update tb_merchant
id = #{record.id,jdbcType=INTEGER},
store_name = #{record.storeName,jdbcType=VARCHAR},
header_url = #{record.headerUrl,jdbcType=VARCHAR},
description = #{record.description,jdbcType=VARCHAR},
business_time = #{record.businessTime,jdbcType=VARCHAR},
province = #{record.province,jdbcType=VARCHAR},
city = #{record.city,jdbcType=VARCHAR},
district = #{record.district,jdbcType=VARCHAR},
address = #{record.address,jdbcType=VARCHAR},
phone = #{record.phone,jdbcType=VARCHAR},
announcement = #{record.announcement,jdbcType=VARCHAR},
score = #{record.score,jdbcType=DOUBLE},
is_auto_reply = #{record.isAutoReply,jdbcType=VARCHAR},
auto_reply_content = #{record.autoReplyContent,jdbcType=VARCHAR},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
is_delete = #{record.isDelete,jdbcType=CHAR},
update tb_merchant
set id = #{record.id,jdbcType=INTEGER},
store_name = #{record.storeName,jdbcType=VARCHAR},
header_url = #{record.headerUrl,jdbcType=VARCHAR},
description = #{record.description,jdbcType=VARCHAR},
business_time = #{record.businessTime,jdbcType=VARCHAR},
province = #{record.province,jdbcType=VARCHAR},
city = #{record.city,jdbcType=VARCHAR},
district = #{record.district,jdbcType=VARCHAR},
address = #{record.address,jdbcType=VARCHAR},
phone = #{record.phone,jdbcType=VARCHAR},
announcement = #{record.announcement,jdbcType=VARCHAR},
score = #{record.score,jdbcType=DOUBLE},
is_auto_reply = #{record.isAutoReply,jdbcType=VARCHAR},
auto_reply_content = #{record.autoReplyContent,jdbcType=VARCHAR},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
is_delete = #{record.isDelete,jdbcType=CHAR}
update tb_merchant
store_name = #{storeName,jdbcType=VARCHAR},
header_url = #{headerUrl,jdbcType=VARCHAR},
description = #{description,jdbcType=VARCHAR},
business_time = #{businessTime,jdbcType=VARCHAR},
province = #{province,jdbcType=VARCHAR},
city = #{city,jdbcType=VARCHAR},
district = #{district,jdbcType=VARCHAR},
address = #{address,jdbcType=VARCHAR},
phone = #{phone,jdbcType=VARCHAR},
announcement = #{announcement,jdbcType=VARCHAR},
score = #{score,jdbcType=DOUBLE},
is_auto_reply = #{isAutoReply,jdbcType=VARCHAR},
auto_reply_content = #{autoReplyContent,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP},
is_delete = #{isDelete,jdbcType=CHAR},
where id = #{id,jdbcType=INTEGER}
update tb_merchant
set store_name = #{storeName,jdbcType=VARCHAR},
header_url = #{headerUrl,jdbcType=VARCHAR},
description = #{description,jdbcType=VARCHAR},
business_time = #{businessTime,jdbcType=VARCHAR},
province = #{province,jdbcType=VARCHAR},
city = #{city,jdbcType=VARCHAR},
district = #{district,jdbcType=VARCHAR},
address = #{address,jdbcType=VARCHAR},
phone = #{phone,jdbcType=VARCHAR},
announcement = #{announcement,jdbcType=VARCHAR},
score = #{score,jdbcType=DOUBLE},
is_auto_reply = #{isAutoReply,jdbcType=VARCHAR},
auto_reply_content = #{autoReplyContent,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP},
is_delete = #{isDelete,jdbcType=CHAR}
where id = #{id,jdbcType=INTEGER}