insert into tb_pluss_merchant_menber(merchantCode,merchantName,storeId,storeName,status,createDt,logo,memberCode,nickName,phone,openid,alipayUserId,comsumeMoney,profitMoney,orderNumber,totalRechargeFee,usableRechargeFee,totalGiveFee,usableGiveFee,cardNo,birthdayDt,memberName,provinces,sex,bindingUrl,appOpenId,unionId)VALUES(#{merchantCode},#{merchantName},#{storeId},#{storeName},#{status},now(),#{logo},#{memberCode},#{nickName},#{phone},#{openid},#{alipayUserId},#{comsumeMoney},#{profitMoney},#{orderNumber},#{totalRechargeFee},#{usableRechargeFee},#{totalGiveFee},#{usableGiveFee},#{cardNo},#{birthdayDt},#{memberName},#{provinces},#{sex},#{bindingUrl},#{appOpenId},#{unionId})
insert into tb_pluss_merchant_menber(merchantCode,merchantName,storeId,storeName,status,createDt,logo,memberCode,nickName,phone,openid,alipayUserId,comsumeMoney,profitMoney,orderNumber,totalRechargeFee,usableRechargeFee,totalGiveFee,usableGiveFee) VALUES
(#{merchantCode},#{merchantName},#{storeId},#{storeName},#{status},#{createDt},#{logo},#{memberCode},#{nickName},#{phone},#{openid},#{alipayUserId},#{comsumeMoney},#{profitMoney},#{orderNumber},#{totalRechargeFee},#{usableRechargeFee},#{totalGiveFee},#{usableGiveFee} )
update tb_pluss_merchant_menber
merchantCode = #{merchantCode},
merchantName = #{merchantName},
storeId = #{storeId},
storeName = #{storeName},
status = #{status},
createDt = #{createDt},
logo = #{logo},
memberCode = #{memberCode},
nickName = #{nickName},
phone = #{phone},
openid = #{openid},
alipayUserId = #{alipayUserId},
comsumeMoney = #{comsumeMoney},
profitMoney = #{profitMoney},
orderNumber = #{orderNumber},
totalRechargeFee = #{totalRechargeFee},
usableRechargeFee = #{usableRechargeFee},
totalGiveFee = #{totalGiveFee},
usableGiveFee = #{usableGiveFee},
cardNo = #{cardNo},
birthdayDt = #{birthdayDt},
memberName = #{memberName},
provinces = #{provinces},
sex = #{sex},
bindingUrl = #{bindingUrl},
appOpenId = #{appOpenId},
unionId = #{unionId}
where id=#{id}
DELETE FROM tb_pluss_merchant_menber where id=#{id}