insert into shop_vip_account(
amount,vip_acct_id,vip_id,acct_type,shop_id,acct_name,store_id
) values (
#{amount},#{vipAcctId},#{vipId},#{acctType},#{shopId},#{acctName},#{storeId}
)
update shop_vip_account t set t.status_cd = #{statusCd}
,t.b_id = #{newBId}
, t.amount= #{amount}
, t.vip_id= #{vipId}
, t.acct_type= #{acctType}
, t.shop_id= #{shopId}
, t.acct_name= #{acctName}
, t.store_id= #{storeId}
where 1=1
and t.vip_acct_id= #{vipAcctId}