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, option_name, goods_id, create_time, update_time, is_delete
delete from tb_goods_option
where id = #{id,jdbcType=INTEGER}
delete from tb_goods_option
SELECT LAST_INSERT_ID()
insert into tb_goods_option (option_name, goods_id, create_time,
update_time, is_delete)
values (#{optionName,jdbcType=VARCHAR}, #{goodsId,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP},
#{updateTime,jdbcType=TIMESTAMP}, #{isDelete,jdbcType=CHAR})
SELECT LAST_INSERT_ID()
insert into tb_goods_option
option_name,
goods_id,
create_time,
update_time,
is_delete,
#{optionName,jdbcType=VARCHAR},
#{goodsId,jdbcType=INTEGER},
#{createTime,jdbcType=TIMESTAMP},
#{updateTime,jdbcType=TIMESTAMP},
#{isDelete,jdbcType=CHAR},
update tb_goods_option
id = #{record.id,jdbcType=INTEGER},
option_name = #{record.optionName,jdbcType=VARCHAR},
goods_id = #{record.goodsId,jdbcType=INTEGER},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
is_delete = #{record.isDelete,jdbcType=CHAR},
update tb_goods_option
set id = #{record.id,jdbcType=INTEGER},
option_name = #{record.optionName,jdbcType=VARCHAR},
goods_id = #{record.goodsId,jdbcType=INTEGER},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
is_delete = #{record.isDelete,jdbcType=CHAR}
update tb_goods_option
option_name = #{optionName,jdbcType=VARCHAR},
goods_id = #{goodsId,jdbcType=INTEGER},
create_time = #{createTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP},
is_delete = #{isDelete,jdbcType=CHAR},
where id = #{id,jdbcType=INTEGER}
update tb_goods_option
set option_name = #{optionName,jdbcType=VARCHAR},
goods_id = #{goodsId,jdbcType=INTEGER},
create_time = #{createTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP},
is_delete = #{isDelete,jdbcType=CHAR}
where id = #{id,jdbcType=INTEGER}