select goods_id, live_id, company_id, company_user_id, store_id, product_id, create_time, create_by, update_by, update_time, remark, status, stock, sort from live_goods
insert into live_goods
live_id,
company_id,
company_user_id,
store_id,
product_id,
create_time,
create_by,
update_by,
update_time,
remark,
status,
stock,
sort,
#{liveId},
#{companyId},
#{companyUserId},
#{storeId},
#{productId},
#{createTime},
#{createBy},
#{updateBy},
#{updateTime},
#{remark},
#{status},
#{stock},
#{sort},
update live_goods
live_id = #{liveId},
company_id = #{companyId},
company_user_id = #{companyUserId},
store_id = #{storeId},
product_id = #{productId},
create_time = #{createTime},
create_by = #{createBy},
update_by = #{updateBy},
update_time = #{updateTime},
remark = #{remark},
status = #{status},
stock = #{stock},
sort = #{sort},
where goods_id = #{goodsId}
delete from live_goods where goods_id = #{goodsId}
delete from live_goods where goods_id in
#{goodsId}
INSERT INTO live_goods (
live_id, company_id, company_user_id, store_id,
product_id, create_time, create_by, update_by,
update_time, remark, status, stock, sort
) VALUES
(
#{item.liveId}, #{item.companyId}, #{item.companyUserId}, #{item.storeId},
#{item.productId}, #{item.createTime}, #{item.createBy}, #{item.updateBy},
#{item.updateTime}, #{item.remark}, #{item.status}, #{item.stock}, #{item.sort}
)