insert into group_buy_product(
group_prod_name,product_id,user_count,group_id,group_prod_desc,sort,state,store_id,batch_id
) values (
#{groupProdName},#{productId},#{userCount},#{groupId},#{groupProdDesc},#{sort},#{state},#{storeId},#{batchId}
)
update group_buy_product t set t.status_cd = #{statusCd}
, t.group_prod_name= #{groupProdName}
, t.product_id= #{productId}
, t.user_count= #{userCount}
, t.group_prod_desc= #{groupProdDesc}
, t.sort= #{sort}
, t.state= #{state}
, t.batch_id= #{batchId}
where 1=1
and t.group_id= #{groupId}
and t.store_id= #{storeId}