insert into shop_vip_account_detail( detail_type,amount,order_id,vip_acct_id,detail_id,rel_acct_id,remark,shop_id,store_id ) values ( #{detailType},#{amount},#{orderId},#{vipAcctId},#{detailId},#{relAcctId},#{remark},#{shopId},#{storeId} ) update shop_vip_account_detail t set t.status_cd = #{statusCd} ,t.b_id = #{newBId} , t.detail_type= #{detailType} , t.amount= #{amount} , t.order_id= #{orderId} , t.vip_acct_id= #{vipAcctId} , t.rel_acct_id= #{relAcctId} , t.remark= #{remark} , t.shop_id= #{shopId} , t.store_id= #{storeId} where 1=1 and t.detail_id= #{detailId}