id, user_id, goods_id, sku, goods_sn, product_id, goods_name, market_price, retail_price,
number, goods_specification_ids, checked, list_pic_url, store_id, goods_biz_type,
creater_sn, create_time, moder_sn, mod_time, tstm,goods_specification_name_value,stock_num
INSERT INTO mall_cart
user_id,
stock_num,
goods_id,
sku,
goods_sn,
product_id,
goods_name,
market_price,
retail_price,
number,
goods_specification_ids,
checked,
list_pic_url,
store_id,
goods_biz_type,
creater_sn,
create_time,
moder_sn,
mod_time,
tstm,
goods_specification_name_value,
#{user_id},
#{stockNum},
#{goods_id,jdbcType=INTEGER},
#{sku,jdbcType=VARCHAR},
#{goods_sn,jdbcType=VARCHAR},
#{product_id,jdbcType=INTEGER},
#{goods_name,jdbcType=VARCHAR},
#{market_price,jdbcType=DECIMAL},
#{retail_price,jdbcType=DECIMAL},
#{number,jdbcType=SMALLINT},
#{goods_specification_ids,jdbcType=VARCHAR},
#{checked,jdbcType=BIT},
#{list_pic_url,jdbcType=VARCHAR},
#{store_id,jdbcType=INTEGER},
#{goodsBizType,jdbcType=CHAR},
#{createrSn,jdbcType=VARCHAR},
#{createTime,jdbcType=TIMESTAMP},
#{moderSn,jdbcType=VARCHAR},
#{modTime,jdbcType=TIMESTAMP},
#{tstm,jdbcType=TIMESTAMP},
#{goods_specification_name_value,jdbcType=LONGVARCHAR},
update mall_cart
user_id = #{user_id},
stock_num = #{stockNum},
goods_id = #{goods_id,jdbcType=INTEGER},
sku = #{sku,jdbcType=VARCHAR},
goods_sn = #{goods_sn,jdbcType=VARCHAR},
product_id = #{product_id,jdbcType=INTEGER},
goods_name = #{goods_name,jdbcType=VARCHAR},
market_price = #{market_price,jdbcType=DECIMAL},
retail_price = #{retail_price,jdbcType=DECIMAL},
number = #{number,jdbcType=SMALLINT},
goods_specification_ids = #{goods_specification_ids,jdbcType=VARCHAR},
checked = #{checked,jdbcType=BIT},
list_pic_url = #{list_pic_url,jdbcType=VARCHAR},
store_id = #{store_id,jdbcType=INTEGER},
goods_biz_type = #{goodsBizType,jdbcType=CHAR},
creater_sn = #{createrSn,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=TIMESTAMP},
moder_sn = #{moderSn,jdbcType=VARCHAR},
mod_time = #{modTime,jdbcType=TIMESTAMP},
tstm = #{tstm,jdbcType=TIMESTAMP},
goods_specification_name_value = #{goods_specification_name_value,jdbcType=LONGVARCHAR},
where id = #{id}
update mall_cart
set `checked` = #{isChecked}
where product_id in
#{product_id}
and user_id = #{user_id} and store_id = #{store_id}
delete from mall_cart where id = #{value}
delete from mall_cart where id in
#{id}
delete from mall_cart where product_id in
#{id}
and store_id = #{store_id}
delete from mall_cart
where user_id = #{user_id} and store_id = #{store_id} and checked = #{checked}