select id, title, icon, imgs, sub_title, info, price,questions, price_zn, sales,servicetype, stock, status, description, sku_type,groupnum,sku, latitude, longitude, type, cate_id, first_cate_id, second_cate_id, project, sort, material, postage, basic, margin, skill_ids, created_at, updated_at, deleted_at, isgroup, groupprice, isonce, onceprice, commissiontype, commission, dispatchtype, workerids, isfixed, fixedprice from service_goods
insert into service_goods
title,
icon,
imgs,
sub_title,
info,
price,
price_zn,
sales,
stock,
status,
description,
sku_type,
sku,
latitude,
longitude,
type,
cate_id,
first_cate_id,
second_cate_id,
project,
sort,
material,
postage,
basic,
margin,
skill_ids,
deleted_at,
isgroup,
groupprice,
isonce,
onceprice,
commissiontype,
commission,
dispatchtype,
workerids,
isfixed,
fixedprice,
groupnum,
servicetype,
questions,
created_at,
updated_at
#{title},
#{icon},
#{imgs},
#{subTitle},
#{info},
#{price},
#{priceZn},
#{sales},
#{stock},
#{status},
#{description},
#{skuType},
#{sku},
#{latitude},
#{longitude},
#{type},
#{cateId},
#{firstCateId},
#{secondCateId},
#{project},
#{sort},
#{material},
#{postage},
#{basic},
#{margin},
#{skillIds},
#{deletedAt},
#{isgroup},
#{groupprice},
#{isonce},
#{onceprice},
#{commissiontype},
#{commission},
#{dispatchtype},
#{workerids},
#{isfixed},
#{fixedprice},
#{groupnum},
#{servicetype},
#{questions},
NOW(),
NOW()
update service_goods
title = #{title},
icon = #{icon},
imgs = #{imgs},
sub_title = #{subTitle},
info = #{info},
price = #{price},
price_zn = #{priceZn},
sales = #{sales},
stock = #{stock},
status = #{status},
description = #{description},
sku_type = #{skuType},
sku = #{sku},
latitude = #{latitude},
longitude = #{longitude},
type = #{type},
cate_id = #{cateId},
first_cate_id = #{firstCateId},
second_cate_id = #{secondCateId},
project = #{project},
sort = #{sort},
material = #{material},
postage = #{postage},
basic = #{basic},
margin = #{margin},
skill_ids = #{skillIds},
deleted_at = #{deletedAt},
isgroup = #{isgroup},
groupprice = #{groupprice},
isonce = #{isonce},
onceprice = #{onceprice},
servicetype = #{servicetype},
questions = #{questions},
commissiontype = #{commissiontype},
commission = #{commission},
dispatchtype = #{dispatchtype},
workerids = #{workerids},
isfixed = #{isfixed},
fixedprice = #{fixedprice},
groupnum = #{groupnum},
updated_at = NOW()
where id = #{id}
delete from service_goods where id = #{id}
delete from service_goods where id in
#{id}