create_by,
create_time,
update_by,
update_time,
id,
p_id,
name,
img_path,
stock,
price,
score,
sort,
atrid,
purchase_price,
seal_count,
stock_code,
shop_id,
self_price,
seales_price,
invitation_price,
score_price,
score_count
#{item.createBy},
now(),
#{item.updateBy},
now(),
#{item.id},
#{item.pId},
#{item.name},
#{item.imgPath},
#{item.stock},
#{item.price},
#{item.score},
#{item.sort},
#{item.atrid},
#{item.purchasePrice},
#{item.sealCount},
#{item.stockCode},
#{item.shopId},
#{item.selfPrice},
#{item.sealesPrice},
#{item.invitationPrice},
#{item.scorePrice},
#{item.scoreCount}
and id = #{record.id}
and p_id = #{record.pId}
and name = #{record.name}
and img_path = #{record.imgPath}
and stock = #{record.stock}
and price = #{record.price}
and score = #{record.score}
and sort = #{record.sort}
and atrid = #{record.atrid}
and stock_code = #{record.stockCode}
and shop_id = #{record.shopId}
and score_price = #{record.scorePrice}
and score_count = #{record.scoreCount}
INSERT INTO shop_sku (
)
VALUES (
)
INSERT INTO shop_sku (
)
VALUES
(
)
UPDATE shop_sku
p_id = #{pId},
name = #{name},
img_path = #{imgPath},
stock = #{stock},
price = #{price},
sort = #{sort},
atrid = #{atrid},
purchase_price = #{purchasePrice},
stock_code = #{stockCode},
invitation_price = #{invitationPrice},
seales_price = #{sealesPrice},
score_price = #{scorePrice},
score_count = #{scoreCount},
self_price = #{selfPrice},
WHERE id=#{id}
UPDATE shop_sku
p_id = #{record.pId},
name = #{record.name},
img_path = #{record.imgPath},
stock = #{record.stock},
price = #{record.price},
score = #{record.score},
sort = #{record.sort},
atrid = #{record.atrid},
purchase_price = #{record.purchasePrice},
seal_count = #{record.sealCount},
stock_code = #{record.stockCode},
seales_price = #{record.sealesPrice},
invitation_price = #{record.invitationPrice},
score_price = #{record.scorePrice},
score_count = #{record.scoreCount},
self_price = #{record.selfPrice},
WHERE id=#{record.id}
delete from shop_sku where id in
#{item}
DELETE FROM shop_sku
where id=#{id}
DELETE FROM shop_sku
update shop_sku
when atrid = #{item.atrid} then #{item.stock}
when atrid = #{item.atrid} then now()
where
atrid=#{item.atrid}