insert into group_buy( spec_id,buy_count,amount,product_id,group_id,persion_id,batch_id,store_id,persion_name,group_price,buy_id,state ) values ( #{specId},#{buyCount},#{amount},#{productId},#{groupId},#{persionId},#{batchId},#{storeId},#{persionName},#{groupPrice},#{buyId},#{state} ) update group_buy t set t.status_cd = #{statusCd} ,t.b_id = #{newBId} , t.spec_id= #{specId} , t.buy_count= #{buyCount} , t.amount= #{amount} , t.product_id= #{productId} , t.group_id= #{groupId} , t.persion_id= #{persionId} , t.batch_id= #{batchId} , t.store_id= #{storeId} , t.persion_name= #{persionName} , t.group_price= #{groupPrice} , t.state= #{state} where 1=1 and t.buy_id= #{buyId}