insert into group_buy_product_spec(
spec_id,group_sales,product_id,group_price,default_show,store_id,group_stock,value_id
) values (
#{specId},#{groupSales},#{productId},#{groupPrice},#{defaultShow},#{storeId},#{groupStock},#{valueId}
)
update group_buy_product_spec t set t.status_cd = #{statusCd}
, t.group_sales= #{groupSales}
, t.group_price= #{groupPrice}
, t.default_show= #{defaultShow}
, t.group_stock= #{groupStock}
where 1=1
and t.spec_id= #{specId}
and t.value_id= #{valueId}
and t.product_id= #{productId}
and t.store_id= #{storeId}