insert into group_buy_batch( batch_end_time,batch_id,store_id,setting_id,batch_start_time,cur_batch ) values ( #{batchEndTime},#{batchId},#{storeId},#{settingId},#{batchStartTime},#{curBatch} ) update group_buy_batch t set t.status_cd = #{statusCd} ,t.b_id = #{newBId} , t.batch_end_time= #{batchEndTime} , t.store_id= #{storeId} , t.setting_id= #{settingId} , t.batch_start_time= #{batchStartTime} , t.cur_batch= #{curBatch} where 1=1 and t.batch_id= #{batchId}